summaryrefslogtreecommitdiffstats
path: root/lib/ns.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2017-12-08 14:32:38 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-02-27 11:11:24 +0100
commitff705b15dd5e191e727662412a8433d718887a08 (patch)
treec24cded67abdfb4af873cc13303c2274d13feb53 /lib/ns.h
parentzebra: add the registration mechanism for netns (diff)
downloadfrr-ff705b15dd5e191e727662412a8433d718887a08.tar.xz
frr-ff705b15dd5e191e727662412a8433d718887a08.zip
zebra: handle the zns init/destroy
The zebra netnamespace contexts are initialised, based on the callback coming from the NS. Reversely, the list of ns is parsed to disable the ns contexts. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/ns.h')
-rw-r--r--lib/ns.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ns.h b/lib/ns.h
index 590e1f2c2..6aebc4425 100644
--- a/lib/ns.h
+++ b/lib/ns.h
@@ -97,5 +97,7 @@ extern void ns_cmd_init(void);
extern int ns_handler_create(struct vty *vty, struct vrf *vrf,
char *pathname, ns_id_t ns_id);
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 *));
#endif /*_ZEBRA_NS_H*/