diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2017-12-07 15:58:48 +0100 | 
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-02-27 11:11:24 +0100 | 
| commit | 81c9005ff6edd2294ec945b93d49f03470b3b827 (patch) | |
| tree | 8a213a60d1710b25dd611383cf8658702a41f793 /lib/ns.h | |
| parent | ff705b15dd5e191e727662412a8433d718887a08 (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.h | 1 | 
1 files changed, 1 insertions, 0 deletions
@@ -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*/  | 
