From fd9bd4018833c6f22a5de2a2908222b685c55b02 Mon Sep 17 00:00:00 2001 From: shlomibitton <60430976+shlomibitton@users.noreply.github.com> Date: Wed, 11 Nov 2020 21:08:15 +0200 Subject: [PATCH] [Mellanox] Fix for QSFP-DD channel status (#5900) Wrong object init broke the API. Replace object to the correct type. 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 cd6cbc9d2d..89b4b520a4 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 @@ class SFP(SfpBase): 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: