aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-21 20:39:45 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-21 19:53:18 +0000
commit203bf04d46702b713c96a06c04cd5bfd5156621b (patch)
treeb69c21483d0c51fb197f856e86f66815a91a601a /src/plugins
parent8b76c23d5729efa1e223ef6de8dfae9bafd9a81d (diff)
acl: l2 classify test support python3
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I3b2e57e3dcf04ae50724b5909272b083d6003a85
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/acl/test/test_classify_l2_acl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/acl/test/test_classify_l2_acl.py b/src/plugins/acl/test/test_classify_l2_acl.py
index 8ba7181aef1..1525f7225f0 100644
--- a/src/plugins/acl/test/test_classify_l2_acl.py
+++ b/src/plugins/acl/test/test_classify_l2_acl.py
@@ -274,7 +274,7 @@ class TestClassifyAcl(VppTestCase):
:param int start: Number to start numbering from.
"""
n_int = len(self.pg_interfaces)
- macs_per_if = count / n_int
+ macs_per_if = count // n_int
i = -1
for pg_if in self.pg_interfaces:
i += 1
@@ -328,7 +328,7 @@ class TestClassifyAcl(VppTestCase):
dst_hosts = self.hosts_by_pg_idx[dst_if.sw_if_index]
n_int = len(dst_hosts) * len(src_hosts)
for i in range(0, n_int):
- dst_host = dst_hosts[i / len(src_hosts)]
+ dst_host = dst_hosts[i // len(src_hosts)]
src_host = src_hosts[i % len(src_hosts)]
pkt_info = self.create_packet_info(src_if, dst_if)
if ipv6 == 1: