]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Prevent direct port-delete of FIP Agent GW and CSNAT
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Thu, 26 Feb 2015 21:29:26 +0000 (13:29 -0800)
committerSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Mon, 2 Mar 2015 18:52:50 +0000 (10:52 -0800)
commit17cae2cb7e6ece0d7219fdd92e2d0eb96992b852
tree983f5797bc03aa42eb7c5020b97306ea437c0082
parentfe2a6fe8bd110aaa5df3eb230b154298f9445627
Prevent direct port-delete of FIP Agent GW and CSNAT

FloatingIP Agent GW Port and Centralized SNAT port
that are currently used by DVR in FloatingIP and
SNAT Namespaces respectively should not be allowed
to delete directly using the Port-delete command by
an admin.

This patch fixes the above stated issue by adding the
respective device-owners to the router_device_owners
list in l3_dvr_db.py

Change-Id: Ibdddf2af348907d2ec7513693d546739e16437dc
Closes-Bug: #1425504
neutron/db/l3_dvr_db.py
neutron/tests/unit/db/test_l3_dvr_db.py