From 080de95d90e1fa3d55aa5359abab5a5d9dcd4f63 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Fri, 1 Apr 2022 11:14:14 -0400 Subject: [PATCH] cc_module_9800_3504.py : removed 'a' and 'b' references lf_tx_power.py : updates spread sheet comments Signed-off-by: Chuck SmileyRekiere --- cc_module_9800_3504.py | 8 +------- lf_tx_power.py | 8 ++++---- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/cc_module_9800_3504.py b/cc_module_9800_3504.py index 4f477c47..0197c9b3 100755 --- a/cc_module_9800_3504.py +++ b/cc_module_9800_3504.py @@ -183,11 +183,6 @@ class create_controller_series_object: self.band = 'dual_band_5g' elif self.band == 'dual_band_6g': self.band = 'dual_band_6g' - elif self.band == 'a': - self.band = '5g' - elif self.band == 'b': - self.band = '24g' - pass else: logger.critical("band needs to be set 24g 5g 6g dual_band_5g, dual_band_6g") raise ValueError("band needs to be set 24g 5g 6g dual_band_5g or dual_band_6g") @@ -213,8 +208,7 @@ class create_controller_series_object: # TODO consolidate the command formats def send_command(self): - # for converting 'a' to '5g' , and 'b' to '24g' - self.convert_band() + # self.convert_band() self.set_ap_band_slot() logger.info("action {action}".format(action=self.action)) diff --git a/lf_tx_power.py b/lf_tx_power.py index f4543c28..0193e294 100755 --- a/lf_tx_power.py +++ b/lf_tx_power.py @@ -357,7 +357,7 @@ def main(): parser.add_argument("-p", "--passwd", type=str, help="[controller configuration] credential password --passwd Cisco123", required=True) parser.add_argument('-ccp', '--prompt', type=str, help="[controller configuration] controller prompt --prompt WLC1", required=True) parser.add_argument("--series", type=str, help="[controller configuration] controller series --series 9800", required=True) - parser.add_argument("--band", type=str, help="band testing --band 6g", choices=["a", "5g", "24g", "b", "abgn", "6g"]) + parser.add_argument("--band", type=str, help="band testing --band 6g", choices=["5g", "24g", "6g"]) parser.add_argument("--module", type=str, help="[controller configuration] series module (cc_module_9800_3504.py) --module cc_module_9800_3504 ", required=True) parser.add_argument("--timeout", type=str, help="[controller configuration] controller command timeout --timeout 3 ", default=3) @@ -831,13 +831,13 @@ def main(): worksheet.write(row, col, 'Controller\nReported\ndBm', dblue_bold) col += 1 worksheet.set_column(col, col, 25) # Set width - worksheet.write(row, col, 'Client Calc Beacon dBm\n beacon + pathloss\n + rssi_adj + antenna gain', dblue_bold) + worksheet.write(row, col, 'Client Calc Beacon dBm\n beacon + pathloss\n + rssi_adj - antenna gain', dblue_bold) col += 1 worksheet.set_column(col, col, 25) # Set width - worksheet.write(row, col, 'Difference Between Controller dBm\n & Client Calc Beacon dBm \n (+/- {diff} dBm)'.format(diff=args.beacon_dbm_diff), dblue_bold) + worksheet.write(row, col, 'Difference Between\n Controller dBm\n & Client Calc Beacon dBm \n (+/- {diff} dBm)'.format(diff=args.beacon_dbm_diff), dblue_bold) col += 1 worksheet.set_column(col, col, 25) # Set width - worksheet.write(row, col, 'Client Calc Combined Signal dBm\n total signal dBm + pathloss\n + rssi_adj + antenna gain', dblue_bold) + worksheet.write(row, col, 'Client Calc\n Combined Signal dBm\n total signal dBm + pathloss\n + rssi_adj - antenna gain', dblue_bold) col += 1 worksheet.set_column(col, col, 25) # Set width worksheet.write(row, col, 'Difference Between\n Controller dBm\n& Client Calc Combined\n Signal dBm', dblue_bold)