neutron/neutron/tests/unit/db
Kevin Benton 3b41808b86 Only prevent l3 port deletion if router exists
This patch modifies the prevent_l3_port_deletion method to
actually look up the router_id in the device_owner field to
confirm that the router exists before claiming the port is
in use. This will allow users to delete ports that may have
been orphaned due to race conditions in the cleanup of router
interfaces.

Partial-Bug: #1540271
Change-Id: Ieffe632f3f3098baf202d3795ab5182982e234bd
2016-02-01 15:07:14 -08:00
..
metering COMMON_PREFIXES cleanup - patch 1/5 2015-07-02 17:05:27 -07:00
quota Scope get_tenant_quotas by tenant_id 2016-01-13 14:56:18 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_agents_db.py Add periodic agents health check. 2015-10-01 09:21:54 +00:00
test_agentschedulers_db.py Remove duplicate for check_ports_exist_on_l3agent 2016-01-11 18:36:38 +03:00
test_allowedaddresspairs_db.py Unify assertEqual for empty usages 2016-01-07 10:06:35 +00:00
test_api.py Retry port create/update on duplicate db records 2016-01-14 20:40:49 -08:00
test_common_db_mixin.py Make object creation methods in l3_hamode_db atomic 2016-01-18 13:36:39 +03:00
test_db_base_plugin_common.py Replace to_dict() calls with a function decorator 2015-08-03 11:42:25 +03:00
test_db_base_plugin_v2.py Prevent PD subnets with incorrect IPv6 modes 2016-01-14 17:56:29 +00:00
test_dvr_mac_db.py Optimize get_ports_on_host_by_subnet() dvr rpc handler 2016-01-18 14:04:52 +03:00
test_ipam_backend_mixin.py DB, IPAM & RPC changes for IPv6 Prefix Delegation 2015-08-05 12:22:22 +01:00
test_ipam_non_pluggable_backend.py Move tests for non pluggable ipam backend 2015-08-19 13:09:02 +03:00
test_ipam_pluggable_backend.py Add new config option for IPv6 Prefix Delegation 2015-11-06 16:35:02 +00:00
test_l3_db.py Only prevent l3 port deletion if router exists 2016-02-01 15:07:14 -08:00
test_l3_dvr_db.py Only prevent l3 port deletion if router exists 2016-02-01 15:07:14 -08:00
test_l3_hamode_db.py Make object creation methods in l3_hamode_db atomic 2016-01-18 13:36:39 +03:00
test_migration.py neutron-db-manage: expose alembic 'heads' command 2015-11-20 17:39:11 +01:00
test_securitygroups_db.py Fix callback registry notification for security group rule 2015-06-22 17:19:44 +03:00