]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix subnet updating failure on valid allocation pools
authorTomoaki Sato <tomoaki.sato@gmail.com>
Mon, 29 Jun 2015 01:02:20 +0000 (10:02 +0900)
committerTomoaki Sato <tomoaki.sato@gmail.com>
Mon, 29 Jun 2015 04:01:57 +0000 (13:01 +0900)
commit6d35f5fa91faf24694cf22bf9290f4743175b051
tree602d07fa0e796317d974438dfa5ed92b539fbac5
parentc24c3f4c9031aec7c7ad07b5937a9ce74a6e9fe1
Fix subnet updating failure on valid allocation pools

Currently subnet updating with both allocation-pool and
gateway_ip options is failing because of wrong parameter check.
The check always checks gateway_ip against allocation pools in
db, even when the allocation_pool parameter is given.The fix
checks if given parameter of gateway_ip option doesn't conflict
with given parameters of allocation-pool.

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