mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-19 19:44:50 +00:00
9800 command fix
This commit is contained in:
@@ -700,16 +700,13 @@ def main():
|
|||||||
j = egg.expect_exact(["(config-wlan)#",pexpect.TIMEOUT],timeout=2)
|
j = egg.expect_exact(["(config-wlan)#",pexpect.TIMEOUT],timeout=2)
|
||||||
if j == 0:
|
if j == 0:
|
||||||
for command in ["shutdown","no security wpa","no security wpa wpa2","no security wpa wpa2 ciphers aes",
|
for command in ["shutdown","no security wpa","no security wpa wpa2","no security wpa wpa2 ciphers aes",
|
||||||
"no security wpa akm dot1x","no shutdown","exit"]:
|
"no security wpa akm dot1x","no shutdown","end"]:
|
||||||
egg.sendline(command)
|
egg.sendline(command)
|
||||||
sleep(0.1)
|
sleep(0.1)
|
||||||
k = egg.expect_exact(["(config-wlan)#",pexpect.TIMEOUT],timeout=2)
|
k = egg.expect_exact(["(config-wlan)#",pexpect.TIMEOUT],timeout=2)
|
||||||
if k == 0:
|
if k == 0:
|
||||||
print("command sent: {}".format(command))
|
print("command sent: {}".format(command))
|
||||||
if k == 1:
|
if k == 1:
|
||||||
if command == "exit":
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
print("command time out: {}".format(command))
|
print("command time out: {}".format(command))
|
||||||
if j == 1:
|
if j == 1:
|
||||||
print("did not get the (config-wlan)# prompt")
|
print("did not get the (config-wlan)# prompt")
|
||||||
|
|||||||
Reference in New Issue
Block a user