summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2017-04-06 03:31:00 +0300
committerJohn Lo <loj@cisco.com>2017-04-07 15:04:51 +0000
commitd927834a1f4dfd18eb4d0788e69f106fc3780ef8 (patch)
treef681ee0749ac64ff3571e21fd5e4f26ea6a36f7c /test
parent0f26c5a0138ac86d7ebd197c31a09d8d624c35fe (diff)
VXLAN/TEST:validate vxlan del reply has valid sw_if_index
Change-Id: Icf7420b7ee212e9341f63f005dc287d019fd8e4c Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_vxlan.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_vxlan.py b/test/test_vxlan.py
index ee829a31..6bdcb258 100644
--- a/test/test_vxlan.py
+++ b/test/test_vxlan.py
@@ -101,12 +101,14 @@ class TestVxlan(BridgeDomain, VppTestCase):
vni_start = 10000
vni_end = vni_start + n_shared_dst_tunnels
for vni in range(vni_start, vni_end):
- cls.vapi.vxlan_add_del_tunnel(
+ r = cls.vapi.vxlan_add_del_tunnel(
src_addr=cls.pg0.local_ip4n,
dst_addr=cls.mcast_ip4n,
mcast_sw_if_index=1,
vni=vni,
is_add=is_add)
+ if r.sw_if_index == 0xffffffff:
+ raise "bad sw_if_index"
@classmethod
def add_shared_mcast_dst_load(cls):