cisco_wifi_ctl.py : LCS-34 Tx-power:

WLAN update controller configuration for open security
This commit is contained in:
Chuck SmileyRekiere
2021-01-19 08:40:57 -07:00
parent 2becc53020
commit f76e16191c

View File

@@ -1108,13 +1108,16 @@ def main():
else: else:
command = "show ap channel %s"%(args.ap) command = "show ap channel %s"%(args.ap)
if (args.action == "no_wlan_wireless_tag_policy" and (args.wlan is None)):
raise Exception("wlan is required")
if (args.action == "no_wlan_wireless_tag_policy"): if (args.action == "no_wlan_wireless_tag_policy"):
logg.info("send wireless tag policy no wlan") logg.info("send wireless tag policy no wlan")
logg.info("send wireless tag policy no wlan , for wlan {}".format(args.wlan))
egg.sendline("config t") egg.sendline("config t")
sleep(0.1) sleep(0.1)
i = egg.expect_exact(["(config)#",pexpect.TIMEOUT],timeout=2) i = egg.expect_exact(["(config)#",pexpect.TIMEOUT],timeout=2)
if i == 0: if i == 0:
for command in ["wireless tag policy default-policy-tag","no wlan open-wlan policy default-policy-profile"]: for command in ["wireless tag policy default-policy-tag","no wlan {} policy default-policy-profile".format(args.wlan)]:
egg.sendline(command) egg.sendline(command)
sleep(1) sleep(1)
j = egg.expect_exact([CCP_POLICY_TAG,pexpect.TIMEOUT],timeout=2) j = egg.expect_exact([CCP_POLICY_TAG,pexpect.TIMEOUT],timeout=2)