]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Block subnet create when a network hosts subnets allocated from different pools
authorRyan Tidwell <ryan.tidwell@hp.com>
Mon, 4 May 2015 22:56:41 +0000 (15:56 -0700)
committerRyan Tidwell <rktidwell85@gmail.com>
Mon, 1 Jun 2015 18:42:59 +0000 (18:42 +0000)
commit0c078f20a6a3d57d9b30b8dcab83741d9f42ccaf
tree14675f0de8b4d9a70858d06912cc37d8b1e75149
parent8a1b03ad17cb3b3a4167f456938761ccc7545c5c
Block subnet create when a network hosts subnets allocated from different pools

This change will ensure that all subnets with the same ip_version on a given
network have been allocated from the same subnet pool or no pool. This
provides cleaner subnet overlap detection.

Cherry-picked from 251f551a5fe8fe05cdc8c9b9cfad357245b39bb9

Change-Id: I3c7366c69b10c202c0511126fbee6b3aac36759e
Closes-Bug: #1451559
neutron/common/exceptions.py
neutron/db/db_base_plugin_v2.py
neutron/tests/api/test_subnetpools.py
neutron/tests/api/test_subnetpools_negative.py
neutron/tests/unit/db/test_db_base_plugin_v2.py