Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NAT: add missing CLI and API documentation (VPP-1142)
[vpp.git]
/
test
/
test_vxlan.py
diff --git
a/test/test_vxlan.py
b/test/test_vxlan.py
index
ee829a3
..
99d5d13
100644
(file)
--- a/
test/test_vxlan.py
+++ b/
test/test_vxlan.py
@@
-97,16
+97,18
@@
class TestVxlan(BridgeDomain, VppTestCase):
add or del tunnels sharing the same mcast dst
to test vxlan ref_count mechanism
"""
add or del tunnels sharing the same mcast dst
to test vxlan ref_count mechanism
"""
- n_shared_dst_tunnels = 20
00
+ n_shared_dst_tunnels = 20
vni_start = 10000
vni_end = vni_start + n_shared_dst_tunnels
for vni in range(vni_start, vni_end):
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)
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):
@classmethod
def add_shared_mcast_dst_load(cls):