remove neutron.port not related to instances

Change-Id: If0d41e8426b4f357500d3652d4c1153697f70850
This commit is contained in:
Idan Hefetz 2017-11-30 13:09:48 +00:00
parent 0745e649a6
commit e5af719368
2 changed files with 4 additions and 3 deletions

View File

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

View File

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