diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2017-12-08 14:32:38 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-02-27 11:11:24 +0100 |
commit | ff705b15dd5e191e727662412a8433d718887a08 (patch) | |
tree | c24cded67abdfb4af873cc13303c2274d13feb53 /lib/ns.h | |
parent | zebra: add the registration mechanism for netns (diff) | |
download | frr-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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*/ |