diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-26 12:22:18 +0200 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-04-13 16:40:32 +0200 |
| commit | 03aff2d8489e91b493ad24b8d8d8918831e156d8 (patch) | |
| tree | 304e168835778c15f11d2c2ba9d96109e944dcb4 /lib/netns_other.c | |
| parent | 0c2bac388029e12e4c21177cda02e72712f28efb (diff) | |
zebra: add an indirection table for ns_id
This list "table" is created in the case the netns backend for VRF is
used. This contains the mapping between the NSID value read from the
'ip netns list' and the ns id external used to create the VRF
value from vrf context. This mapping is
necessary in order to reserve default 0 value for vrf_default.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/netns_other.c')
| -rw-r--r-- | lib/netns_other.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/netns_other.c b/lib/netns_other.c index 2402dd17d6..4c7be05fab 100644 --- a/lib/netns_other.c +++ b/lib/netns_other.c @@ -153,6 +153,11 @@ int ns_enable(struct ns *ns, int (*func)(ns_id_t, void *)) return 0; } +ns_id_t ns_map_nsid_with_external(ns_id_t ns_id, bool maporunmap) +{ + return NS_UNKNOWN; +} + struct ns *ns_get_created(struct ns *ns, char *name, ns_id_t ns_id) { return NULL; |
