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: Add tests for Paths-Limit capability #15533

Merged

Conversation

ton31337
Copy link
Member

No description provided.

@frrbot frrbot bot added bgp bugfix tests Topotests, make check, etc labels Mar 12, 2024
@ton31337 ton31337 force-pushed the fix/add_paths_limit_capability_test branch from 0e61e83 to 4f09d78 Compare March 12, 2024 19:22
@ton31337 ton31337 marked this pull request as draft March 13, 2024 06:55
@ton31337 ton31337 force-pushed the fix/add_paths_limit_capability_test branch from 4f09d78 to 5a791c3 Compare March 13, 2024 12:28
@ton31337 ton31337 marked this pull request as ready for review March 13, 2024 12:41
It's very annoying when testing and instead of looking for true/false, you
have to check if the field exists.

Signed-off-by: Donatas Abraitis <[email protected]>
The capability should be untouched, and send 0 (unlimited) instead.

Otherwise, we miss the capability and things are broken later until the
session reset.

Fixes: 72f0e06 ("bgpd: Implement Paths-Limit capability")

Signed-off-by: Donatas Abraitis <[email protected]>
@ton31337 ton31337 force-pushed the fix/add_paths_limit_capability_test branch from 5a791c3 to 6ff16b3 Compare March 13, 2024 14:59
When sending the packets over the network (dynamic capability) it reports 6 bytes
instead of 5 bytes, and causes some issues between little/big endian machines.

Signed-off-by: Donatas Abraitis <[email protected]>
Copy link
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

@riw777 riw777 merged commit 80c8e10 into FRRouting:master Mar 19, 2024
9 checks passed
@ton31337 ton31337 deleted the fix/add_paths_limit_capability_test branch March 19, 2024 14:22
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