vmware-nsx/quantum
Salvatore Orlando f9dbd2293d L3 port delete prevention: do not raise if no IP on port
Bug #1104337

This patch alters the prevent_l3_port_deletion logic.
PortInUse is raised only if the port has a device owner in
(router_interface, router_gateway, floatingip) and an IP
address.
If no IP address is found on the port the port itself can
be considered stale and therefore deleted as any association
with l3 entities would be void.

Change-Id: I9d711b2a9d2cbcc8be481f1751f51fe5b9f01327
2013-03-04 23:02:07 +01:00
..
agent Allow DHCP and L3 agents to choose if they should report state 2013-03-04 17:09:28 +08:00
api Move network schedule to first port creation. 2013-03-02 11:12:46 +08:00
common NEC plugin support for dhcp network and router scheduling 2013-03-02 19:39:28 +09:00
db L3 port delete prevention: do not raise if no IP on port 2013-03-04 23:02:07 +01:00
debug Use oslo-config-2013.1b3 2013-02-17 17:33:05 +00:00
extensions Merge "Remove compat cfg wrapper" 2013-02-28 18:45:05 +00:00
locale Imported Translations from Transifex 2013-03-04 00:06:18 +00:00
openstack Remove compat cfg wrapper 2013-02-27 22:15:54 +09:00
plugins Include health monitors expected codes upper bound into HAProxy config 2013-03-04 18:17:17 +04:00
rootwrap Remove unused imports in rootwrap package 2013-01-02 22:38:46 +02:00
scheduler Move network schedule to first port creation. 2013-03-02 11:12:46 +08:00
server Use oslo-config-2013.1b3 2013-02-17 17:33:05 +00:00
tests L3 port delete prevention: do not raise if no IP on port 2013-03-04 23:02:07 +01:00
__init__.py Update codebase for HACKING compliance. 2012-05-01 11:46:24 -07:00
auth.py Use oslo-config-2013.1b3 2013-02-17 17:33:05 +00:00
context.py Fix i18n messages 2013-01-22 11:42:15 +08:00
manager.py Use oslo-config-2013.1b3 2013-02-17 17:33:05 +00:00
policy.py Add scheduling feature basing on agent management extension 2013-02-27 21:20:51 +08:00
quantum_plugin_base_v2.py Supporting pagination in api v2.0 2013-02-19 23:04:13 +08:00
quota.py Use oslo-config-2013.1b3 2013-02-17 17:33:05 +00:00
service.py Agent management extension 2013-02-18 11:43:45 +08:00
version.py Updated to latest oslo-version code. 2013-02-04 11:21:16 +11:00
wsgi.py Add pagination support for xml 2013-02-21 15:21:34 +08:00