[Proxy] ARP tests
Change-Id: I40d6d763b55a26cdee0afef85d1acdd19dd10dd6 Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
3e7b569361
commit
39f9d8bd22
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user