mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
lf_cisco_power.py : updates for Beacon
This commit is contained in:
@@ -513,13 +513,13 @@ def main():
|
||||
worksheet.set_column(col, col, 10) # Set width
|
||||
worksheet.write(row, col, 'Controller\n dBm', dblue_bold); col += 1
|
||||
worksheet.set_column(col, col, 10) # Set width
|
||||
worksheet.write(row, col, 'Calc dBm\n Beacon', dblue_bold); col += 1
|
||||
worksheet.write(row, col, 'Calculated\n dBm\n Beacon', dblue_bold); col += 1
|
||||
worksheet.set_column(col, col, 14) # Set width
|
||||
worksheet.write(row, col, 'Diff\n Cntl dBm\n & Beacon dBm\n (+/- {} dBm)'.format(args.beacon_dbm_diff), dblue_bold); col += 1
|
||||
worksheet.write(row, col, 'Diff\nController dBm\n & Beacon dBm\n (+/- {} dBm)'.format(args.beacon_dbm_diff), dblue_bold); col += 1
|
||||
worksheet.set_column(col, col, 10) # Set width
|
||||
worksheet.write(row, col, 'Calc dBm\n Combined', dblue_bold); col += 1
|
||||
worksheet.set_column(col, col, 10) # Set width
|
||||
worksheet.write(row, col, 'Diff dBm\n Combined', dblue_bold); col += 1
|
||||
worksheet.write(row, col, 'Calculated\n dBm\n Combined', dblue_bold); col += 1
|
||||
worksheet.set_column(col, col, 14) # Set width
|
||||
worksheet.write(row, col, 'Diff\nController dBm\n & Combined', dblue_bold); col += 1
|
||||
worksheet.set_column(col, col, 12) # Set width
|
||||
worksheet.write(row, col, "PASS /\nFAIL\n( += %s dBm)"%(pf_dbm), dgreen_bold); col += 1
|
||||
worksheet.set_column(col, col, 24) # Set width
|
||||
@@ -1309,7 +1309,7 @@ def main():
|
||||
diff_dbm = calc_dbm - cc_dbmi
|
||||
diff_dbm_beacon = calc_dbm_beacon - cc_dbmi
|
||||
if(int(abs(diff_dbm_beacon)) > int(args.beacon_dbm_diff)):
|
||||
w_tot = "WARNING: Controller and beacon power diff greater then +/- {} dBm".format(args.beacon_dbm_diff)
|
||||
w_tot = "WARNING: Controller and beacon power different by greater then +/- {} dBm".format(args.beacon_dbm_diff)
|
||||
|
||||
pfs = "PASS"
|
||||
pfrange = pf_dbm;
|
||||
|
||||
Reference in New Issue
Block a user