]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vty.c
zebra: enhance show vrf for netns and fixing
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 7 Dec 2017 14:58:48 +0000 (15:58 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
commit81c9005ff6edd2294ec945b93d49f03470b3b827
tree8a213a60d1710b25dd611383cf8658702a41f793
parentff705b15dd5e191e727662412a8433d718887a08
zebra: enhance show vrf for netns and fixing

Show vrf command displays information on the vrf, if it is related to
vrf kernel or if it is related to netns.
When a vrf from kernel is detected, before creating a new vrf, a check
is done against an already present vrf, and if that vrf is not a vrf
mapped with a netns. If that is that case, then the creation is
rejected.

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