]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Process port IP requests before subnet requests
authorKevin Benton <blak111@gmail.com>
Thu, 28 May 2015 00:38:32 +0000 (17:38 -0700)
committerKevin Benton <blak111@gmail.com>
Thu, 28 May 2015 00:42:19 +0000 (17:42 -0700)
commit817b45b6406d9730859535ac54d73ec5c85451d0
tree4161c0479213786a5969e6c37d0e2b375756747f
parent420ca31da23cfe9a49b128cbce2d0b7cd9388974
Process port IP requests before subnet requests

When a port requests multiple fixed IPs, process the requests
for specific IP addresses before the ones asking for a subnet.
This prevents an error where the IP that was requested happens
to be the next up for allocation so the subnet request takes it
and causes a DBDuplicateEntry.

Closes-Bug: #1459467
Change-Id: I645565c7fe0c47c58d686b25020bb49a0b9089f5
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/db/test_db_base_plugin_v2.py