diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 959a87d583..cf651185ab 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6182,6 +6182,7 @@ void bgp_static_add(struct bgp *bgp) struct bgp_table *table; struct bgp_static *bgp_static; + SET_FLAG(bgp->flags, BGP_FLAG_FORCE_STATIC_PROCESS); FOREACH_AFI_SAFI (afi, safi) for (dest = bgp_table_top(bgp->route[afi][safi]); dest; dest = bgp_route_next(dest)) { @@ -6208,6 +6209,7 @@ void bgp_static_add(struct bgp *bgp) safi); } } + UNSET_FLAG(bgp->flags, BGP_FLAG_FORCE_STATIC_PROCESS); } /* Called from bgp_delete(). Delete all static routes from the BGP