lf_tx_power.py : updated dual-band command help, updated comment

# when both 5g (slot 1) is enabled and dual-band 5g (slot 2) is enabled .
# 5g slot 1 will used the 5g channels to 64,  the 5g dual-band will use channels 100 -> 165.
# When 5g (slot 1) and dual-band 6g (slot 2) is enabled then 5g (slot 1) has all bands.
lf_check.py : updated to allow for local reporting. (first attempt)

Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
Chuck SmileyRekiere
2022-04-14 09:59:27 -06:00
committed by shivam
parent ffbc2af5fc
commit b7a50cf445
2 changed files with 29 additions and 6 deletions

View File

@@ -362,9 +362,9 @@ def main():
# AP configuration # AP configuration
parser.add_argument("-a", "--ap", type=str, help="[AP configuration] select AP ", required=True) parser.add_argument("-a", "--ap", type=str, help="[AP configuration] select AP ", required=True)
parser.add_argument("--ap_dual_band_slot_6g", type=str, help="[AP configuration] --ap_dual_band_slot_6g 3 , 9800 AP dual-band slot , for 6g dual-band use show ap dot11 dual-band summary", default='2') parser.add_argument("--ap_dual_band_slot_6g", type=str, help="[AP configuration] --ap_dual_band_slot_6g 2 , 9800 AP dual-band slot , for 6g dual-band use show ap dot11 dual-band summary", default='2')
parser.add_argument("--ap_dual_band_slot_5g", type=str, help="[AP configuration] --ap_dual_band_slot_5g 1 , 9800 AP dual-band slot , for 5g dual-band use show ap dot11 dual-band summary", default='2') parser.add_argument("--ap_dual_band_slot_5g", type=str, help="[AP configuration] --ap_dual_band_slot_5g 2 , 9800 AP dual-band slot , for 5g dual-band use show ap dot11 dual-band summary", default='2')
parser.add_argument("--ap_band_slot_6g", type=str, help="[AP configuration] --ap_band_slot_6g 3 , 9800 AP band slot , use show ap dot11 6ghz summary", default='2') parser.add_argument("--ap_band_slot_6g", type=str, help="[AP configuration] --ap_band_slot_6g 2 , 9800 AP band slot , use show ap dot11 6ghz summary", default='2')
parser.add_argument("--ap_band_slot_5g", type=str, help="[AP configuration] --ap_band_slot_5g 1 , 9800 AP band slot , use show ap dot11 5ghz summary", default='1') parser.add_argument("--ap_band_slot_5g", type=str, help="[AP configuration] --ap_band_slot_5g 1 , 9800 AP band slot , use show ap dot11 5ghz summary", default='1')
parser.add_argument("--ap_band_slot_24g", type=str, help="[AP configuration] --ap_band_slot_24g 0 , 9800 AP band slot , use show ap dot11 24ghz summary", default='0') parser.add_argument("--ap_band_slot_24g", type=str, help="[AP configuration] --ap_band_slot_24g 0 , 9800 AP band slot , use show ap dot11 24ghz summary", default='0')
@@ -1085,6 +1085,10 @@ def main():
"--set_ifstate", "down"]) "--set_ifstate", "down"])
cs.show_ap_summary() cs.show_ap_summary()
# when both 5g (slot 1) is enabled and dual-band 5g (slot 2) is enabled .
# 5g slot 1 will used the 5g channels to 64, the 5g dual-band will use channels 100 -> 165.
# When 5g (slot 1) and dual-band 6g (slot 2) is enabled then 5g (slot 1) has all bands.
# if dual band : disable dual-band mode, config mode, enable dual-band mode # if dual band : disable dual-band mode, config mode, enable dual-band mode
# disable dual-band mode # disable dual-band mode
if args.band == "dual_band_6g": if args.band == "dual_band_6g":

View File

@@ -470,20 +470,39 @@ class lf_check():
Results from {hostname}: Results from {hostname}:
Suite: {suite} Suite: {suite}
Database: {db} Database: {db}
lf_check Test Suite Report:
http://{hostname}/{report} http://{hostname}/{report}
""".format(email_txt=self.email_txt, lf_mgr_ip=self.lf_mgr_ip, suite=self.test_suite, db=self.database_sqlite, hostname=self.hostname, report=report_url)
lf_check Local Test Suite Report:
file:///{report_local}
""".format(email_txt=self.email_txt, lf_mgr_ip=self.lf_mgr_ip, suite=self.test_suite, db=self.database_sqlite, hostname=self.hostname, report=report_url, report_local=report_url)
else: else:
message_txt = """Results from {hostname}: message_txt = """Results from {hostname}:
Suite: {suite} Suite: {suite}
Database: {db} Database: {db}
http://{hostname}/{report}""".format(hostname=self.hostname, suite=self.test_suite, db=self.database_sqlite, report=report_url)
lf_check Test Suite Report:
http://{hostname}/{report}
lf_check Local Test Suite Report:
file:///{report_local}
""".format(hostname=self.hostname, suite=self.test_suite, db=self.database_sqlite, report=report_url, report_local=report_url)
# Put in report information current two methods supported, # Put in report information current two methods supported,
if "NA" not in self.qa_report_html: if "NA" not in self.qa_report_html:
message_txt += """ message_txt += """
QA Report Dashboard: QA Report Dashboard:
http://{ip_qa}/{qa_url} http://{ip_qa}/{qa_url}
NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url)
QA Report Dashboard Local:
file:///{qa_url_local}
NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url, qa_url_local=qa_url)
else: else:
message_txt += """ message_txt += """