aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorsnaramre <snaramre@cisco.com>2019-10-16 22:15:43 +0000
committerNaveen Joy <najoy@cisco.com>2019-10-17 15:20:44 -0700
commit2bb7151daf3cf312804cd2242419017bad5af07a (patch)
tree1a19dba22af19cd15cb8061601d54b98838906c6 /test
parent8a754f1a55fb16a4d42efd5c606e5a07b4afffe9 (diff)
tests: python3 changes for span and aclplugin test
Type: fix Change-Id: Ia9f74f951f831cc5c9b5af863db1bb3f7a1a81ff Signed-off-by: snaramre <snaramre@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_span.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_span.py b/test/test_span.py
index c67bc7b8587..3b31f6242e2 100644
--- a/test/test_span.py
+++ b/test/test_span.py
@@ -144,7 +144,7 @@ class TestSpan(VppTestCase):
for i in range(0, self.pkts_per_burst):
payload = "span test"
- size = packet_sizes[(i / 2) % len(packet_sizes)]
+ size = packet_sizes[int((i / 2) % len(packet_sizes))]
p = (Ether(src=src_if.local_mac, dst=dst_mac) /
IP(src=src_if.remote_ip4, dst=dst_if.remote_ip4) /
UDP(sport=10000 + src_if.sw_if_index * 1000 + i, dport=1234) /