From 0cfd18d84e4b3ca59cb74f5c18de731fe6a803e1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 24 Aug 2021 17:18:10 -0400 Subject: [PATCH] Add a little main to experiment with neighutil --- confluent_server/confluent/neighutil.py | 5 +++++ 1 file changed, 5 insertions(+) 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