diff options
author | Xiao Liang <shaw.leon@gmail.com> | 2021-07-30 07:00:06 +0200 |
---|---|---|
committer | Xiao Liang <shaw.leon@gmail.com> | 2021-07-30 08:53:45 +0200 |
commit | 6910315f6f3ddd66d8929cb82deaf96d13a2bfbf (patch) | |
tree | dcb462c2feffa9e52d4c0918704813b85829e4ae /lib/vrf.c | |
parent | Merge pull request #9216 from donaldsharp/simple_snmp_fix (diff) | |
download | frr-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |