2
0
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:
Jarrod Johnson 2021-08-24 17:18:10 -04:00
parent 51a73737a7
commit 0cfd18d84e

View File

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