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: fix bfd with update-source in peer-group #17904

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

louis-6wind
Copy link
Contributor

Fix BFD session not created when the peer is in update-group with the update-source option.

@frrbot frrbot bot added bgp bugfix tests Topotests, make check, etc labels Jan 22, 2025
@louis-6wind louis-6wind requested a review from ton31337 January 22, 2025 12:34
@@ -114,6 +114,10 @@ void bgp_peer_config_apply(struct peer *p, struct peer_group *pg)
*/
gconfig = pg->conf;

if (CHECK_FLAG(gconfig->flags, PEER_FLAG_UPDATE_SOURCE) ||
Copy link
Member

Choose a reason for hiding this comment

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

We should use peergroup_flag_check(), right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure to understand peergroup_flag_check() but my previous code (without that function) seems correct.

I want to check for the presence of update-source in the update-group config. If not present in update group, check for the presence of update-source in the peer config.

Copy link
Member

Choose a reason for hiding this comment

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

My concern was that peergroup_flag_check() actually checks overridden/inverted flags according to peer-group/peer configurations.

@louis-6wind louis-6wind force-pushed the fix-bfd-pg-update-group branch 2 times, most recently from 87f5daa to 6639c2d Compare January 22, 2025 16:51
@github-actions github-actions bot added size/M and removed size/S labels Jan 22, 2025
Check bfd with update-source in peer-group.

Signed-off-by: Louis Scalbert <[email protected]>
Fix BFD session not created when the peer is in update-group with the
update-source option.

Signed-off-by: Louis Scalbert <[email protected]>
@louis-6wind louis-6wind force-pushed the fix-bfd-pg-update-group branch from 6639c2d to dee3fd6 Compare January 22, 2025 16:56
@ton31337 ton31337 merged commit 4a2612c into FRRouting:master Jan 23, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants