]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: handle different sequence of bgp vrf create/delete
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Fri, 10 Nov 2017 09:49:48 +0000 (01:49 -0800)
committerMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Thu, 14 Dec 2017 18:57:07 +0000 (10:57 -0800)
commit0b5131c951538ae8acbfa1c62e92632d89ebbd25
tree70342bd014b6429861706e299f54e5a34d31a858
parentc4edf7086b630ea9be8b0dfc9918b3d5a3dce6f2
bgpd: handle different sequence of bgp vrf create/delete

BGP VRF can be created/deleted either via config or via l3vni add/del.
We need to handle various sequences.

1. If user config is presented, an l3vni del should not delete the vrf instance
2. do not write bgp config in show running for auto created vrf
2. If l3vni present, disallow the cli for deleting bgp vrf instance
3. If l3vni is added and vrf config is present set the flags properly
4. if bgp vrf is configured unset the AUTO flag

Ticket: CM-18630
Review: CCR-6906
Testing: Manual

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
bgpd/bgp_evpn.c
bgpd/bgp_vty.c
bgpd/bgpd.c