summaryrefslogtreecommitdiff
path: root/lib/vrf.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-03-26 12:22:18 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-04-13 16:40:32 +0200
commit03aff2d8489e91b493ad24b8d8d8918831e156d8 (patch)
tree304e168835778c15f11d2c2ba9d96109e944dcb4 /lib/vrf.h
parent0c2bac388029e12e4c21177cda02e72712f28efb (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/vrf.h')
-rw-r--r--lib/vrf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vrf.h b/lib/vrf.h
index 85a5309279..8aa0fc2215 100644
--- a/lib/vrf.h
+++ b/lib/vrf.h
@@ -272,7 +272,8 @@ extern int vrf_handler_create(struct vty *vty, const char *name,
* should be called from zebra only
*/
extern int vrf_netns_handler_create(struct vty *vty, struct vrf *vrf,
- char *pathname, ns_id_t ns_id);
+ char *pathname, ns_id_t ext_ns_id,
+ ns_id_t ns_id);
/* used internally to enable or disable VRF.
* Notify a change in the VRF ID of the VRF