]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove router binding with router-interface-delete
authorlzklibj <lzklibj@cn.ibm.com>
Wed, 11 Mar 2015 13:59:43 +0000 (06:59 -0700)
committerlzklibj <lzklibj@cn.ibm.com>
Thu, 12 Mar 2015 15:38:58 +0000 (08:38 -0700)
commit300025b14cd6bfe5af096d40aaed90abf2716002
tree9dd1b522e1b2476ace18f69ae598402a5d26950b
parente6265f010869c961156de531f85eb89d9cefdf64
Remove router binding with router-interface-delete

When "neutron router-interface-delete ROUTER subnet"
command is executed to delete a router interface, it
should check for dvr ports changing on nodes which
have their l3-agent binded to the router. And if there
is any node has no port related to the router, the
binding to the L3-agent should be removed from the
"RouterL3AgentBindings" table.

This patch fixes the problem mentioned above.

Closes-Bug: #1413630

Change-Id: I9e2b115079fa2c66c98b9c45386d139fdebf63e7
neutron/db/l3_dvr_db.py
neutron/tests/unit/db/test_l3_dvr_db.py