remove neutron.port not related to instances
Change-Id: If0d41e8426b4f357500d3652d4c1153697f70850
This commit is contained in:
parent
0745e649a6
commit
e5af719368
@ -39,7 +39,9 @@ class PortDriver(NeutronBase):
|
||||
return ['manager', '_info']
|
||||
|
||||
def get_all(self, datasource_action):
|
||||
ports = self.client.list_ports()['ports']
|
||||
ports = [p for p in ports if p.get('device_owner') == 'compute:nova']
|
||||
return self.make_pickleable(
|
||||
self.client.list_ports()['ports'],
|
||||
ports,
|
||||
NEUTRON_PORT_DATASOURCE,
|
||||
datasource_action)
|
||||
|
@ -56,8 +56,7 @@ class BaseVitrageTempest(base.BaseTestCase):
|
||||
|
||||
cls.num_default_networks = \
|
||||
len(TempestClients.neutron().list_networks()['networks'])
|
||||
cls.num_default_ports = \
|
||||
len(TempestClients.neutron().list_ports()['ports'])
|
||||
cls.num_default_ports = 0
|
||||
cls.num_default_entities = 3
|
||||
cls.num_default_edges = 2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user