diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2017-12-07 18:27:31 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-02-27 11:11:24 +0100 |
commit | 3347430b12ecccc4f03fb29111e9621a6e123b3c (patch) | |
tree | d3a7ce58f828c05cfb32d84f6342c59618932cf7 /lib/ns.h | |
parent | lib: externalise vrf and ns creation (diff) | |
download | frr-3347430b12ecccc4f03fb29111e9621a6e123b3c.tar.xz frr-3347430b12ecccc4f03fb29111e9621a6e123b3c.zip |
zebra: add the registration mechanism for netns
If vrf backend is netns, then the zebra will create its own
zebra_ns context for each new netns discovered. As consequence,
a routing table, and other contexts will be created for each
new namespace discovered. When it is enabled, a populate process
will be done, consisting in learning new interfaces and routes, and
addresses from other NETNS.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/ns.h')
-rw-r--r-- | lib/ns.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -79,13 +79,12 @@ extern struct ns_head ns_tree; * - param 2: the address of the user data pointer (the user data * can be stored in or freed from there) */ -extern void ns_add_hook(int, int (*)(ns_id_t, void **)); +extern void ns_add_hook(int type, int (*)(struct ns *)); /* * NS initializer/destructor */ -/* Please add hooks before calling ns_init(). */ -extern void ns_init(void); +extern void ns_init_zebra(void); extern void ns_terminate(void); /* |