mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-13 12:16:31 +00:00
zebra: clean zevpn references in the access bd database when the VNI is deleted
When an VNI was deleted as a part of FRR/zebra shutdown the zevpn entry was being freed without removing its reference in the access vlan entry (i.e. without clearing the VLAN->VNI mapping) used by MH. Ticket: CM-31197 Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
This commit is contained in:
parent
7c0e4dc659
commit
963b0c55fd
@ -1046,6 +1046,9 @@ int zebra_evpn_del(zebra_evpn_t *zevpn)
|
||||
hash_free(zevpn->mac_table);
|
||||
zevpn->mac_table = NULL;
|
||||
|
||||
/* Remove references to the zevpn in the MH databases */
|
||||
if (zevpn->vxlan_if)
|
||||
zebra_evpn_vxl_evpn_set(zevpn->vxlan_if->info, zevpn, false);
|
||||
zebra_evpn_es_evi_cleanup(zevpn);
|
||||
|
||||
/* Free the EVPN hash entry and allocated memory. */
|
||||
|
Loading…
Reference in New Issue
Block a user