From 112b44e3be4a83480dce4c69f7382ea40ba9d5d1 Mon Sep 17 00:00:00 2001 From: andywongarista <78833093+andywongarista@users.noreply.github.com> Date: Fri, 8 Oct 2021 19:02:11 -0700 Subject: [PATCH] Fix sfputil for OSFP xcvrs (#1852) --- sfputil/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfputil/main.py b/sfputil/main.py index 5fb533ec92..96dfcd9e79 100644 --- a/sfputil/main.py +++ b/sfputil/main.py @@ -260,7 +260,8 @@ def convert_sfp_info_to_output_string(sfp_info_dict): elif key == 'cable_length': pass elif key == 'specification_compliance': - if sfp_info_dict['type'] == "QSFP-DD Double Density 8X Pluggable Transceiver": + if sfp_info_dict['type'] == "QSFP-DD Double Density 8X Pluggable Transceiver" or \ + sfp_info_dict['type'] == "OSFP 8X Pluggable Transceiver": output += '{}{}: {}\n'.format(indent, QSFP_DATA_MAP[key], sfp_info_dict[key]) else: output += '{}{}:\n'.format(indent, QSFP_DATA_MAP['specification_compliance'])