stop using ONLAB OUI for generated mac addressses
This commit is contained in:
+1
-4
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user