Unable to delete BGP from default VRF if VRF BGP is configured.
Config:
set protocols bgp system-as 65000 set vrf name TEST protocols bgp system-as 65000
Steps to reproduce
vyos@vyos# delete protocols bgp [edit] vyos@vyos# commit [ protocols bgp ] Cannot delete default BGP instance, dependent VRF instance(s): TEST delete [ protocols bgp ] failed Commit failed [edit]
But it is possible to delete default BGP using FRR cli:
vyos@vyos# vtysh vyos# show run Building configuration... Current configuration: ! frr version 10.2.4 frr defaults traditional hostname vyos log syslog notifications log timestamp precision 3 no log unique-id service integrated-vtysh-config ! ip route 0.0.0.0/0 192.168.139.2 eth0 tag 210 210 ! vrf TEST exit-vrf ! router bgp 65000 vrf TEST no bgp ebgp-requires-policy no bgp default ipv4-unicast no bgp network import-check exit ! router bgp 65000 no bgp ebgp-requires-policy no bgp default ipv4-unicast no bgp network import-check exit ! end vyos# conf t vyos(config)# no router bgp 65000 vyos(config)# do show run Building configuration... Current configuration: ! frr version 10.2.4 frr defaults traditional hostname vyos log syslog notifications log timestamp precision 3 no log unique-id service integrated-vtysh-config ! ip route 0.0.0.0/0 192.168.139.2 eth0 tag 210 210 ! vrf TEST exit-vrf ! router bgp 65000 vrf TEST no bgp ebgp-requires-policy no bgp default ipv4-unicast no bgp network import-check exit ! end
Need to create more complex verification for deleting BGP instances, based on route leaking dependencies.