aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2018-10-14 10:54:32 +0300
committerJohn Lo <loj@cisco.com>2018-10-14 23:00:35 +0000
commitf8d5e214687c17fba000607336295e054672459d (patch)
tree1b9cb9f28850f4b2804ef4be4c3babe21fa24416 /src/vnet
parent7ff7453af3ecb9819765a672f4b13417e225451a (diff)
vxlan:fix ip6 tunnel deletion
Change-Id: I70fb7394f85b26f7e632d74fc31ef83597efdd16 Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/vxlan/vxlan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/vxlan/vxlan.c b/src/vnet/vxlan/vxlan.c
index 93a4e263579..4276d6689ac 100644
--- a/src/vnet/vxlan/vxlan.c
+++ b/src/vnet/vxlan/vxlan.c
@@ -599,7 +599,8 @@ int vnet_vxlan_add_del_tunnel
if (!p)
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);
sw_if_index = t->sw_if_index;