summaryrefslogtreecommitdiff
path: root/lib/ns.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2017-12-07 15:58:48 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-02-27 11:11:24 +0100
commit81c9005ff6edd2294ec945b93d49f03470b3b827 (patch)
tree8a213a60d1710b25dd611383cf8658702a41f793 /lib/ns.h
parentff705b15dd5e191e727662412a8433d718887a08 (diff)
zebra: enhance show vrf for netns and fixing
Show vrf command displays information on the vrf, if it is related to vrf kernel or if it is related to netns. When a vrf from kernel is detected, before creating a new vrf, a check is done against an already present vrf, and if that vrf is not a vrf mapped with a netns. If that is that case, then the creation is rejected. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/ns.h')
-rw-r--r--lib/ns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ns.h b/lib/ns.h
index 6aebc44259..fca5becd7a 100644
--- a/lib/ns.h
+++ b/lib/ns.h
@@ -99,5 +99,6 @@ extern int ns_handler_create(struct vty *vty, struct vrf *vrf,
extern char *ns_netns_pathname(struct vty *vty, const char *name);
extern void *ns_info_lookup(ns_id_t ns_id);
extern void ns_walk_func(int (*func)(struct ns *));
+extern const char *ns_get_name(struct ns *ns);
#endif /*_ZEBRA_NS_H*/