]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix FIP agent gw port delete based on external net
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Thu, 8 Jan 2015 17:44:01 +0000 (09:44 -0800)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Tue, 17 Feb 2015 18:41:19 +0000 (18:41 +0000)
commit579da4988084bc412f5477492f1311c0022a0322
tree308fe65f96307efcb98eeac443c3296027fa9ecb
parent83db2f990e2864fa984598419e09ca11c4a34c8c
Fix FIP agent gw port delete based on external net

Today the FIP agent gateway port for DVR is deleted
based on the host. When there are multiple external
networks, then the port deletion for the second
external network may fail.

So the current fix checks for the valid host and
external network id and then deletes the FIP agent
gw port if it is the last one to be deleted.

Closes-Bug: #1421886

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