mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +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)
|
jsonReq(mgrURL,"cli-json/rm_cx", data)
|
||||||
|
|
||||||
print("Checking for LANforge Client")
|
print("Checking for LANforge Client")
|
||||||
response = getJsonInfo(mgrURL, 'port/1/1/wlan0')
|
response = getJsonInfo(mgrURL, 'port/1/1/wiphy0')
|
||||||
timeout = 0
|
timeout = 0
|
||||||
while response == None and timeout != 300:
|
while response == None and timeout != 300:
|
||||||
print("LANforge Client not found sleeping 5 seconds")
|
print("LANforge Client not found sleeping 5 seconds")
|
||||||
timeout += 5
|
timeout += 5
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
response = getJsonInfo(mgrURL, 'port/1/1/wlan0')
|
response = getJsonInfo(mgrURL, 'port/1/1/wiphy0')
|
||||||
#print(response)
|
#print(response)
|
||||||
if timeout == 300:
|
if timeout == 300:
|
||||||
print("Could not connect to LANforge Client")
|
print("Could not connect to LANforge Client")
|
||||||
|
|||||||
Reference in New Issue
Block a user