mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-13 03:08:14 +00:00
Add a little main to experiment with neighutil
This commit is contained in:
parent
51a73737a7
commit
0cfd18d84e
@ -92,3 +92,8 @@ def get_hwaddr(ipaddr):
|
||||
if hwaddr:
|
||||
hwaddr = ':'.join(['{:02x}'.format(x) for x in bytearray(hwaddr)])
|
||||
return hwaddr
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
print(repr(get_hwaddr(sys.argv[1])))
|
Loading…
x
Reference in New Issue
Block a user