stop using ONLAB OUI for generated mac addressses

This commit is contained in:
cody burkard
2014-08-06 17:51:32 -07:00
parent 88763cfbe1
commit 7ae39fffc2
+1 -4
View File
@@ -253,10 +253,7 @@ def macColonHex( mac ):
"""Generate MAC colon-hex string from unsigned int.
mac: MAC address as unsigned int
returns: macStr MAC colon-hex string"""
if mac < 2 ** 24:
return 'A4:23:05:' + _colonHex( mac, 3 )
else:
return 'A4:23:05:' + _colonHex( mac, 3 )
return _colonHex( mac, 6 )
def ipStr( ip ):
"""Generate IP address string from an unsigned int.