8000 topotests: test bfd when bgp is passive by crosser · Pull Request #18954 · FRRouting/frr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

topotests: test bfd when bgp is passive #18954

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crosser
Copy link
Contributor
@crosser crosser commented Jun 4, 2025

Some versions between 10.0 and 10.3.1 had BFD not working if one of BGP peers was in "passive mode", i.e. instead of peers with addresses, a peer-group was defined to be matched by bgp listen statement. This problem went unnoticed because there was no test for bfd in such mode.

This commit modifies one of existing bfd tests to run bgp session "passively". It fails against 10.3, and passes against 10.3.1

@ton31337
Copy link
Member
ton31337 commented Jun 5, 2025

While this is okay, can we have a separate topotest instead of replacing this one (non peer-group...)?

@crosser
Copy link
Contributor Author
crosser commented Jun 5, 2025

While this is okay, can we have a separate topotest instead of replacing this one (non peer-group...)?

I actually started by making a copy of the test in a separate subdir 😁

What would be a good way to make a separate test that uses all the same code, and only differs in config files? It seems too ugly to just copy everything? What's your advice, @ton31337 ?

@donaldsharp
Copy link
Member

Create a new test_XXXX.py in the same directory. Have it setup slightly differently but all the same code put into a XXX_common.py ( Look at what was done in the route_scale test ).

@crosser crosser force-pushed the test-bfd-bgp-passive branch from 113428b to 02d33f4 Compare June 10, 2025 15:07
@github-actions github-actions bot added size/XL and removed size/M labels Jun 10, 2025
@crosser
Copy link
Contributor Author
crosser commented Jun 10, 2025

Create a new test_XXXX.py in the same directory. Have it setup slightly differently but all the same code put into a XXX_common.py ( Look at what was done in the route_scale test ).

Did that. With the existing infrastructure, it is still more verbose than I would like, but I tried to make it as succinct as was practical 🙂

For one of bfd tests, add a version that runs bgp session "passively",
with "bgp listen" and without peer address known upfront.

Several 10.x versions of frr had this mode not working. It started to
work again in 10.3.1.

Signed-off-by: Eugene Crosser <crosser@average.org>
@crosser crosser force-pushed the test-bfd-bgp-passive branch from 02d33f4 to 6c13cc0 Compare June 11, 2025 09:23
@crosser
Copy link
Contributor Author
crosser commented Jun 13, 2025

Can this be merged now please, or are there other remarks? I believe that test failure is unrelated to this change. Thanks!

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
0