Skip to content
Snippets Groups Projects
Commit 7ae39fff authored by cody burkard's avatar cody burkard
Browse files

stop using ONLAB OUI for generated mac addressses

parent 88763cfb
No related branches found
No related tags found
No related merge requests found
...@@ -253,10 +253,7 @@ def macColonHex( mac ): ...@@ -253,10 +253,7 @@ def macColonHex( mac ):
"""Generate MAC colon-hex string from unsigned int. """Generate MAC colon-hex string from unsigned int.
mac: MAC address as unsigned int mac: MAC address as unsigned int
returns: macStr MAC colon-hex string""" returns: macStr MAC colon-hex string"""
if mac < 2 ** 24: return _colonHex( mac, 6 )
return 'A4:23:05:' + _colonHex( mac, 3 )
else:
return 'A4:23:05:' + _colonHex( mac, 3 )
def ipStr( ip ): def ipStr( ip ):
"""Generate IP address string from an unsigned int. """Generate IP address string from an unsigned int.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment