Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
misc: Fix python scripts shebang line
[vpp.git]
/
src
/
plugins
/
acl
/
test
/
test_classify_l2_acl.py
diff --git
a/src/plugins/acl/test/test_classify_l2_acl.py
b/src/plugins/acl/test/test_classify_l2_acl.py
index
8ba7181
..
c9962d6
100644
(file)
--- a/
src/plugins/acl/test/test_classify_l2_acl.py
+++ b/
src/plugins/acl/test/test_classify_l2_acl.py
@@
-1,4
+1,4
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
""" Classifier-based L2 ACL Test Case HLD:
"""
""" Classifier-based L2 ACL Test Case HLD:
"""
@@
-274,7
+274,7
@@
class TestClassifyAcl(VppTestCase):
:param int start: Number to start numbering from.
"""
n_int = len(self.pg_interfaces)
: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
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_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:
src_host = src_hosts[i % len(src_hosts)]
pkt_info = self.create_packet_info(src_if, dst_if)
if ipv6 == 1: