]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix DVR interface delete by port when gateway is set
authorAssaf Muller <amuller@redhat.com>
Mon, 13 Apr 2015 17:26:06 +0000 (13:26 -0400)
committerOleg Bondarev <obondarev@mirantis.com>
Wed, 12 Aug 2015 12:09:02 +0000 (15:09 +0300)
commit0b5b6c7e746839d3f9bece6e782092bca3c9725e
tree66b42aae8f2b6124631d8c59b17c0a980943d288
parent12a4ae1221a27285b3aa79a748caff3b55ff03a7
Fix DVR interface delete by port when gateway is set

When removing a DVR interface by port, the subnet_id
passed to delete_csnat_router_interface_ports is None,
and so it deletes all the DVR SNAT ports for the
router.

This patch fixes this issue by passing in the right
subnet_id to the delete_csnat_router_interface_ports.

Change-Id: I16735195c6575454876acd0e99ef45f382963566
Closes-Bug: #1443524
Co-Authored-By: Swaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Co-Authored-By: Oleg Bondarev <obondarev@mirantis.com>
neutron/db/l3_dvr_db.py
neutron/tests/unit/db/test_l3_dvr_db.py