summaryrefslogtreecommitdiff
path: root/ripngd/ripngd.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-06-21 18:04:46 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-06-21 18:04:46 +0300
commitf5eef2d5a8a471fe6e4ec4f6acfa3dbf190eda5d (patch)
tree58ed00dffe8ba1f1c64ca0b6dfa3153da9ec6e43 /ripngd/ripngd.c
parentcd551a0fd5430791ce4e650ccca9b312f02b9701 (diff)
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 'ripngd/ripngd.c')
-rw-r--r--ripngd/ripngd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index 3b8d2076f3..a0ea18f3e9 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -2691,6 +2691,8 @@ void ripng_vrf_init(void)
{
vrf_init(ripng_vrf_new, ripng_vrf_enable, ripng_vrf_disable,
ripng_vrf_delete, ripng_vrf_enable);
+
+ vrf_cmd_init(NULL, &ripngd_privs);
}
void ripng_vrf_terminate(void)