mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 20:27:54 +00:00
cisco_wifi_ctl.py: auto_rf to print out till Radar Information, change lf_cisco_dfs.py sweep_time to 0 for continuout
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -959,6 +959,21 @@ def main():
|
||||
|
||||
if (args.action == "auto_rf"):
|
||||
command = "show ap auto-rf 802.11a %s"%(args.ap)
|
||||
egg.sendline(command)
|
||||
command_done = False
|
||||
loop_count = 0
|
||||
while command_done == False and loop_count <= 10 :
|
||||
i = egg.expect_exact(["--More--",CCP,pexpect.TIMEOUT],timeout=2)
|
||||
if i == 0:
|
||||
print(egg.before.decode('utf-8', 'ignore'))
|
||||
egg.sendline(NL)
|
||||
if i == 1:
|
||||
print(egg.before.decode('utf-8', 'ignore'))
|
||||
command_done = True
|
||||
if i == 2:
|
||||
print(egg.before.decode('utf-8', 'ignore'))
|
||||
command_done = True
|
||||
command = None # so additional command will not be sent
|
||||
|
||||
if ((args.action == "ap_country") and ((args.value is None) or (args.ap is None))):
|
||||
raise Exception("ap_country requires country and AP name")
|
||||
|
||||
Reference in New Issue
Block a user