]> git.proxmox.com Git - mirror_frr.git/commit
zebra: start the netns notification mechanism after ns initialisation
authorPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 21 Dec 2018 15:25:20 +0000 (16:25 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 9 Jan 2019 17:31:16 +0000 (18:31 +0100)
commitedbc33221c34c2ef2fb942ea8202a85a0c148bf7
treeeff7543b0150cddae8672a45a2fa96345e743287
parent17c7cb4acd01c76ceb9daa667857169e28540993
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>
zebra/main.c
zebra/zebra_ns.c
zebra/zebra_ns.h