Skip to content

Commit 909d854

Browse files
authored
Merge pull request #17487 from opensourcerouting/fix/do_reset_peers
bgpd: Do not reset peers on suppress-fib toggling
2 parents 6e7ab7d + 7fb4c03 commit 909d854

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bgpd/bgpd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,10 @@ void bgp_suppress_fib_pending_set(struct bgp *bgp, bool set)
463463
if (bgp->inst_type == BGP_INSTANCE_TYPE_VIEW)
464464
return;
465465

466+
/* Do nothing if already in a desired state */
467+
if (set == !!CHECK_FLAG(bgp->flags, BGP_FLAG_SUPPRESS_FIB_PENDING))
468+
return;
469+
466470
if (set) {
467471
SET_FLAG(bgp->flags, BGP_FLAG_SUPPRESS_FIB_PENDING);
468472
/* Send msg to zebra for the first instance of bgp enabled

0 commit comments

Comments
 (0)