summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ns.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-12-21 16:25:20 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-01-09 18:31:16 +0100
commitedbc33221c34c2ef2fb942ea8202a85a0c148bf7 (patch)
treeeff7543b0150cddae8672a45a2fa96345e743287 /zebra/zebra_ns.h
parentMerge pull request #3565 from rhonda/patch-1 (diff)
downloadfrr-edbc33221c34c2ef2fb942ea8202a85a0c148bf7.tar.xz
frr-edbc33221c34c2ef2fb942ea8202a85a0c148bf7.zip
zebra: start the netns notification mechanism after ns initialisation
when zebra is run, by using vrf netns backend mode, then the parser detector of netns is run before forcing the default vrf to a possible value. In that case, there is a possibility that the forced '-o' option will create a second vrf with same name, whereas this option should be there to uniquely have a default vrf with a value. To make things consistent, the forced value will be priorised. Then, the notifier will attempt to create vrf contexts. The expectation is that the creation will fail, due to an already present vrf with same name. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/zebra_ns.h')
-rw-r--r--zebra/zebra_ns.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_ns.h b/zebra/zebra_ns.h
index d3592f8f3..01af64c17 100644
--- a/zebra/zebra_ns.h
+++ b/zebra/zebra_ns.h
@@ -60,7 +60,7 @@ struct zebra_ns {
struct zebra_ns *zebra_ns_lookup(ns_id_t ns_id);
-int zebra_ns_init(void);
+int zebra_ns_init(const char *optional_default_name);
int zebra_ns_enable(ns_id_t ns_id, void **info);
int zebra_ns_disabled(struct ns *ns);
int zebra_ns_early_shutdown(struct ns *ns);