summaryrefslogtreecommitdiffstats
path: root/src/plugins/acl/test/test_acl_plugin_macip.py
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 /src/plugins/acl/test/test_acl_plugin_macip.py
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 'src/plugins/acl/test/test_acl_plugin_macip.py')
-rw-r--r--src/plugins/acl/test/test_acl_plugin_macip.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/acl/test/test_acl_plugin_macip.py b/src/plugins/acl/test/test_acl_plugin_macip.py
index 41735251792..31bc8e5478c 100644
--- a/src/plugins/acl/test/test_acl_plugin_macip.py
+++ b/src/plugins/acl/test/test_acl_plugin_macip.py
@@ -218,7 +218,7 @@ class MethodHolder(VppTestCase):
ip6 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
prefix_len4 = 0
prefix_len6 = 0
- rules_count[(acl / 2) - 1] = 1
+ rules_count[int((acl / 2) - 1)] = 1
else:
prefix_len4 = 24
prefix_len6 = 64
@@ -235,7 +235,7 @@ class MethodHolder(VppTestCase):
ip = ip6 if is_ip6 else ip4
ip_len = prefix_len6 if is_ip6 else prefix_len4
- for i in range(0, rules_count[(acl / 2) - 1]):
+ for i in range(0, (rules_count[int((acl / 2) - 1)])):
src_mac += 16777217
if mac_type == self.WILD_MAC:
mac = "00:00:00:00:00:00"