]> git.puffer.fish Git - mirror/frr.git/commit
zebra: add a runtime flag to enable vrf with netns
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 22 Jan 2018 08:42:53 +0000 (09:42 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:10:41 +0000 (11:10 +0100)
commit78dd30b263948ffb1d5c22592ef2d70b331bf071
treeef8f2a8f59daed17b0f7453d0aac6241f3f41e0d
parentac3133a35d340a765be1518c2669b979e39fbe66
zebra: add a runtime flag to enable vrf with netns

The netns backend is chosen by VRF if a runtime flag named vrfwnetns is
selected when running zebra.
In the case the NETNS backend is chosen, in some case the VRFID value is
being assigned the value of the NSID. Within the perimeter of that work,
this is why the vrf_lookup_by_table function is extended with a new
parameter.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/ns.c
lib/vrf.c
lib/vrf.h
zebra/if_netlink.c
zebra/main.c
zebra/rt_netlink.c
zebra/zebra_vrf.c