diff options
author | Eyal Bari <ebari@cisco.com> | 2017-04-06 03:26:59 +0300 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-04-06 01:47:19 +0000 |
commit | bc799c92d761a2d45105aa6a1685b3663687d2a4 (patch) | |
tree | c5d937712ac9537c8fc61732d606e033974e62fe /src/vnet | |
parent | f24991cab4a899f9e36e7f12ca61c591fedde249 (diff) |
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 <ebari@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/vxlan/vxlan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/vxlan/vxlan.c b/src/vnet/vxlan/vxlan.c index 58c7becb..61cb13c9 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; |