diff options
| author | Xiao Liang <shaw.leon@gmail.com> | 2021-07-30 13:00:06 +0800 | 
|---|---|---|
| committer | Xiao Liang <shaw.leon@gmail.com> | 2021-07-30 14:53:45 +0800 | 
| commit | 6910315f6f3ddd66d8929cb82deaf96d13a2bfbf (patch) | |
| tree | dcb462c2feffa9e52d4c0918704813b85829e4ae /zebra/zebra_netns_notify.c | |
| parent | 31a8ea0f5f5ee90363fb244a2ac81bfb13183987 (diff) | |
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 'zebra/zebra_netns_notify.c')
| -rw-r--r-- | zebra/zebra_netns_notify.c | 2 | 
1 files changed, 0 insertions, 2 deletions
diff --git a/zebra/zebra_netns_notify.c b/zebra/zebra_netns_notify.c index 3e89df68fd..054015846f 100644 --- a/zebra/zebra_netns_notify.c +++ b/zebra/zebra_netns_notify.c @@ -149,8 +149,6 @@ static int zebra_ns_delete(char *name)  			  "NS notify : no VRF found using NS %s", name);  		return 0;  	} -	/* Clear configured flag and invoke delete. */ -	UNSET_FLAG(vrf->status, VRF_CONFIGURED);  	ns = (struct ns *)vrf->ns_ctxt;  	/* the deletion order is the same  	 * as the one used when siging signal is received  | 
