mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-15 17:45:07 +00:00
cc_module_9800_3504.py: ap_band_dual_band_slot_Xg -> ap_dual_band_slotXg
wifi_ctl_9800_3504.py : dtim command change for 3504 (was mal formed )
This commit is contained in:
committed by
shivam
parent
eaa262021f
commit
debbf5f05f
@@ -66,8 +66,8 @@ class create_controller_series_object:
|
||||
ap_band_slot_24g=None,
|
||||
ap_band_slot_5g=None,
|
||||
ap_band_slot_6g=None,
|
||||
ap_band_slot_dual_band_5g=None,
|
||||
ap_band_slot_dual_band_6g=None,
|
||||
ap_dual_band_slot_5g=None,
|
||||
ap_dual_band_slot_6g=None,
|
||||
port=None,
|
||||
timeout=None,
|
||||
pwd=None
|
||||
@@ -123,17 +123,17 @@ class create_controller_series_object:
|
||||
else:
|
||||
self.ap_band_slot_6g = ap_band_slot_6g
|
||||
|
||||
if ap_band_slot_dual_band_5g is None:
|
||||
logger.warning("ap_band_slot_dual_band_5g not configured using value of '2'")
|
||||
self.ap_band_slot_dual_band_5g = '2'
|
||||
if ap_dual_band_slot_5g is None:
|
||||
logger.warning("ap_dual_band_slot_5g not configured using value of '2'")
|
||||
self.ap_dual_band_slot_5g = '2'
|
||||
else:
|
||||
self.ap_band_slot_dual_band_5g = ap_band_slot_dual_band_5g
|
||||
self.ap_dual_band_slot_5g = ap_dual_band_slot_5g
|
||||
|
||||
if ap_band_slot_dual_band_6g is None:
|
||||
logger.warning("ap_band_slot_dual_band_6g not configured using value of '2'")
|
||||
self.ap_band_slot_dual_band_6g = '2'
|
||||
if ap_dual_band_slot_6g is None:
|
||||
logger.warning("ap_dual_band_slot_6g not configured using value of '2'")
|
||||
self.ap_dual_band_slot_6g = '2'
|
||||
else:
|
||||
self.ap_band_slot_dual_band_6g = ap_band_slot_dual_band_6g
|
||||
self.ap_dual_band_slot_6g = ap_dual_band_slot_6g
|
||||
|
||||
if band is None:
|
||||
raise ValueError('Controller band must be set')
|
||||
@@ -1043,8 +1043,8 @@ INCLUDE_IN_README
|
||||
parser.add_argument("--ap_band_slot_24g", type=str, help="ap_band_slot_24g", default='0')
|
||||
parser.add_argument("--ap_band_slot_5g", type=str, help="ap_band_slot_5g", default='1')
|
||||
parser.add_argument("--ap_band_slot_6g", type=str, help="ap_band_slot_6g", default='2')
|
||||
parser.add_argument("--ap_band_slot_dual_band_5g", type=str, help="ap_band_slot_dual_band_5g", default='2')
|
||||
parser.add_argument("--ap_band_slot_dual_band_6g", type=str, help="ap_band_slot_dual_band_6g", default='2')
|
||||
parser.add_argument("--ap_dual_band_slot_5g", type=str, help="ap_dual_band_slot_5g", default='2')
|
||||
parser.add_argument("--ap_dual_band_slot_6g", type=str, help="ap_dual_band_slot_6g", default='2')
|
||||
parser.add_argument("--prompt", type=str, help="controller prompt", required=True)
|
||||
parser.add_argument("--band", type=str, help="band to test 24g, 5g, 6g, dual_band_5g, dual_band_6g", required=True)
|
||||
parser.add_argument("--series", type=str, help="controller series", choices=["9800", "3504"], required=True)
|
||||
|
||||
@@ -1446,7 +1446,7 @@ def main():
|
||||
if i == 0:
|
||||
logg.info("did not get the (config)# prompt")
|
||||
else:
|
||||
command = "dtim {value}".format(args.value)
|
||||
command = "dtim {value}".format(value=args.value)
|
||||
|
||||
if (args.action == "create_wlan_wpa2" and ((args.wlanID is None) or (args.wlan is None) or (args.wlanSSID is None) or (args.security_key is None))):
|
||||
raise Exception("create_wlan_wpa2 wlanID, wlan, wlanSSID are required an")
|
||||
|
||||
Reference in New Issue
Block a user