mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-04 20:57:53 +00:00
test_l3.py : autopep8 refresh
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
committed by
shivam
parent
32dad9be95
commit
fa09ecf78f
@@ -399,13 +399,13 @@ class L3VariableTime(Realm):
|
|||||||
total_dl_rate += int(endp["rx rate"])
|
total_dl_rate += int(endp["rx rate"])
|
||||||
total_dl_rate_ll += int(endp["rx rate ll"])
|
total_dl_rate_ll += int(endp["rx rate ll"])
|
||||||
total_dl_pkts_ll += int(endp["rx pkts ll"])
|
total_dl_pkts_ll += int(endp["rx pkts ll"])
|
||||||
dl_rx_drop_percent = round(endp["rx drop %"],2)
|
dl_rx_drop_percent = round(endp["rx drop %"], 2)
|
||||||
# -B upload side
|
# -B upload side
|
||||||
else:
|
else:
|
||||||
total_ul_rate += int(endp["rx rate"])
|
total_ul_rate += int(endp["rx rate"])
|
||||||
total_ul_rate_ll += int(endp["rx rate ll"])
|
total_ul_rate_ll += int(endp["rx rate ll"])
|
||||||
total_ul_pkts_ll += int(endp["rx pkts ll"])
|
total_ul_pkts_ll += int(endp["rx pkts ll"])
|
||||||
ul_rx_drop_percent = round(endp["rx drop %"],2)
|
ul_rx_drop_percent = round(endp["rx drop %"], 2)
|
||||||
|
|
||||||
return lat, jit, total_dl_rate, total_dl_rate_ll, total_dl_pkts_ll, dl_rx_drop_percent, total_ul_rate, total_ul_rate_ll, total_ul_pkts_ll, ul_rx_drop_percent
|
return lat, jit, total_dl_rate, total_dl_rate_ll, total_dl_pkts_ll, dl_rx_drop_percent, total_ul_rate, total_ul_rate_ll, total_ul_pkts_ll, ul_rx_drop_percent
|
||||||
|
|
||||||
@@ -643,7 +643,6 @@ class L3VariableTime(Realm):
|
|||||||
# sta_json = super().json_get(
|
# sta_json = super().json_get(
|
||||||
# "port/1/{resource}/list?field=alias".format(resource=self.resource))['interfaces']
|
# "port/1/{resource}/list?field=alias".format(resource=self.resource))['interfaces']
|
||||||
|
|
||||||
|
|
||||||
def start(self, print_pass=False):
|
def start(self, print_pass=False):
|
||||||
logger.info("Bringing up stations")
|
logger.info("Bringing up stations")
|
||||||
self.admin_up(self.side_b)
|
self.admin_up(self.side_b)
|
||||||
@@ -1908,7 +1907,7 @@ Setting wifi_settings per radio
|
|||||||
exit(1)
|
exit(1)
|
||||||
wifi_mode_list.append(radio_info_dict['wifi_mode'])
|
wifi_mode_list.append(radio_info_dict['wifi_mode'])
|
||||||
enable_flags_str = radio_info_dict['enable_flags'].replace(
|
enable_flags_str = radio_info_dict['enable_flags'].replace(
|
||||||
'(', '').replace(')', '').replace('|', ',').replace('&&',',')
|
'(', '').replace(')', '').replace('|', ',').replace('&&', ',')
|
||||||
enable_flags_list = list(enable_flags_str.split(","))
|
enable_flags_list = list(enable_flags_str.split(","))
|
||||||
wifi_enable_flags_list.append(enable_flags_list)
|
wifi_enable_flags_list.append(enable_flags_list)
|
||||||
else:
|
else:
|
||||||
@@ -2098,16 +2097,16 @@ Setting wifi_settings per radio
|
|||||||
report.build_table_title()
|
report.build_table_title()
|
||||||
|
|
||||||
wifi_mode_dict = {
|
wifi_mode_dict = {
|
||||||
0 : 'AUTO', # 802.11g
|
0: 'AUTO', # 802.11g
|
||||||
1 : '802.11a', # 802.11a
|
1: '802.11a', # 802.11a
|
||||||
2 : '802.11b', # 802.11b
|
2: '802.11b', # 802.11b
|
||||||
3 : '802.11g', # 802.11g
|
3: '802.11g', # 802.11g
|
||||||
4 : '802.11abg', # 802.11abg
|
4: '802.11abg', # 802.11abg
|
||||||
5 : '802.11abgn', # 802.11abgn
|
5: '802.11abgn', # 802.11abgn
|
||||||
6 : '802.11bgn', # 802.11bgn
|
6: '802.11bgn', # 802.11bgn
|
||||||
7 : '802.11bg', # 802.11bg
|
7: '802.11bg', # 802.11bg
|
||||||
8 : '802.11abgnAC', # 802.11abgn-AC
|
8: '802.11abgnAC', # 802.11abgn-AC
|
||||||
9 : '802.11anAC', # 802.11an-AC
|
9: '802.11anAC', # 802.11an-AC
|
||||||
10: '802.11an', # 802.11an
|
10: '802.11an', # 802.11an
|
||||||
11: '802.11bgnAC', # 802.11bgn-AC
|
11: '802.11bgnAC', # 802.11bgn-AC
|
||||||
12: '802.11abgnAX', # 802.11abgn-AX
|
12: '802.11abgnAX', # 802.11abgn-AX
|
||||||
@@ -2117,7 +2116,6 @@ Setting wifi_settings per radio
|
|||||||
15: '802.11aAX' # 802.11a-AX (6E disables /n and /ac)
|
15: '802.11aAX' # 802.11a-AX (6E disables /n and /ac)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
for (
|
for (
|
||||||
radio_,
|
radio_,
|
||||||
ssid_,
|
ssid_,
|
||||||
|
|||||||
Reference in New Issue
Block a user