Commit f153b9a
committed
bgpd: Ignore auto created VRF BGP instances
Configuration:
```
vtysh <<EOF
configure
vrf vrf100
vni 10100
exit-vrf
router bgp 50
address-family l2vpn evpn
advertise-all-vni
exit-address-family
exit
router bgp 100 vrf vrf100
exit
EOF
```
TL;DR; When we configure `advertise-all-vni` (in this case), a new BGP instance
is created with the name vrf100, and ASN 50. Next, when we create
`router bgp 100 vrf vrf100`, we look for the BGP instance with the same name
and we found it, but ASNs are different 50 vs. 100.
Every such a new auto created instance is flagged with BGP_VRF_AUTO.
After the fix:
```
router bgp 50
!
address-family l2vpn evpn
advertise-all-vni
exit-address-family
exit
!
router bgp 100 vrf vrf100
exit
!
end
donatas.net(config)# router bgp 51
BGP is already running; AS is 50
donatas.net(config)# router bgp 50
donatas.net(config-router)# router bgp 101 vrf vrf100
BGP is already running; AS is 100
donatas.net(config)# router bgp 100 vrf vrf100
donatas.net(config-router)#
```
Fixes: FRRouting/frr#16152
Fixes: FRRouting/frr#9537
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>1 parent 17e1f7c commit f153b9a
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3620 | 3620 | | |
3621 | 3621 | | |
3622 | 3622 | | |
3623 | | - | |
| 3623 | + | |
| 3624 | + | |
| 3625 | + | |
3624 | 3626 | | |
3625 | 3627 | | |
3626 | 3628 | | |
| 3629 | + | |
3627 | 3630 | | |
3628 | 3631 | | |
3629 | 3632 | | |
| |||
0 commit comments