bgpd: Clear stale routes with multiple paths (backport) #17395
Merged
frrbot / frrbot
completed
Nov 8, 2024 in 6s
Style and/or linter errors found
Style and/or linter errors found
Details
Thanks for your contribution to FRR!
Click for style suggestions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index dc75e137d..769c79bce 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -723,8 +723,10 @@ static void bgp_set_llgr_stale(struct peer *peer, afi_t afi, safi_t safi)
continue;
if (bgp_attr_get_community(pi->attr) &&
- community_include(bgp_attr_get_community(pi->attr),
- COMMUNITY_LLGR_STALE))
+ community_include(
+ bgp_attr_get_community(
+ pi->attr),
+ COMMUNITY_LLGR_STALE))
continue;
if (bgp_debug_neighbor_events(peer))
@@ -754,8 +756,9 @@ static void bgp_set_llgr_stale(struct peer *peer, afi_t afi, safi_t safi)
continue;
if (bgp_attr_get_community(pi->attr) &&
- community_include(bgp_attr_get_community(pi->attr),
- COMMUNITY_LLGR_STALE))
+ community_include(
+ bgp_attr_get_community(pi->attr),
+ COMMUNITY_LLGR_STALE))
continue;
if (bgp_debug_neighbor_events(peer))
To apply the style suggestions:
curl https://gist.githubusercontent.com/polychaeta/feb890f888c0976ccc11ba8795718415/raw/b4a21f81f49fbd867c259edfe7b27d8c7545cf26/style.diff | git apply -
If you are a new contributor to FRR, please see our contributing guidelines.
After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.
Loading