]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vxlan.c
*: Refine the notion of a configured VRF in FRR
authorvivek <vivek@cumulusnetworks.com>
Wed, 6 Dec 2017 23:19:11 +0000 (15:19 -0800)
committermitesh <mitesh@cumulusnetworks.com>
Wed, 24 Jan 2018 02:49:40 +0000 (18:49 -0800)
commit22bd3e94979d0c42e9318d96bced01e807b1b7ce
treed70053b630e651cba0e8bbbac4a0c62630142d61
parent317f1fe02fa8a6fea0fe9530078edf54335f3228
*: Refine the notion of a configured VRF in FRR

Refine the notion of what FRR considers as "configured" VRF. It is no longer
based on user just typing "vrf FOO" but when something is actually configured
against that VRF. Right now, in zebra, the only configuration against a VRF
are static IP routes and EVPN L3 VNI. Whenever a configuration is removed,
check and clear the "configured" flag if there is no other configuration for
this VRF. When user attempts to configure a static route and the VRF doesn't
exist, a VRF is created; the VRF is only active when also defined in the
kernel.

Updates: 8b73ea7bd479030418ca06eef59d0648d913b620
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Ticket: CM-10139, CM-18553
Reviewed By: CCR-7019
Testing Done:
1. Manual testing for L3 VNI and static routes - FRR restart, networking
restart etc.
2. 'vrf' smoke

<DETAILED DESCRIPTION (REPLACE)>
lib/vrf.c
lib/vrf.h
zebra/zebra_vrf.c
zebra/zebra_vrf.h
zebra/zebra_vty.c
zebra/zebra_vxlan.c