]> git.puffer.fish Git - matthieu/frr.git/commit
lib: externalise vrf and ns creation
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)
commit697d3ec73157fde8a008738907fef94fdcd569bb
treeed168a01b0c4535f172cbcd437b676cece7fdc09
parentfbb65ff50428eefba0653e8f3f6f33afa003c4cd
lib: externalise vrf and ns creation

In addition to have the possibility to create from vty vrf based on a
netns backend, the API will be made accessible from external, especially
for zebra that will handle the netns discovery part. This commit is
externalising following functions:
- netns_pathname
- ns_handler_create
- vrf_handler_create

Also, the VRF initialisation case when under NETNS backend is changed,
since the NS identifier may not be known at the configuration time,but
may be known later, under discovery process.

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