[Proxy] ARP tests

Change-Id: I40d6d763b55a26cdee0afef85d1acdd19dd10dd6
Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:
Neale Ranns
2017-02-16 21:57:05 -08:00
committed by Damjan Marion
parent 3e7b569361
commit 39f9d8bd22
5 changed files with 587 additions and 0 deletions

View File

@ -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