Merge "[OVN] Remove OVN metadata ports from network port list"
This commit is contained in:
commit
211bd0a807
|
@ -329,13 +329,16 @@ class TestNetworkBasicOps(manager.NetworkScenarioTest):
|
||||||
floating_ip, server = self.floating_ip_tuple
|
floating_ip, server = self.floating_ip_tuple
|
||||||
# get internal ports' ips:
|
# get internal ports' ips:
|
||||||
# get all network and compute ports in the new network
|
# get all network and compute ports in the new network
|
||||||
|
# NOTE(ralonsoh): device_owner="network:distributed" ports are OVN
|
||||||
|
# metadata ports and should be filtered out.
|
||||||
internal_ips = (
|
internal_ips = (
|
||||||
p['fixed_ips'][0]['ip_address'] for p in
|
p['fixed_ips'][0]['ip_address'] for p in
|
||||||
self.os_admin.ports_client.list_ports(
|
self.os_admin.ports_client.list_ports(
|
||||||
project_id=server['tenant_id'],
|
project_id=server['tenant_id'],
|
||||||
network_id=network['id'])['ports']
|
network_id=network['id'])['ports']
|
||||||
if p['device_owner'].startswith('network') or
|
if ((p['device_owner'].startswith('network') and
|
||||||
p['device_owner'].startswith('compute')
|
not p['device_owner'] == 'network:distributed') or
|
||||||
|
p['device_owner'].startswith('compute'))
|
||||||
)
|
)
|
||||||
|
|
||||||
self._check_server_connectivity(floating_ip,
|
self._check_server_connectivity(floating_ip,
|
||||||
|
|
Loading…
Reference in New Issue