summaryrefslogtreecommitdiffstats
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorXiao Liang <shaw.leon@gmail.com>2021-07-30 07:00:06 +0200
committerXiao Liang <shaw.leon@gmail.com>2021-07-30 08:53:45 +0200
commit6910315f6f3ddd66d8929cb82deaf96d13a2bfbf (patch)
treedcb462c2feffa9e52d4c0918704813b85829e4ae /lib/vrf.c
parentMerge pull request #9216 from donaldsharp/simple_snmp_fix (diff)
downloadfrr-6910315f6f3ddd66d8929cb82deaf96d13a2bfbf.tar.xz
frr-6910315f6f3ddd66d8929cb82deaf96d13a2bfbf.zip
lib, zebra: Preserve user-configured VRF on netns deletion
Don't clear VRF's user-configured flag when netns is deleted. Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index 03d9a62c0..815c0fcba 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -287,6 +287,7 @@ void vrf_delete(struct vrf *vrf)
RB_REMOVE(vrf_id_head, &vrfs_by_id, vrf);
vrf->vrf_id = VRF_UNKNOWN;
}
+ vrf->ns_ctxt = NULL;
return;
}