Skip to content

Commit

Permalink
zebra: Clean remote FDB entries upon VNI removal
Browse files Browse the repository at this point in the history
When the VLAN-VNI mapping is configured via a map and not using
individual VXLAN interfaces, upon removal of a VNI ensure that the
remote FDB entries are uninstalled correctly.

Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>

Ticket: #2613048
Reviewed By:
Testing Done:
1. Manual verification - logs in the ticket
2. Precommit (user job FRRouting#171) and evpn-min (user job FRRouting#170)

Signed-off-by: Stephen Worley <sworley@nvidia.com>
  • Loading branch information
vivek-cumulus authored and sworleys committed Feb 13, 2023
1 parent 73c438e commit 4c2fbe7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zebra/zebra_vxlan_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,15 @@ int zebra_vxlan_if_vni_table_add_update(struct interface *ifp,

/* release kernel deleted vnis */
if (old_vni_table) {
if (hashcount(old_vni_table))
if (hashcount(old_vni_table)) {
/* UGLY HACK: Put back the old table so that delete of
* MACs goes through and then flip back.
*/
vni_info->vni_table = old_vni_table;
hash_iterate(old_vni_table, zebra_vxlan_if_vni_clean,
zif);
vni_info->vni_table = vni_table;
}
zebra_vxlan_vni_table_destroy(old_vni_table);
}

Expand Down

0 comments on commit 4c2fbe7

Please sign in to comment.