From 0a6313b24491f548c940a9d44eddad87cfd6c94e Mon Sep 17 00:00:00 2001 From: Shlomi Bitton Date: Wed, 11 Nov 2020 14:11:55 +0200 Subject: [PATCH] Fix for QSFP-DD channel status Signed-off-by: Shlomi Bitton --- platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py b/platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py index cd6cbc9d2df8..89b4b520a48e 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py @@ -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: