]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add call to pluggable IPAM from ml2 delete_subnet
authorPavel Bondar <pbondar@infoblox.com>
Wed, 28 Oct 2015 09:22:52 +0000 (12:22 +0300)
committerArmando Migliaccio <armamig@gmail.com>
Tue, 10 Nov 2015 20:05:21 +0000 (20:05 +0000)
commit99573f62d1fc79a4308784ab2c799d836b7a3d74
tree94df681da4c8673b1756d98d84c849be61d3d56e
parent5e34292faa0ab10d7a19470aa00ff10b13e1162b
Add call to pluggable IPAM from ml2 delete_subnet

ml2 plugin overrides delete_subnet and do not call super(),
so pluggable IPAM action defined in db_base_plugin_v2 are not called.
As a result subnets can not be deleted from IPAM driver if ml2 plugin
is used.

Added ipam.delete_subnet call into ml2 delete_subnet.
Patch includes UT to verify IPAM driver is called on subnet
allocation and deallocation.
Test class is inherited from TestMl2SubnetsV2, so all SubnetV2 tests are
additionally executed for ml2 plugin with reference IPAM driver.

Closes-Bug: #1510653

Change-Id: I2b7ddfe70a1275a141af38e18151e1fc000e2682
neutron/plugins/ml2/plugin.py
neutron/tests/unit/plugins/ml2/test_plugin.py