From 8dc9eacb837c4dfb3c100a856932513343c31549 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lo=C3=AFc=20Sang?= Date: Tue, 18 Mar 2025 17:39:03 +0100 Subject: [PATCH] bgpd: fix "delete in progress" flag on default instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since 4d0e7a4 ("bgpd: VRF-Lite fix default BGP delete"), upon deletion of the default instance, it is marked as hidden and the "deletion in progress" flag is set. When the instance is restored, some routes are not installed due to the presence of this flag. Fixes: 4d0e7a4 ("bgpd: VRF-Lite fix default bgp delete") Signed-off-by: Loïc Sang --- bgpd/bgpd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 6a56eb4598..fb1732558d 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -3799,6 +3799,7 @@ int bgp_lookup_by_as_name_type(struct bgp **bgp_val, as_t *as, const char *as_pr hidden); UNSET_FLAG(bgp->flags, BGP_FLAG_INSTANCE_HIDDEN); + UNSET_FLAG(bgp->flags, BGP_FLAG_DELETE_IN_PROGRESS); } else { bgp->as = *as; if (force_config == false) -- 2.39.5