diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py b/platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py index 669c49db8131..faaeb99fba3e 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py @@ -367,7 +367,7 @@ def on_pmpe(self, fd_p): label_port = slot_id * DeviceDataManager.get_linecard_max_port_count() + x + 1 break - if port_attributes.port_mapping.slot_id == slot_id: + if port_attributes.port_mapping.slot == slot_id: x += 1 if label_port is not None: