Fix to delete router interfaces with DVR enabled
Now also interfaces with owner "network:router_interface_distributed" are deleted. Before this fix, interface and router deletion failed if DVR is enabled. Change-Id: I33c5304845d4d7c2eee729aa334ec745dcac970e Closes-Bug: #1552336
This commit is contained in:
parent
aa909316b7
commit
d18f6617b4
|
@ -209,7 +209,7 @@ class NeutronInterfaces(NeutronResources):
|
|||
all_ports = [
|
||||
port for port in self.client.list_ports(
|
||||
tenant_id=self.project_id)['ports']
|
||||
if port["device_owner"] == "network:router_interface"
|
||||
if port["device_owner"] in ("network:router_interface", "network:router_interface_distributed")
|
||||
]
|
||||
return filter(self._owned_resource, all_ports)
|
||||
|
||||
|
|
Loading…
Reference in New Issue