summaryrefslogtreecommitdiff
path: root/zebra/zebra_vrf.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2017-05-14 22:38:26 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-07-12 12:26:02 -0400
commit13d60d351c4c70e8a2949ef45d88ec4efe382367 (patch)
treeb3846b88b4d3b03aa06801cac95d9a7992732076 /zebra/zebra_vrf.c
parent18a7a601c713ab1cc7fa91a7f883e18a25cc2fa1 (diff)
zebra: VNI and VTEP handling
Implement fundamental handling for VNIs and VTEPs: - Handle EVPN enable/disable by client (advertise-all-vni) - Create/update/delete VNIs based on VxLAN interface events and inform client - Handle VTEP add/delete from client and install into kernel - New debug command for VxLAN/EVPN - kernel interface (Linux/netlink only) Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vrf.c')
-rw-r--r--zebra/zebra_vrf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c
index 1656892675..32c636e5e7 100644
--- a/zebra/zebra_vrf.c
+++ b/zebra/zebra_vrf.c
@@ -37,6 +37,7 @@
#include "zebra/zebra_static.h"
#include "zebra/interface.h"
#include "zebra/zebra_mpls.h"
+#include "zebra/zebra_vxlan.h"
extern struct zebra_t zebrad;
@@ -244,6 +245,9 @@ zebra_vrf_delete (struct vrf *vrf)
rib_close_table (zvrf->other_table[afi][table_id]);
}
+ /* Cleanup Vxlan table and update kernel */
+ zebra_vxlan_close_tables (zvrf);
+
zebra_mpls_close_tables (zvrf);
for (ALL_LIST_ELEMENTS_RO (vrf->iflist, node, ifp))
@@ -421,6 +425,7 @@ zebra_vrf_alloc (void)
zvrf->import_check_table[afi] = table;
}
+ zebra_vxlan_init_tables (zvrf);
zebra_mpls_init_tables (zvrf);
return zvrf;