Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
[Proxy] ARP tests
[vpp.git]
/
test
/
util.py
diff --git
a/test/util.py
b/test/util.py
index
3a8bd83
..
d6b77f9
100644
(file)
--- a/
test/util.py
+++ b/
test/util.py
@@
-47,6
+47,11
@@
def ip4n_range(ip4n, s, e):
for ip in ip4_range(ip4, s, e))
+def mactobinary(mac):
+ """ Convert the : separated format into binary packet data for the API """
+ return mac.replace(':', '').decode('hex')
+
+
class NumericConstant(object):
__metaclass__ = ABCMeta