]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensure unique mac address allocation.
authorGary Kotton <gkotton@redhat.com>
Tue, 19 Jun 2012 23:32:22 +0000 (16:32 -0700)
committerDan Wendlandt <dan@nicira.com>
Tue, 19 Jun 2012 23:34:01 +0000 (16:34 -0700)
commitb6cb4316da8559398653e24de550b321f12e3e86
tree72037c598f18f40fe04f25e3eb23b791a9ea94cf
parentcabd706b485fffb05de723a41b3f8bf081050b55
Ensure unique mac address allocation.
This is the first part of bug 1008029

If the port command does not contain a MAC address then Quantum will generate
a random MAC address. The mac address will be saved in the database to ensure
that it is not used by another port on the same network.

Added mock-based test for mac exhaustion.

Change-Id: I4d3fe12fd1e3c347b8e286d920a0609d0b3c4e8c
quantum/api/v2/base.py
quantum/common/exceptions.py
quantum/db/db_base_plugin_v2.py
quantum/tests/unit/test_db_plugin.py