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:
jurajama 2016-11-07 14:47:13 +02:00
parent aa909316b7
commit d18f6617b4
1 changed files with 1 additions and 1 deletions

View File

@ -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)