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 misplaced arguments in bgp_redistribute_add() #16874

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

enkechen-panw
Copy link
Contributor

Fix the misplaced arguments "bhtype" and "api.distance" in bgp_redistribute_add().

Fix the misplaced arguments "bhtype" and "api.distance" in
bgp_redistribute_add().

Signed-off-by: Enke Chen <[email protected]>
In ospf_multi_vrf_bgp_route_leak, the admin distance for the
redistributed ospf route should be 110, and should remain as 110 after
it's imported into another vrf, and then downloaded to zebra.

Signed-off-by: Enke Chen <[email protected]>
@frrbot frrbot bot added the tests Topotests, make check, etc label Sep 19, 2024
@github-actions github-actions bot added size/S and removed size/XS labels Sep 19, 2024
@donaldsharp
Copy link
Member

@ton31337 thoughts on needing a topotest?

@donaldsharp
Copy link
Member

I guess we already had an implied topotest that was just wrong.

Copy link
Member

@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

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

LGTM, but having a separate test that checks the correct e.g. nexthop type (+ blackhole type) would be handy. This way we would be pretty sure that we haven't mixed the arguments.

@donaldsharp
Copy link
Member

I'm gonna go ahead and merge this as that it's unlikely to accidently change in the future and changing something would break tests, so we would catch it.

@donaldsharp donaldsharp merged commit 40c9d64 into FRRouting:master Sep 20, 2024
13 checks passed
@enkechen-panw
Copy link
Contributor Author

Thanks @donaldsharp and @ton31337

@enkechen-panw enkechen-panw deleted the redist-fix branch September 20, 2024 03:00
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.

3 participants