From bc799c92d761a2d45105aa6a1685b3663687d2a4 Mon Sep 17 00:00:00 2001 From: Eyal Bari Date: Thu, 6 Apr 2017 03:26:59 +0300 Subject: VXLAN:fix tunnel delete not returning sw_if_index when tunnel is deleted reply should include the tunnel's sw_if_index instead of ~0 Change-Id: Ie5e04f4feab9cf2c90f0e155ec0fb9ca839a956d Signed-off-by: Eyal Bari --- src/vnet/vxlan/vxlan.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/vxlan') diff --git a/src/vnet/vxlan/vxlan.c b/src/vnet/vxlan/vxlan.c index 58c7becb5d7..61cb13c97d4 100644 --- a/src/vnet/vxlan/vxlan.c +++ b/src/vnet/vxlan/vxlan.c @@ -576,6 +576,7 @@ int vnet_vxlan_add_del_tunnel t = pool_elt_at_index (vxm->tunnels, p[0]); + sw_if_index = t->sw_if_index; vnet_sw_interface_set_flags (vnm, t->sw_if_index, 0 /* down */); vnet_sw_interface_t * si = vnet_get_sw_interface (vnm, t->sw_if_index); si->flags |= VNET_SW_INTERFACE_FLAG_HIDDEN; -- cgit 1.2.3-korg