Fixed timeout logic for waiting for onos device discovery in opticalUtils.py

Change-Id: I6e019cf8eafed296f4b4a345ac18c7ddc62acee0
This commit is contained in:
acsmars 2015-12-11 14:32:46 -08:00 committed by Gerrit Code Review
parent a9e4476e51
commit bbab1a1908

View File

@ -469,8 +469,7 @@ class LINCSwitch(OpticalSwitch):
devs = response.get('devices') devs = response.get('devices')
# Wait for all devices to be registered. There is a chance that this is only a subgraph. # Wait for all devices to be registered. There is a chance that this is only a subgraph.
if (len(devices) > len(devs)): if (len(devices) == len(devs)):
continue
# Wait for all devices to available # Wait for all devices to available
available = True available = True