diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-10-02 13:34:40 +0200 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2020-05-18 14:11:03 +0200 | 
| commit | 9d3555e06ccc68fe37e0a00100029ac4bad8dee2 (patch) | |
| tree | 2d280fa3fda993385d84e074f0cb20b0aaab4fab /zebra/zebra_netns_notify.c | |
| parent | 97c9e7533bd22029ac19838c043cfca82d2f6eb3 (diff) | |
zebra, lib: store relative default ns id in each namespace
to be able to retrieve the network namespace identifier for each
namespace, the ns id is stored in each ns context. For default
namespace, the netns id is the same as that value.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_netns_notify.c')
| -rw-r--r-- | zebra/zebra_netns_notify.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_netns_notify.c b/zebra/zebra_netns_notify.c index 105886bb67..0e2c1684d5 100644 --- a/zebra/zebra_netns_notify.c +++ b/zebra/zebra_netns_notify.c @@ -109,7 +109,9 @@ static void zebra_ns_notify_create_context_from_entry_name(const char *name)  	}  	frr_with_privs(&zserv_privs) {  		ret = vrf_netns_handler_create(NULL, vrf, netnspath, -					       ns_id_external, ns_id); +					       ns_id_external, +					       ns_id, +					       ns_id_relative);  	}  	if (ret != CMD_SUCCESS) {  		flog_warn(EC_ZEBRA_NS_VRF_CREATION_FAILED,  | 
