]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Validate updated allocation pool before using it
authorJohn Kasperski <jckasper@us.ibm.com>
Fri, 7 Aug 2015 14:15:33 +0000 (09:15 -0500)
committerJohn Kasperski <jckasper@us.ibm.com>
Fri, 7 Aug 2015 14:22:39 +0000 (09:22 -0500)
commite64f5bdd22f7907cc77b9f94f5f6b6676dc57a93
tree952632d8848cb8f554f84ffec7cc78bd3a71df0c
parente0999554a49408b0fc435308c1cf071cbd9ff310
Validate updated allocation pool before using it

The allocation pool specified during subnet-update is being
used in gateway validation checks before the allocation pool
is ever validated.  Errors indicating that the gateway IP is
invalid are returned when it is the allocation pool that is
actually in error.

Additional testing of the allocation pool is also being added
to the subnet-update unit tests.

Closes-Bug: #1479948
Change-Id: I854333d571bad2550ea5a0b93ff64ce44d0bd010
neutron/db/db_base_plugin_v2.py
neutron/db/ipam_backend_mixin.py
neutron/db/ipam_pluggable_backend.py
neutron/tests/unit/db/test_db_base_plugin_v2.py