diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-21 17:04:46 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-06-21 17:04:46 +0200 |
commit | f5eef2d5a8a471fe6e4ec4f6acfa3dbf190eda5d (patch) | |
tree | 58ed00dffe8ba1f1c64ca0b6dfa3153da9ec6e43 /eigrpd | |
parent | Merge pull request #8841 from volta-networks/fix_ospf6_bad_seqnum (diff) | |
download | frr-f5eef2d5a8a471fe6e4ec4f6acfa3dbf190eda5d.tar.xz frr-f5eef2d5a8a471fe6e4ec4f6acfa3dbf190eda5d.zip |
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>
Diffstat (limited to 'eigrpd')
-rw-r--r-- | eigrpd/eigrp_cli.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eigrpd/eigrp_cli.c b/eigrpd/eigrp_cli.c index 3a978cae3..47de929fc 100644 --- a/eigrpd/eigrp_cli.c +++ b/eigrpd/eigrp_cli.c @@ -919,6 +919,8 @@ eigrp_cli_init(void) install_element(EIGRP_NODE, &eigrp_neighbor_cmd); install_element(EIGRP_NODE, &eigrp_redistribute_source_metric_cmd); + vrf_cmd_init(NULL, &eigrpd_privs); + install_node(&eigrp_interface_node); if_cmd_init(); |