From f7433c85b9f04873404bcbe9dbb4aa228b835f8f Mon Sep 17 00:00:00 2001 From: Unmesh Gurjar Date: Wed, 31 Oct 2012 22:31:46 -0700 Subject: 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 --- nova/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/utils.py') 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)) -- cgit