summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorUnmesh Gurjar <unmesh.gurjar@nttdata.com>2012-10-31 22:31:46 -0700
committerUnmesh Gurjar <unmesh.gurjar@nttdata.com>2012-10-31 22:31:46 -0700
commitf7433c85b9f04873404bcbe9dbb4aa228b835f8f (patch)
treedadf6532a3bda44057245954d534ecf7bc8c65b7 /nova/utils.py
parent7db75002668dfc9d91914feaea67f49f947099b9 (diff)
downloadnova-f7433c85b9f04873404bcbe9dbb4aa228b835f8f.tar.gz
nova-f7433c85b9f04873404bcbe9dbb4aa228b835f8f.tar.xz
nova-f7433c85b9f04873404bcbe9dbb4aa228b835f8f.zip
Increased MAC address range to reduce conflicts
Increased the 4th octet range from 7f to ff, making it consistent with Quantum. This also reduces the probability of a MAC address conflict. Fixes LP: #1050924 Change-Id: I801a852110c0a35e5a6a31f359df75475a21fd4a
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/utils.py b/nova/utils.py
index 26637a489..47c51aff5 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -1018,7 +1018,7 @@ def generate_mac_address():
# properly: 0xfa.
# Discussion: https://bugs.launchpad.net/nova/+bug/921838
mac = [0xfa, 0x16, 0x3e,
- random.randint(0x00, 0x7f),
+ random.randint(0x00, 0xff),
random.randint(0x00, 0xff),
random.randint(0x00, 0xff)]
return ':'.join(map(lambda x: "%02x" % x, mac))