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

bgp: defining peer-group for neighbor will remove remote-as setting #17541

Closed
2 tasks done
c-po opened this issue Dec 1, 2024 · 2 comments · Fixed by #17542
Closed
2 tasks done

bgp: defining peer-group for neighbor will remove remote-as setting #17541

c-po opened this issue Dec 1, 2024 · 2 comments · Fixed by #17542

Comments

@c-po
Copy link
Contributor

c-po commented Dec 1, 2024

Description

When assigning a BGP neighbor to a peer-group the per neighbor remote-as option is removed which will place the neighbor in an unconfigured state.

Version

FRR stable/10.2 commit 1e23469

How to reproduce

Define neighbor with explicit remote-as

router bgp 100
 neighbor SMOKETESTEXT peer-group
 neighbor 192.122.2.2 remote-as 200
exit
!
LR1.wue3(config)# do sh ip bgp sum

IPv4 Unicast Summary:
BGP router identifier 172.18.254.201, local AS number 100 VRF default vrf-id 0
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 1, using 24 KiB of memory
Peer groups 1, using 64 bytes of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
192.122.2.2     4        200         0         0        0    0    0    never       Active        0 N/A

Total number of neighbors 1

Assign neighbor to peer-group

LR1.wue3(config)# router bgp 100
LR1.wue3(config-router)# neighbor 192.122.2.2  peer-group SMOKETESTEXT
LR1.wue3(config-router)# end

Check Configuration

LR1.wue3# show run
...
!
router bgp 100
 neighbor SMOKETESTEXT peer-group
 neighbor 192.122.2.2 peer-group SMOKETESTEXT
exit
!
LR1.wue3# sh ip bgp sum

IPv4 Unicast Summary:
BGP router identifier 172.18.254.201, local AS number 100 VRF default vrf-id 0
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 1, using 24 KiB of memory
Peer groups 1, using 64 bytes of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
192.122.2.2     4        200         0         0        0    0    0    never       Active        0 N/A

Total number of neighbors 1

Expected behavior

!
router bgp 100
 neighbor SMOKETESTEXT peer-group
 neighbor 192.122.2.2 remote-as 200
 neighbor 192.122.2.2 peer-group SMOKETESTEXT
exit
!

Actual behavior

remote-as is removed from individual neighbor configuration

Additional context

No response

Checklist

  • I have searched the open issues for this bug.
  • I have not included sensitive information in this report.
@c-po c-po added the triage Needs further investigation label Dec 1, 2024
@ton31337 ton31337 added the bgp label Dec 1, 2024
@ton31337 ton31337 self-assigned this Dec 1, 2024
@ton31337 ton31337 added bug regression and removed triage Needs further investigation labels Dec 1, 2024
@ton31337
Copy link
Member

ton31337 commented Dec 1, 2024

Should be fixed here #17542, possible to test it out?

@c-po
Copy link
Contributor Author

c-po commented Dec 1, 2024

Should be fixed here #17542, possible to test it out?

I manually cherry-picked those two commits into 10.2 and can confirm it fixes the issue. Thanks!
Please create a backport for stable/10.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants