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 AIGP calculation in route advertisement (backport #17168) #17184

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Oct 22, 2024

Currently the AIGP is always incremented when a route with the
attribute is advertised. That is incorrect when the nexthop is
unchanged, as is commonly the case in route reflection.

Adjust the AIGP for propagation only when the nexthop is set
to ourselves.


This is an automatic backport of pull request #17168 done by Mergify.

In this topotest, the route reflector advertises a route with the
aigp attribute to its client, some with the nexthop unchanged and
some with the nexthp changed. Different aigp values are sent to
the clients depending on the nexthop setting.

Signed-off-by: Enke Chen <[email protected]>
(cherry picked from commit 7e7f65c)
Currently the AIGP is always incremented when a route with the
attribute is advertised. That is incorrect when the nexthop is
unchanged, as is commonly the case in route reflection.

Adjust the AIGP for propagation only when the nexthop is set
to ourselves.

Signed-off-by: Enke Chen <[email protected]>
(cherry picked from commit fc82d77)
@frrbot frrbot bot added bgp bugfix tests Topotests, make check, etc labels Oct 22, 2024
@Jafaral Jafaral merged commit 45743c8 into dev/10.2 Oct 22, 2024
18 checks passed
@ton31337 ton31337 deleted the mergify/bp/dev/10.2/pr-17168 branch October 25, 2024 10:13
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