Skip to content

Commit

Permalink
Merge pull request FRRouting#17487 from opensourcerouting/fix/do_rese…
Browse files Browse the repository at this point in the history
…t_peers

bgpd: Do not reset peers on suppress-fib toggling
  • Loading branch information
donaldsharp authored Nov 22, 2024
2 parents 6e7ab7d + 7fb4c03 commit 909d854
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bgpd/bgpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@ void bgp_suppress_fib_pending_set(struct bgp *bgp, bool set)
if (bgp->inst_type == BGP_INSTANCE_TYPE_VIEW)
return;

/* Do nothing if already in a desired state */
if (set == !!CHECK_FLAG(bgp->flags, BGP_FLAG_SUPPRESS_FIB_PENDING))
return;

if (set) {
SET_FLAG(bgp->flags, BGP_FLAG_SUPPRESS_FIB_PENDING);
/* Send msg to zebra for the first instance of bgp enabled
Expand Down

0 comments on commit 909d854

Please sign in to comment.