[openstack-dev] [neutron]How to ensure the mac of neutron port is not reduplicative in a large lay2 network?

张广明 gmzhang76 at gmail.com
Thu Jul 28 05:58:23 UTC 2016


Thanks Kevin

2016-07-28 12:51 GMT+08:00 Kevin Benton <kevin at benton.pub>:

> If the mac is duplicated on a network it will be violate a uniqueness
> constraint in the DB which will trigger a retry.
>
> On Wed, Jul 27, 2016 at 9:48 PM, 张广明 <gmzhang76 at gmail.com> wrote:
>
>> Hi, folks,
>>    Now the neutron use a random function to generate  the mac address for
>> neutron port when it  was created . The  sequence is as follow:
>>    _generate_mac
>>            get_random_mac
>>                   random.randint
>>     As i understand  it, it is possible to get same mac when create two
>> different port. Because  the random is  pseudo  random, not a fixed
>>     based on some unique base.
>>
>>      Can anyone give me some explain?  Thanks
>>
>>
>>
>>
>>
>>
>> __________________________________________________________________________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160728/805f8c46/attachment.html>


More information about the OpenStack-dev mailing list