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/vrf.h | |
| 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/vrf.h')
| -rw-r--r-- | lib/vrf.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
