<div dir="ltr">If the mac is duplicated on a network it will be violate a uniqueness constraint in the DB which will trigger a retry.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 27, 2016 at 9:48 PM, 张广明 <span dir="ltr"><<a href="mailto:gmzhang76@gmail.com" target="_blank">gmzhang76@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, folks,<div>   Now the neutron use a random function to generate  the mac address for neutron port when it  was created . The  sequence is as follow:</div><div>   _generate_mac</div><div>           get_random_mac</div><div>                  random.randint</div><div>    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 </div><div>    based on some unique base. </div><div><br></div><div>     Can anyone give me some explain?  Thanks</div><div><br></div><div><br></div><div><br></div><div>                     </div><div>                             </div></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>