From 7ae39fffc2089e57fb2ee069522a88d240cd4686 Mon Sep 17 00:00:00 2001 From: cody burkard <cody@onlab.us> Date: Wed, 6 Aug 2014 17:51:32 -0700 Subject: [PATCH] stop using ONLAB OUI for generated mac addressses --- mininet/util.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mininet/util.py b/mininet/util.py index 6c7b4263..673d3f6d 100644 --- a/mininet/util.py +++ b/mininet/util.py @@ -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. -- GitLab