mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
lf_cisco_power.py : only instruct the controller to create the wlan once
This commit is contained in:
@@ -631,6 +631,7 @@ def main():
|
||||
myrd = m.group(1)
|
||||
|
||||
# Loop through all iterations and run txpower tests.
|
||||
wlan_created = False
|
||||
for ch in channels:
|
||||
pathloss = args.pathloss
|
||||
antenna_gain = args.antenna_gain
|
||||
@@ -696,7 +697,6 @@ def main():
|
||||
# 9800 series need to "Configure radio for manual channel assignment"
|
||||
logg.info("9800 Configure radio for manual channel assignment")
|
||||
|
||||
|
||||
try:
|
||||
logg.info("9800 cisco_wifi_ctl.py: disable_wlan")
|
||||
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
|
||||
@@ -780,8 +780,13 @@ def main():
|
||||
logg.info("Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
||||
exit_test(workbook)
|
||||
|
||||
if args.series == "9800":
|
||||
|
||||
# only create the wlan the first time
|
||||
if args.series == "9800":
|
||||
if wlan_created:
|
||||
pass
|
||||
else:
|
||||
wlan_created = True
|
||||
try:
|
||||
logg.info("9800 cisco_wifi_ctl.py: create_wlan wlan {} wlanID {} port {}".format(args.wlan, args.wlanID, args.port))
|
||||
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
|
||||
|
||||
Reference in New Issue
Block a user