Skip to content

bgpd: Make suppress-fib-pending clear peering#14982

Merged
riw777 merged 1 commit intoFRRouting:masterfrom
donaldsharp:bgp_suppress_fib_clear_peers
Dec 12, 2023
Merged

bgpd: Make suppress-fib-pending clear peering#14982
riw777 merged 1 commit intoFRRouting:masterfrom
donaldsharp:bgp_suppress_fib_clear_peers

Conversation

@donaldsharp
Copy link
Copy Markdown
Member

When a peer has come up and already started installing routes into the rib and suppress-fib-pending is either turned on or off. BGP is left with some routes that may need to be withdrawn from peers and routes that it does not know the status of. Clear the BGP peers for the interesting parties and let's let us come
up to speed as needed.

@donaldsharp
Copy link
Copy Markdown
Member Author

@Mergifyio backport stable/9.0 stable/9.1 stable/8.5

@mergify
Copy link
Copy Markdown

mergify bot commented Dec 11, 2023

backport stable/9.0 stable/9.1 stable/8.5

✅ Backports have been created

Details

Copy link
Copy Markdown
Member

@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of nits from my side (more like cosmetic, but yeah).

bgpd/bgp_fsm.c Outdated
"Reached received prefix count",
"Socket Error",
"Admin. shutdown (RTT)",
"Suppress Fib Turned on or Off",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Just to be consistent: on or off (lowercase, but not mixed).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

bgpd/bgpd.c Outdated
if (bgp_suppress_fib_count == 0)
send_msg = true;
bgp_suppress_fib_count++;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we drop this change?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

#define PEER_DOWN_PFX_COUNT 33U /* Reached received prefix count */
#define PEER_DOWN_SOCKET_ERROR 34U /* Some socket error happened */
#define PEER_DOWN_RTT_SHUTDOWN 35U /* Automatically shutdown due to RTT */
#define PEER_DOWN_SUPPRESS_FIB_PENDING 36U /* Suppress fib pending changed */
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems we have a bit unaligned here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is what clang-format has decided on. I have no idea why it's not aligned

Copy link
Copy Markdown
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just waiting on @ton31337 's comment

When a peer has come up and already started installing
routes into the rib and `suppress-fib-pending` is either
turned on or off.  BGP is left with some routes that
may need to be withdrawn from peers and routes that
it does not know the status of.  Clear the BGP peers
for the interesting parties and let's let us come
up to speed as needed.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
@donaldsharp donaldsharp force-pushed the bgp_suppress_fib_clear_peers branch from 8be2099 to bdb5ae8 Compare December 12, 2023 18:49
@riw777 riw777 merged commit c45a9da into FRRouting:master Dec 12, 2023
donaldsharp added a commit that referenced this pull request Dec 12, 2023
bgpd: Make `suppress-fib-pending` clear peering (backport #14982)
donaldsharp added a commit that referenced this pull request Dec 12, 2023
bgpd: Make `suppress-fib-pending` clear peering (backport #14982)
@donaldsharp donaldsharp deleted the bgp_suppress_fib_clear_peers branch July 30, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants