We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e7ab7d + 7fb4c03 commit 909d854Copy full SHA for 909d854
1 file changed
bgpd/bgpd.c
@@ -463,6 +463,10 @@ void bgp_suppress_fib_pending_set(struct bgp *bgp, bool set)
463
if (bgp->inst_type == BGP_INSTANCE_TYPE_VIEW)
464
return;
465
466
+ /* Do nothing if already in a desired state */
467
+ if (set == !!CHECK_FLAG(bgp->flags, BGP_FLAG_SUPPRESS_FIB_PENDING))
468
+ return;
469
+
470
if (set) {
471
SET_FLAG(bgp->flags, BGP_FLAG_SUPPRESS_FIB_PENDING);
472
/* Send msg to zebra for the first instance of bgp enabled
0 commit comments