Skip to content

bgpd: Fix mixed remote-as for peer-groups when using auto (backport #21406)#21523

Merged
donaldsharp merged 3 commits intostable/10.4from
mergify/bp/stable/10.4/pr-21406
Apr 14, 2026
Merged

bgpd: Fix mixed remote-as for peer-groups when using auto (backport #21406)#21523
donaldsharp merged 3 commits intostable/10.4from
mergify/bp/stable/10.4/pr-21406

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify bot commented Apr 14, 2026


This is an automatic backport of pull request #21406 done by [Mergify](https://mergify.com).

…r changed

If we do not update the peer sort cache, it returns the wrong peer type for the
further checks.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit f1485f4)
When the first member's as_type == AS_AUTO, return BGP_PEER_INTERNAL instead
of the incorrectly-cached peer1->sort (BGP_PEER_EBGP).

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 8da45ae)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 5964311)
@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Apr 14, 2026

Target branch is not in the allowed branches list.

@frrbot frrbot bot added bgp tests Topotests, make check, etc labels Apr 14, 2026
@donaldsharp donaldsharp merged commit 02872dd into stable/10.4 Apr 14, 2026
20 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bgp size/M stable/10.4 tests Topotests, make check, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants