]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: upon bgp deletion, do not systematically ask to remove main bgp
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 4 Nov 2020 09:52:11 +0000 (09:52 +0000)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 26 Feb 2021 11:41:09 +0000 (14:41 +0300)
commitd1b43634b8cc34d83c1bdf89fd9f3a14b113b011
tree43ac641748a45a3ce5ac7bee3cb59e8285869fa1
parentf5d1dc55ed8c785699eccd076679a5ad8dd073ca
bgpd: upon bgp deletion, do not systematically ask to remove main bgp

Dependencies between bgp instances is necessary only when it comes to
configure some specific services like ipv4-vpn, ipv6-vpn or l2vpn-evpn.
The list of config possibilities is listed, and an error is returned if
one of the above services is configured on the bgp vrf instance.

There may be some missingn services not covered. For clarification, here
are services configured on bgp vrf instances, while trying to delete
main bgp instance:
- if evpn main instance is the main bgp instance, and if evpn rt5
service is configured (with advertise command)
- if a vni is configured in the vrf instance
- if l3vpn import/export commands are solicitated for
importing/exporting entries from a vpnv4/6 network located on main bgp
instance. (in l3vpn, the main bgp instance is the location where vpnv4/6
sits).

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_vty.c