mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 11:48:03 +00:00
need ot specify wlan and wlanID fir 9800
This commit is contained in:
@@ -796,8 +796,8 @@ def main():
|
|||||||
if i == 1:
|
if i == 1:
|
||||||
print("show wlan summary timed out")
|
print("show wlan summary timed out")
|
||||||
|
|
||||||
if (args.action == "wlan" and (args.wlanID is None)):
|
if (args.action == "wlan" and ((args.wlanID is None) or (args.wlan is None))):
|
||||||
raise Exception("wlan ID is required")
|
raise Exception("wlan and wlanID is required an")
|
||||||
if (args.action == "wlan"):
|
if (args.action == "wlan"):
|
||||||
if args.series == "9800":
|
if args.series == "9800":
|
||||||
egg.sendline("config t")
|
egg.sendline("config t")
|
||||||
|
|||||||
@@ -149,6 +149,8 @@ def main():
|
|||||||
parser.add_argument("-n", "--nss", type=str, help="List of spatial streams to test. NA means no change")
|
parser.add_argument("-n", "--nss", type=str, help="List of spatial streams to test. NA means no change")
|
||||||
parser.add_argument("-T", "--txpower", type=str, help="List of txpowers to test. NA means no change")
|
parser.add_argument("-T", "--txpower", type=str, help="List of txpowers to test. NA means no change")
|
||||||
|
|
||||||
|
parser.add_argument("--wlan", type=str, help="--wlan 9800, wlan identifier defaults to wlan-open",default="wlan-open")
|
||||||
|
parser.add_argument("--wlanID", type=str, help="--series 9800 , defaults to 1",default="1")
|
||||||
parser.add_argument("--series", type=str, help="--series 9800 , defaults to 3504",default="3504")
|
parser.add_argument("--series", type=str, help="--series 9800 , defaults to 3504",default="3504")
|
||||||
parser.add_argument("--upstream_port", type=str, help="LANforge upsteram-port to use (eth1, etc)")
|
parser.add_argument("--upstream_port", type=str, help="LANforge upsteram-port to use (eth1, etc)")
|
||||||
parser.add_argument("--station", type=str, help="LANforge station to use (sta0000, etc)")
|
parser.add_argument("--station", type=str, help="LANforge station to use (sta0000, etc)")
|
||||||
@@ -487,7 +489,7 @@ def main():
|
|||||||
# TODO do not know when to configure open wlan
|
# TODO do not know when to configure open wlan
|
||||||
if args.series == "9800":
|
if args.series == "9800":
|
||||||
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
|
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
|
||||||
"--action", "open_wlan","--series",args.series])
|
"--action", "wlan","--series",args.series, "--wlan", args.wlan, "--wlanID", args.wlanID])
|
||||||
|
|
||||||
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
|
subprocess.run(["./cisco_wifi_ctl.py", "--scheme", scheme, "-d", args.dest, "-u", args.user, "-p", args.passwd, "-a", args.ap, "--band", band,
|
||||||
"--action", "wireless_tag_policy","--series",args.series])
|
"--action", "wireless_tag_policy","--series",args.series])
|
||||||
|
|||||||
Reference in New Issue
Block a user