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 several issues in sourcing AIGP attribute #17091

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

enkechen-panw
Copy link
Contributor

Fix several issues in sourcing AIGP attribute:

  1. AIGP should not be set as default for a redistributed route or a
    static network. It should be set by config instead.

  2. AIGP sourced by "set aigp-metric igp-metric" in a route-map does
    not set the correct value for a redistributed route.

  3. When redistribute a connected route like loopback, the AGIP (with
    value 0) is sourced by "set aigp-metric igp-metric", but the
    attribute is not propagated as the attribute flag is not set.

bgpd/bgp_routemap.c Show resolved Hide resolved
@ton31337
Copy link
Member

@Mergifyio backport dev/10.2 stable/10.1 stable/10.0 stable/9.1 stable/9.0

Copy link

mergify bot commented Oct 15, 2024

backport dev/10.2 stable/10.1 stable/10.0 stable/9.1 stable/9.0

✅ Backports have been created

@ton31337 ton31337 added this to the 10.2 milestone Oct 15, 2024
@riw777 riw777 self-requested a review October 15, 2024 15:51
@frrbot frrbot bot added the tests Topotests, make check, etc label Oct 16, 2024
@ton31337
Copy link
Member

Please drop a merge commit.

Fix several issues in sourcing AIGP attribute:

1) AIGP should not be set as default for a redistributed route or a
   static network. It should be set by config instead.

2) AIGP sourced by "set aigp-metric igp-metric" in a route-map does
   not set the correct value for a redistributed route.

3) When redistribute a connected route like loopback, the AGIP (with
   value 0) is sourced by "set aigp-metric igp-metric", but the
   attribute is not propagated as the attribute flag is not set.

Signed-off-by: Enke Chen <[email protected]>
Add a new topotest for getting the aigp from the "igp-metric"
for a redistributed route (ospf route in the test).

Signed-off-by: Enke Chen <[email protected]>
@enkechen-panw
Copy link
Contributor Author

Please drop a merge commit.

Done.

@ton31337 ton31337 merged commit 8d894e5 into FRRouting:master Oct 17, 2024
11 checks passed
ton31337 added a commit that referenced this pull request Oct 17, 2024
bgpd: fix several issues in sourcing AIGP attribute (backport #17091)
Jafaral added a commit that referenced this pull request Oct 17, 2024
bgpd: fix several issues in sourcing AIGP attribute (backport #17091)
Jafaral added a commit that referenced this pull request Oct 17, 2024
bgpd: fix several issues in sourcing AIGP attribute (backport #17091)
Jafaral added a commit that referenced this pull request Oct 17, 2024
bgpd: fix several issues in sourcing AIGP attribute (backport #17091)
@enkechen-panw enkechen-panw deleted the aigp-fix1 branch October 19, 2024 05:53
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.

2 participants