From 70e07678bfe554dd5be30a605ddf6c0fe3a8a39b Mon Sep 17 00:00:00 2001 From: Louis Scalbert Date: Fri, 14 Feb 2025 15:03:00 +0100 Subject: [PATCH] bgpd: fix leaving hidden state Upon configuration of a VRF instance that references an absent default VRF with "import vrf default", the default instance is created in hidden state. However, the default instance is not properly un-hidden when configured. Restore the behavior prior to commit below. Fixes: 9f7177af13 ("bgpd: fix duplicate BGP instance created with unified config") Signed-off-by: Louis Scalbert --- bgpd/bgpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 2d240a01e1..cf1ea78acf 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -3776,7 +3776,7 @@ int bgp_lookup_by_as_name_type(struct bgp **bgp_val, as_t *as, const char *as_pr /* Handle AS number change */ if (bgp->as != *as) { if (hidden || CHECK_FLAG(bgp->vrf_flags, BGP_VRF_AUTO)) { - if (force_config == false && hidden) { + if (hidden) { bgp_create(as, name, inst_type, as_pretty, asnotation, bgp, hidden); -- 2.39.5