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:
@ -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;
|
||||||
|
Reference in New Issue
Block a user