diff --git a/confluent_server/confluent/neighutil.py b/confluent_server/confluent/neighutil.py index 4eed9883..b2152443 100644 --- a/confluent_server/confluent/neighutil.py +++ b/confluent_server/confluent/neighutil.py @@ -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]))) \ No newline at end of file