added fix to show members immediately on create
Change-Id: I17cb3e6c2eb2db1eed374c9e3e30edc9c905f611 Closes-Bug: 1463932 (cherry picked from commit76e7b1a15d
) (cherry picked from commitb0cabada94
)
This commit is contained in:
parent
49ea0abe08
commit
2b160b3e43
@ -24,6 +24,8 @@ from gbpui import column_filters as gfilters
|
||||
|
||||
import tables
|
||||
|
||||
import time
|
||||
|
||||
PTGsTable = tables.PTGsTable
|
||||
External_PTGsTable = tables.ExternalPTGsTable
|
||||
|
||||
@ -142,6 +144,11 @@ class InstancesTab(tabs.TableTab):
|
||||
self._has_more = False
|
||||
instances = [item for item in instances
|
||||
if not itables.is_deleting(item)]
|
||||
# port_list for a given instance is not available
|
||||
# when it query immediately after member create,
|
||||
# So adding half sec sleep before port list query
|
||||
if policy_target_ports:
|
||||
time.sleep(0.5)
|
||||
for item in instances:
|
||||
for port in api.neutron.port_list(self.request,
|
||||
device_id=item.id):
|
||||
|
Loading…
Reference in New Issue
Block a user