]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: copy logical-router-command under vrf subnode
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 6 Dec 2017 11:03:59 +0000 (12:03 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
commitb95c18833a36bcf03b7a72c110be24873a65420d
treea4e87d33219f1adf263657ad916455260fcab42d
parent78dd30b263948ffb1d5c22592ef2d70b331bf071
zebra: copy logical-router-command under vrf subnode

a vty command is added:
in addition to this command ( kept for future usage):
- [no] logical-router-id <ID> netns <NETNSNAME>
a new command is being placed under vrf subnode
- vrf <NAME>
   [no] netns <NETNSNAME>
  exit

This command permits to map a VRF with a Netnamespace.
The commit only handles the relationship between vrf and ns structures.
It adds 2 attributes to vrf structure:
- one defines the kind of vrf ( mapped under netns or vrf from kernel)
- the other is the opaque pointer to ns
The show running-config is handled by zebra daemon.

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