Skip to content

Commit

Permalink
[Mellanox] Fix for QSFP-DD channel status (#5900)
Browse files Browse the repository at this point in the history
Wrong object init broke the API. Replace object to the correct type.

Signed-off-by: Shlomi Bitton <[email protected]>
  • Loading branch information
shlomibitton authored and abdosi committed Nov 14, 2020
1 parent 4088872 commit 1b10f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ def get_reset_status(self):
return False
elif self.sfp_type == QSFP_DD_TYPE:
offset = 0
sfpd_obj = qsfp_dd_InterfaceId()
sfpd_obj = qsfp_dd_Dom()
dom_channel_status_raw = self._read_eeprom_specific_bytes((offset + QSFP_DD_CHANNL_STATUS_OFFSET), QSFP_DD_CHANNL_STATUS_WIDTH)

if dom_channel_status_raw is None:
Expand Down

0 comments on commit 1b10f86

Please sign in to comment.