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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160727/fd7c18eb/attachment.html>