Skip to content

Commit

Permalink
Fix sfputil for OSFP xcvrs (sonic-net#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
andywongarista committed Oct 9, 2021
1 parent 9232c54 commit 112b44e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sfputil/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 112b44e

Please sign in to comment.