Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgpd: Clear stale routes with multiple paths (backport) #17395

Merged
merged 2 commits into from
Nov 12, 2024

bgpd: Set LLGR stale routes for all the paths including addpath

eb3ea01
Select commit
Loading
Failed to load commit list.
Merged

bgpd: Clear stale routes with multiple paths (backport) #17395

bgpd: Set LLGR stale routes for all the paths including addpath
eb3ea01
Select commit
Loading
Failed to load commit list.
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.