]> 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 <kevinbenton@buttewifi.com>
Thu, 28 May 2015 23:16:24 +0000 (23:16 +0000)
commit717cf4599baeb42e89663b0167192d89b1df892c
tree54b2a556f89982e2d49bb0bee5a5016c84b05b88
parentae430581ea277dc262e226d74a21156314103ef0
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
(cherry picked from commit 817b45b6406d9730859535ac54d73ec5c85451d0)
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/db/test_db_base_plugin_v2.py