mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 11:25:41 +00:00
bgpd: Do not reset peers on suppress-fib toggling
If the desired state is the same - do nothing instead of resetting once again. Fixes:bdb5ae8bce
("bgpd: Make suppress-fib-pending clear peering") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org> (cherry picked from commit7fb4c03f5b
)
This commit is contained in:
parent
a414010917
commit
f62baf6ca9
@ -462,6 +462,10 @@ void bgp_suppress_fib_pending_set(struct bgp *bgp, bool set)
|
|||||||
if (bgp->inst_type == BGP_INSTANCE_TYPE_VIEW)
|
if (bgp->inst_type == BGP_INSTANCE_TYPE_VIEW)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Do nothing if already in a desired state */
|
||||||
|
if (set == !!CHECK_FLAG(bgp->flags, BGP_FLAG_SUPPRESS_FIB_PENDING))
|
||||||
|
return;
|
||||||
|
|
||||||
if (set) {
|
if (set) {
|
||||||
SET_FLAG(bgp->flags, BGP_FLAG_SUPPRESS_FIB_PENDING);
|
SET_FLAG(bgp->flags, BGP_FLAG_SUPPRESS_FIB_PENDING);
|
||||||
/* Send msg to zebra for the first instance of bgp enabled
|
/* Send msg to zebra for the first instance of bgp enabled
|
||||||
|
Loading…
Reference in New Issue
Block a user