From 2fe5a02ea4dd892eee6566cb1f91fd5b179ade5d Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Mon, 16 May 2022 09:18:26 -0400 Subject: [PATCH] zebra: fix missing delete vtep during vni transition All `vtep`s in dplane should be deleted/uninstalled during vni transition. Signed-off-by: anlan_cs --- zebra/zebra_vxlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index c5d3b8c8dc..e21a64b459 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -2115,7 +2115,7 @@ static int zebra_vxlan_handle_vni_transition(struct zebra_vrf *zvrf, vni_t vni, zebra_evpn_mac_del_all(zevpn, 0, 0, DEL_ALL_MAC); /* Free up all remote VTEPs, if any. */ - zebra_evpn_vtep_del_all(zevpn, 0); + zebra_evpn_vtep_del_all(zevpn, 1); /* Delete the hash entry. */ if (zebra_evpn_vxlan_del(zevpn)) {