summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-06-21 17:04:46 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-06-21 17:04:46 +0200
commitf5eef2d5a8a471fe6e4ec4f6acfa3dbf190eda5d (patch)
tree58ed00dffe8ba1f1c64ca0b6dfa3153da9ec6e43 /isisd
parentMerge pull request #8841 from volta-networks/fix_ospf6_bad_seqnum (diff)
downloadfrr-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 'isisd')
-rw-r--r--isisd/isisd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/isisd/isisd.c b/isisd/isisd.c
index 7f56903fc..7e78e0ce6 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -716,6 +716,8 @@ void isis_vrf_init(void)
{
vrf_init(isis_vrf_new, isis_vrf_enable, isis_vrf_disable,
isis_vrf_delete, isis_vrf_enable);
+
+ vrf_cmd_init(NULL, &isisd_privs);
}
void isis_terminate()