]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_netns_notify.c
zebra: collect and get netnamespaces information
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 13 Dec 2017 10:04:31 +0000 (11:04 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
commite27dec3cf15d627cc26c07f40ded138b0bcc6a0a
treeee0111790a084d52be8210bf75a532679ed6543b
parent05895ad0be6c8fadcd895c3b1aa137b89791fbde
zebra: collect and get netnamespaces information

upon zebra initialisation, and upon further netnamespace creation, the
the netnamespaces are created and a vrf associated to the netnamespace
is created. By convention, the name of the netns will be the same as the
VRF.
Add a stub routine that returns a fake ns identifier, in case netlink (
linux machines) is not available.
Also, upon each newly discovered NETNS, a NSID id being generated,
either by relying on kernel NSID feature, or by generating locally the
NSID ( see previous commit for more information).

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/main.c
zebra/subdir.am
zebra/zebra_netns_notify.c [new file with mode: 0644]
zebra/zebra_netns_notify.h [new file with mode: 0644]
zebra/zebra_ns.c