mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
connectTest: check for radio, more reliable that station thats easy to erase
This commit is contained in:
@@ -66,13 +66,13 @@ def removeCX(mgrURL, cxNames):
|
||||
jsonReq(mgrURL,"cli-json/rm_cx", data)
|
||||
|
||||
print("Checking for LANforge Client")
|
||||
response = getJsonInfo(mgrURL, 'port/1/1/wlan0')
|
||||
response = getJsonInfo(mgrURL, 'port/1/1/wiphy0')
|
||||
timeout = 0
|
||||
while response == None and timeout != 300:
|
||||
print("LANforge Client not found sleeping 5 seconds")
|
||||
timeout += 5
|
||||
time.sleep(5)
|
||||
response = getJsonInfo(mgrURL, 'port/1/1/wlan0')
|
||||
response = getJsonInfo(mgrURL, 'port/1/1/wiphy0')
|
||||
#print(response)
|
||||
if timeout == 300:
|
||||
print("Could not connect to LANforge Client")
|
||||
|
||||
Reference in New Issue
Block a user