]> git.proxmox.com Git - mirror_frr.git/commit - lib/subdir.am
lib: split logicalrouter and vrf netns feature
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 5 Feb 2018 15:23:42 +0000 (16:23 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
commite26aedbe0b569b3e88718c457210051ba2eed437
tree3075f0e46d471b653f966486caaf04b101058f5b
parent822160dbe6f293a3c94487b4d0abe0f1d9883cca
lib: split logicalrouter and vrf netns feature

This split is introducing logicalrouter.[ch] as the file that contains
the vty commands to configure logical router feature. The split has as
consequence that the backend of logical router is linux_netns.c formerly
called ns.c. The same relationship exists between VRF and its backend
which may be linux_netns.c file.
The split is adapting ns and vrf fiels so as to :
- clarify header
- ensure that the daemon persepctive, the feature VRF or logical router
  is called instead of calling directly ns.
- this implies that VRF will call NS apis, as logical router does.

Also, like it is done for default NS and default VRF, the associated VRF
is enabled first, before NETNS is enabled, so that zvrf->zns pointer is
valid when NETNS discovery applies.

Also, other_netns.c file is a stub handler that will be used for non
linux systems. As NETNS feature is only used by Linux, some BSD systems
may want to use the same backend API to benefit from NETNS. This is what
that file has been done.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/command.c
lib/command.h
lib/logicalrouter.c [new file with mode: 0644]
lib/logicalrouter.h [new file with mode: 0644]
lib/netns_linux.c [new file with mode: 0644]
lib/netns_other.c [new file with mode: 0644]
lib/ns.c [deleted file]
lib/ns.h
lib/subdir.am
lib/vrf.c
lib/vrf.h