]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add callback prior to deleting a subnet
authorJohn Schwarz <jschwarz@redhat.com>
Thu, 16 Apr 2015 09:01:26 +0000 (12:01 +0300)
committerJohn Schwarz <jschwarz@redhat.com>
Mon, 25 May 2015 13:59:32 +0000 (16:59 +0300)
commit5f28762ae2a96b8062628d0cac81f5da94c6ed34
tree1f21a4b8151689feaf43a1ecf62cbf626d30af34
parent2921d3c686b5f5cd68d51f906766983f975b1cf2
Add callback prior to deleting a subnet

When using LBaaS and trying to delete a subnet, neutron has no way of
knowing if the subnet is associated to some pool. As a result, the
subnet is deleted but the pool remains associated to the (now
nonexistent) subnet_id.  This patch lays the ground-work for adding a
check in LBaaS' side to prevent such cases.

Related-Bug: #1413817
Change-Id: I3d5e231b67c72ffd919c92d65b57da56c63e053c
neutron/callbacks/resources.py
neutron/common/exceptions.py
neutron/db/db_base_plugin_v2.py
neutron/plugins/ml2/plugin.py
neutron/plugins/opencontrail/contrail_plugin.py
neutron/tests/unit/db/test_db_base_plugin_v2.py