Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Copying QoS Bits when fragmented, so that marking can happen properly also cleaning...
[vpp.git]
/
test
/
test_acl_plugin_macip.py
diff --git
a/test/test_acl_plugin_macip.py
b/test/test_acl_plugin_macip.py
index
611bc73
..
951e86a
100644
(file)
--- a/
test/test_acl_plugin_macip.py
+++ b/
test/test_acl_plugin_macip.py
@@
-1,6
+1,7
@@
#!/usr/bin/env python
"""ACL plugin - MACIP tests
"""
#!/usr/bin/env python
"""ACL plugin - MACIP tests
"""
+import binascii
import random
import re
import unittest
import random
import re
import unittest
@@
-144,7
+145,7
@@
class MethodHolder(VppTestCase):
cls.subifs[3].remote_hosts = cls.loop0.remote_hosts[175:]
except Exception:
cls.subifs[3].remote_hosts = cls.loop0.remote_hosts[175:]
except Exception:
- super(
TestMACIP
, cls).tearDownClass()
+ super(
MethodHolder
, cls).tearDownClass()
raise
def setUp(self):
raise
def setUp(self):
@@
-185,8
+186,8
@@
class MethodHolder(VppTestCase):
rule = "DENY "
print " IP6" if r.is_ipv6 else " IP4", \
rule, \
rule = "DENY "
print " IP6" if r.is_ipv6 else " IP4", \
rule, \
-
r.src_mac.encode('hex'
), \
-
r.src_mac_mask.encode('hex'
),\
+
binascii.hexlify(r.src_mac
), \
+
binascii.hexlify(r.src_mac_mask
),\
unpack('<16B', r.src_ip_addr), \
r.src_ip_prefix_len
return acls
unpack('<16B', r.src_ip_addr), \
r.src_ip_prefix_len
return acls
@@
-575,8
+576,8
@@
class MethodHolder(VppTestCase):
# TODO : verify
# for acl in acls:
# for r in acl.r:
# TODO : verify
# for acl in acls:
# for r in acl.r:
- # print
r.src_mac.encode('hex'
), \
- #
r.src_mac_mask.encode('hex'
),\
+ # print
binascii.hexlify(r.src_mac
), \
+ #
binascii.hexlify(r.src_mac_mask
),\
# unpack('<16B', r.src_ip_addr), \
# r.src_ip_prefix_len
#
# unpack('<16B', r.src_ip_addr), \
# r.src_ip_prefix_len
#