]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
make delete_router send delete_port to core_plugin
authormathieu-rohon <mathieu.rohon@gmail.com>
Thu, 15 Jan 2015 15:19:08 +0000 (16:19 +0100)
committermathieu-rohon <mathieu.rohon@gmail.com>
Thu, 15 Jan 2015 15:19:08 +0000 (16:19 +0100)
commit1e00041b0bcb83175760eb6347bb3eae55649328
tree577e50b746bb6f9c9b4e1ecc4f862cd5fa15eb66
parenteaaad83e92079b79e37da1850e0919277585db9e
make delete_router send delete_port to core_plugin

Have delete_router API call also delete the gateway port if needed.
Currently, the db_base_plugin_v2 method is called, bypassing the
core_plugin overload of this method. The consequence is that,
in ML2, mechanism drivers are not aware of the port deletion.

In this patch, tha gateway port is deleted through a common
method. This method checks if floating IP and VPN are attached
to the router, so those checks are removed from the delete_router
method.

Closes-Bug: #1361540

Change-Id: Iae98f3fe89126a76f16ed9c5230ce299a09ce8d8
neutron/db/l3_db.py
neutron/plugins/bigswitch/l3_router_plugin.py
neutron/plugins/vmware/plugins/base.py
neutron/tests/unit/vmware/apiclient/fake.py