We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c711b06 commit 02ae33fCopy full SHA for 02ae33f
scripts/sfpshow
@@ -517,8 +517,10 @@ class SFPShow(object):
517
for suffix in ZR_PM_THRESHOLD_KEY_SUFFIXS:
518
key = self.convert_pm_prefix_to_threshold_prefix(
519
prefix) + suffix
520
- thresholds.append(
521
- float(sfp_threshold_dict[key]) if key in sfp_threshold_dict else None)
+ if key in sfp_threshold_dict and sfp_threshold_dict[key] != 'N/A':
+ thresholds.append(float(sfp_threshold_dict[key]))
522
+ else:
523
+ thresholds.append(None)
524
525
tca_high, tca_low = None, None
526
if values[2] is not None and thresholds[0] is not None:
0 commit comments