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.
Reviewed: https:/ /review. openstack. org/23516 github. com/openstack/ quantum/ commit/ f94b1491b8cb470 1cd5064610d546d b00d675c62
Committed: http://
Submitter: Jenkins
Branch: stable/folsom
commit f94b1491b8cb470 1cd5064610d546d b00d675c62
Author: Salvatore Orlando <email address hidden>
Date: Mon Mar 4 18:19:47 2013 +0100
L3 port delete prevention: do not raise if no IP on port
Bug #1104337
This patch alters the prevent_ l3_port_ deletion logic. interface, router_gateway, floatingip) and an IP
PortInUse is raised only if the port has a device owner in
(router_
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: I9d711b2a9d2cbc c8be481f1751f51 fe5b9f01327