vxlan:fix ip6 tunnel deletion

Change-Id: I70fb7394f85b26f7e632d74fc31ef83597efdd16
Signed-off-by: Eyal Bari <ebari@cisco.com>
(cherry picked from commit f8d5e214687c17fba000607336295e054672459d)
This commit is contained in:
Eyal Bari
2018-10-14 10:54:32 +03:00
committed by John Lo
parent 795539326b
commit 6a86ca9627

View File

@ -599,7 +599,8 @@ int vnet_vxlan_add_del_tunnel
if (!p) if (!p)
return VNET_API_ERROR_NO_SUCH_ENTRY; return VNET_API_ERROR_NO_SUCH_ENTRY;
u32 instance = vxm->tunnel_index_by_sw_if_index[p->sw_if_index]; u32 instance = is_ip6 ? key6.value :
vxm->tunnel_index_by_sw_if_index[p->sw_if_index];
vxlan_tunnel_t *t = pool_elt_at_index (vxm->tunnels, instance); vxlan_tunnel_t *t = pool_elt_at_index (vxm->tunnels, instance);
sw_if_index = t->sw_if_index; sw_if_index = t->sw_if_index;