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

#17542 introduces a regression breaking peer-group configs upon sequential config load #17602

Closed
2 tasks done
ichdasich opened this issue Dec 5, 2024 · 1 comment · Fixed by #17603
Closed
2 tasks done
Assignees
Labels
bgp regression triage Needs further investigation

Comments

@ichdasich
Copy link

Description

#17542 introduced a patch to #17541, where adding a peer-group to a peer would remove the remote-as value from that peer. However, if the reverse case happens (first add a peer to the peer-group, then try to add a remote-as), #17542 prevents adding the remote-as setting.

This is likely due to the initialization of the remote-as value introduced by #17542.

The issue is that this occurs whenever the configuration is loaded sequentially with the patch applied, because the peer-group definition usually is set before the remote-as; I would guess that this includes upon daemon restart.

Version

All versions that include #17542.

How to reproduce

  • configure a peer-group without setting a remote-as
  • configure a new neighbor
  • add the neighbor to the peer group
  • try to add a remote-as to the neighbor; See: % Peer-group member cannot override remote-as of peer-group.

Expected behavior

Being able to apply a remote-as to neighbors in a peer-group where the peer-group does not set a remote-as.

Actual behavior

% Peer-group member cannot override remote-as of peer-group.

Additional context

This was encountered while debugging #17533.

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.
@ichdasich ichdasich added the triage Needs further investigation label Dec 5, 2024
@ton31337 ton31337 self-assigned this Dec 5, 2024
@ichdasich
Copy link
Author

Confirmed in bgpd.c, btw:

frr/bgpd/bgpd.c

Line 2161 in a43b11f

if (peer->group->conf->as

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bgp regression triage Needs further investigation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants