]> git.proxmox.com Git - mirror_frr.git/commit - babeld/babeld.c
lib: remove vrf-interface config when removing the VRF
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 21 Jun 2021 15:04:46 +0000 (18:04 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 21 Jun 2021 15:04:46 +0000 (18:04 +0300)
commitf5eef2d5a8a471fe6e4ec4f6acfa3dbf190eda5d
tree58ed00dffe8ba1f1c64ca0b6dfa3153da9ec6e43
parentcd551a0fd5430791ce4e650ccca9b312f02b9701
lib: remove vrf-interface config when removing the VRF

If we have the following configuration:
```
vrf red
 smth
 exit-vrf
!
interface red vrf red
 smth
```
And we delete the VRF using "no vrf red" command, we end up with:
```
interface red
 smth
```
Interface config is preserved but moved to the default VRF.

This is not an expected behavior. We should remove the interface config
when the VRF is deleted.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
14 files changed:
babeld/babeld.c
eigrpd/eigrp_cli.c
isisd/isisd.c
lib/vrf.c
nhrpd/nhrp_main.c
nhrpd/nhrp_vty.c
ospf6d/ospf6_top.c
ospfd/ospf_vty.c
pbrd/pbr_main.c
pbrd/pbr_vty.c
ripd/ripd.c
ripngd/ripngd.c
vrrpd/vrrp_vty.c
vtysh/vtysh.h