mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
lf_snp_test: fix whitespace problems
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -593,7 +593,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
@@ -627,7 +628,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
@@ -654,7 +656,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
@@ -683,7 +686,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
else:
|
else:
|
||||||
@@ -714,7 +718,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
else:
|
else:
|
||||||
@@ -744,7 +749,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
@@ -772,7 +778,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
else:
|
else:
|
||||||
@@ -797,7 +804,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
@@ -825,7 +833,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
else:
|
else:
|
||||||
@@ -850,7 +859,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
@@ -877,7 +887,8 @@ class CreateCtlr:
|
|||||||
|
|
||||||
except subprocess.CalledProcessError as process_error:
|
except subprocess.CalledProcessError as process_error:
|
||||||
logg.info(
|
logg.info(
|
||||||
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(process_error.returncode, process_error.output))
|
"Command Error, Controller unable to commicate to AP or unable to communicate to controller error code: {} output {}".format(
|
||||||
|
process_error.returncode, process_error.output))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
@@ -914,7 +925,8 @@ class CreateCtlr:
|
|||||||
if (str(controller_channel) in str(element_list[8])) and (
|
if (str(controller_channel) in str(element_list[8])) and (
|
||||||
str(self.chan_width) in str(element_list[5])):
|
str(self.chan_width) in str(element_list[5])):
|
||||||
logg.info(
|
logg.info(
|
||||||
"ap {} configuration successful: channel {} in expected {} chan_width {} in expected {}".format(element_list[0],
|
"ap {} configuration successful: channel {} in expected {} chan_width {} in expected {}".format(
|
||||||
|
element_list[0],
|
||||||
controller_channel,
|
controller_channel,
|
||||||
element_list[8],
|
element_list[8],
|
||||||
self.chan_width,
|
self.chan_width,
|
||||||
@@ -1866,7 +1878,8 @@ LANforge GUI what is displayed in the Column and how to access the value with cl
|
|||||||
parser.add_argument('-c', '--csv_output', help="Generate csv output", default=True)
|
parser.add_argument('-c', '--csv_output', help="Generate csv output", default=True)
|
||||||
|
|
||||||
parser.add_argument('-r', '--radio', action='append', nargs=1, help='--radio \
|
parser.add_argument('-r', '--radio', action='append', nargs=1, help='--radio \
|
||||||
\"radio==<number_of_wiphy stations=<=number of stations> ssid==<ssid> ssid_pw==<ssid password> security==<security> wifimode==<wifimode>\" ', required=False)
|
\"radio==<number_of_wiphy stations=<=number of stations> ssid==<ssid> ssid_pw==<ssid password> security==<security> wifimode==<wifimode>\" ',
|
||||||
|
required=False)
|
||||||
parser.add_argument('-ul_bps', '--side_a_tx_min_bps',
|
parser.add_argument('-ul_bps', '--side_a_tx_min_bps',
|
||||||
help='--side_a_tx_min_bps , upload (A side tx) min tx rate bps default 256000 500000000',
|
help='--side_a_tx_min_bps , upload (A side tx) min tx rate bps default 256000 500000000',
|
||||||
default="256000 1000000000")
|
default="256000 1000000000")
|
||||||
@@ -1880,7 +1893,8 @@ LANforge GUI what is displayed in the Column and how to access the value with cl
|
|||||||
parser.add_argument('-noc', '--no_controller', help='-noc / --no_controller no configuration of the controller',
|
parser.add_argument('-noc', '--no_controller', help='-noc / --no_controller no configuration of the controller',
|
||||||
action='store_true')
|
action='store_true')
|
||||||
parser.add_argument('-nos', '--no_stations', help='-nos / --no_stations , no stations', action='store_true')
|
parser.add_argument('-nos', '--no_stations', help='-nos / --no_stations , no stations', action='store_true')
|
||||||
parser.add_argument('-wto', '--wait_timeout', type=int, help='-wto / --wait_timeout , time to wait for stations to get IP ',
|
parser.add_argument('-wto', '--wait_timeout', type=int,
|
||||||
|
help='-wto / --wait_timeout , time to wait for stations to get IP ',
|
||||||
default="360")
|
default="360")
|
||||||
parser.add_argument('-ptc', '--print_test_config',
|
parser.add_argument('-ptc', '--print_test_config',
|
||||||
help='-ptc / --print_test_config , print out the test configuration and exit',
|
help='-ptc / --print_test_config , print out the test configuration and exit',
|
||||||
@@ -2531,8 +2545,8 @@ LANforge GUI what is displayed in the Column and how to access the value with cl
|
|||||||
logg.info(
|
logg.info(
|
||||||
"###################################################################")
|
"###################################################################")
|
||||||
logg.info(
|
logg.info(
|
||||||
"# TEST RUNNING direction:{} ul: {} , TEST RUNNING dl: {}"
|
"# TEST RUNNING direction:{} ul: {} , TEST RUNNING dl: {}".format(
|
||||||
.format(controller_direction,
|
controller_direction,
|
||||||
side_a_tx_min_bps_ul,
|
side_a_tx_min_bps_ul,
|
||||||
side_b_tx_min_bps_dl))
|
side_b_tx_min_bps_dl))
|
||||||
logg.info(
|
logg.info(
|
||||||
@@ -2564,8 +2578,7 @@ LANforge GUI what is displayed in the Column and how to access the value with cl
|
|||||||
controller_ap_mode != __ap_mode_set or
|
controller_ap_mode != __ap_mode_set or
|
||||||
controller_tx_power != __tx_power_set or
|
controller_tx_power != __tx_power_set or
|
||||||
controller_chan_5ghz != __chan_5ghz_set or
|
controller_chan_5ghz != __chan_5ghz_set or
|
||||||
controller_chan_24ghz != __chan_24ghz_set
|
controller_chan_24ghz != __chan_24ghz_set):
|
||||||
):
|
|
||||||
logg.info(
|
logg.info(
|
||||||
"###############################################")
|
"###############################################")
|
||||||
logg.info(
|
logg.info(
|
||||||
@@ -2594,8 +2607,7 @@ LANforge GUI what is displayed in the Column and how to access the value with cl
|
|||||||
controller_ap_mode != __ap_mode_set or
|
controller_ap_mode != __ap_mode_set or
|
||||||
controller_tx_power != __tx_power_set or
|
controller_tx_power != __tx_power_set or
|
||||||
controller_chan_5ghz != __chan_5ghz_set or
|
controller_chan_5ghz != __chan_5ghz_set or
|
||||||
controller_chan_24ghz != __chan_24ghz_set
|
controller_chan_24ghz != __chan_24ghz_set):
|
||||||
):
|
|
||||||
logg.info(
|
logg.info(
|
||||||
"###############################################")
|
"###############################################")
|
||||||
logg.info(
|
logg.info(
|
||||||
@@ -2670,16 +2682,16 @@ LANforge GUI what is displayed in the Column and how to access the value with cl
|
|||||||
logg.info(
|
logg.info(
|
||||||
"###############################################")
|
"###############################################")
|
||||||
logg.info(
|
logg.info(
|
||||||
"controller_ap: {} controller_band: {} controller_chan_width: {} controller_ap_mode: {} controller_tx_power: {} controller_chan_5ghz: {} controller_chan_24ghz: {}"
|
"controller_ap: {} controller_band: {} controller_chan_width: {} controller_ap_mode: {} controller_tx_power: {} controller_chan_5ghz: {} controller_chan_24ghz: {}".format(
|
||||||
.format(controller_ap, controller_band,
|
controller_ap, controller_band,
|
||||||
controller_chan_width,
|
controller_chan_width,
|
||||||
controller_ap_mode,
|
controller_ap_mode,
|
||||||
controller_tx_power,
|
controller_tx_power,
|
||||||
controller_chan_5ghz,
|
controller_chan_5ghz,
|
||||||
controller_chan_24ghz))
|
controller_chan_24ghz))
|
||||||
logg.info(
|
logg.info(
|
||||||
"__ap_set: {} __band_set: {} __chan_width_set: {} __ap_mode_set: {} __tx_power_set: {} __chan_5ghz_set: {} __chan_24ghz_set: {}"
|
"__ap_set: {} __band_set: {} __chan_width_set: {} __ap_mode_set: {} __tx_power_set: {} __chan_5ghz_set: {} __chan_24ghz_set: {}".format(
|
||||||
.format(__ap_set, __band_set,
|
__ap_set, __band_set,
|
||||||
__chan_width_set, __ap_mode_set,
|
__chan_width_set, __ap_mode_set,
|
||||||
__tx_power_set, __chan_5ghz_set,
|
__tx_power_set, __chan_5ghz_set,
|
||||||
__chan_24ghz_set))
|
__chan_24ghz_set))
|
||||||
@@ -2757,9 +2769,7 @@ LANforge GUI what is displayed in the Column and how to access the value with cl
|
|||||||
station_lists = []
|
station_lists = []
|
||||||
for (
|
for (
|
||||||
radio_name_,
|
radio_name_,
|
||||||
number_of_stations_per_radio_) in zip(
|
number_of_stations_per_radio_) in zip(radio_name_list, number_of_stations_per_radio_list):
|
||||||
radio_name_list,
|
|
||||||
number_of_stations_per_radio_list):
|
|
||||||
number_of_stations = int(
|
number_of_stations = int(
|
||||||
number_of_stations_per_radio_)
|
number_of_stations_per_radio_)
|
||||||
if number_of_stations > MAX_NUMBER_OF_STATIONS:
|
if number_of_stations > MAX_NUMBER_OF_STATIONS:
|
||||||
|
|||||||
Reference in New Issue
Block a user