-
Notifications
You must be signed in to change notification settings - Fork 1.4k
bgpd: fix wrong automatic router-id use #19569
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
base: master
Are you sure you want to change the base?
Conversation
Only considers the automatic rd scenario without a bgp connection and without configuring any rd in the command line. This automatic rd is created and used for bgp at this case, but it should not be used for vpn if `rd vpn export` is set in command line. And both IPv4 and IPv6 family also have this issue. With the configuration: ``` router bgp 88 vrf vrf1 neighbor 3.3.3.3 remote-as 99 ! address-family ipv4 unicast rd vpn export 4:4 rt vpn export 4:4 export vpn import vpn exit-address-family exit ``` At the beginning, there was no address in vrf1, then set address 1.1.1.1/24. The running is changed: ``` router bgp 88 vrf xx neighbor 3.3.3.3 remote-as 99 ! address-family ipv4 unicast rd vpn export 4:4 rt vpn export 1.1.1.1:4 <-- export vpn import vpn exit-address-family ``` Signed-off-by: anlan_cs <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little confused: the example in the description makes it appear that the config changes if environmental/OS changes occur. isn't that the bug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Mergifyio backport stable/10.4 stable/10.3 stable/10.2 |
🟠 Waiting for conditions to match
|
Without reading the code (not the changes) => don't we miss to do the leaking stuff (just in case), except just handling configuration issue? |
I have tested it. In this situation, the vpn doesn't work for the magic/unknown
|
not a bug, but it looks a little complicated: #2929 |
you referenced an old PR about router-id zapi messaging from zebra. but ... this isn't about the router-id, is it? you're not proposing changes to router-id here are you?
|
There is no change with router-id here, just avoid the environment/OS changes the running config and vpn function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Only considers the automatic rd scenario without a bgp connection and without configuring any rd in the command line.
This automatic rd is created and used for bgp at this case, but it should not be used for vpn if
rd vpn export
is set in command line. And both IPv4 and IPv6 family also have this issue.With the configuration:
At the beginning, there was no address in vrf1, then set address 1.1.1.1/24. The running is changed: