summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-21 21:03:39 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-21 20:55:52 +0000
commit6769473303fb78ff9364841fd3e1f51a3563463a (patch)
tree732e37fab8046fd93f3e6e6d9ff059006b0d709e
parentf6dee6c8bac17aadfa0378a6e00fdc448a3c3a6d (diff)
geneve: tests support python3
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I0ff4d58c181b2bdf483b8b039ad005c2a4915aa8
-rw-r--r--test/test_geneve.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_geneve.py b/test/test_geneve.py
index ffa8fb8e8e5..56b99518720 100644
--- a/test/test_geneve.py
+++ b/test/test_geneve.py
@@ -137,7 +137,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
ip_range_end = ip_range_start + n_distinct_dst_tunnels
for dest_ip4 in ip4_range(cls.mcast_ip4, ip_range_start,
ip_range_end):
- vni = bytearray(dest_ip4)[3]
+ vni = int(dest_ip4.split('.')[3])
cls.vapi.geneve_add_del_tunnel(local_address=cls.pg0.local_ip4,
remote_address=dest_ip4,
mcast_sw_if_index=1, is_add=is_add,