]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix "delete in progress" flag on default instance 18412/head
authorLoïc Sang <loic.sang@6wind.com>
Tue, 18 Mar 2025 16:39:03 +0000 (17:39 +0100)
committerLoïc Sang <loic.sang@6wind.com>
Tue, 18 Mar 2025 16:42:34 +0000 (17:42 +0100)
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 <loic.sang@6wind.com>
bgpd/bgpd.c

index 6a56eb45987b215a8bc5755db8a0f21c412e73ff..fb1732558d6566499caa579b2e87cf65bf224632 100644 (file)
@@ -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)