]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Raise error upon deleting subnet with router ports
authorAndrew Boik <dboik@cisco.com>
Mon, 23 Feb 2015 20:06:09 +0000 (12:06 -0800)
committerAndrew Boik <dboik@cisco.com>
Wed, 4 Mar 2015 20:46:00 +0000 (15:46 -0500)
commite80ab8113edf54e5d3623f55bdbd11ab19cac1eb
tree3e2b864e5147891374b41fcd57112e9586854516
parentc51ea87b2830a426cfb6c8f2cb0ac7d4f4e764f9
Raise error upon deleting subnet with router ports

Fixes an issue where SLAAC and DHCPV6-stateless subnets can be
deleted even if they are attached to an internal router port.
This patch raises an exception whenever a subnet is deleted
that has existing IP Allocations on an internal router port.

Change-Id: I0a16156274b5736236654fca6700ef2d67f4519b
Closes-Bug: #1424760
neutron/db/db_base_plugin_v2.py
neutron/plugins/ml2/plugin.py
neutron/tests/unit/test_db_plugin.py
neutron/tests/unit/test_l3_plugin.py