Merge pull request #8869 from leonshaw/master

bgpd: Force process networks on VRF creation
This commit is contained in:
Russ White 2021-06-22 09:57:06 -04:00 committed by GitHub
commit c4b5d96519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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