Skip to content

Commit e4d25e1

Browse files
Junchao-Mellanoxpull[bot]
authored andcommitted
Fix issue: 'sx_port_mapping_t' object has no attribute 'slot_id' (#9835)
- Why I did it Fix issue: 'sx_port_mapping_t' object has no attribute 'slot_id'. sx_port_mapping_t only has attribute slot. - How I did it Change slot_id to slot. - How to verify it Manual test
1 parent a8c7d53 commit e4d25e1

File tree

1 file changed

+1
-1
lines changed
  • platform/mellanox/mlnx-platform-api/sonic_platform

1 file changed

+1
-1
lines changed

platform/mellanox/mlnx-platform-api/sonic_platform/sfp_event.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def on_pmpe(self, fd_p):
367367
label_port = slot_id * DeviceDataManager.get_linecard_max_port_count() + x + 1
368368
break
369369

370-
if port_attributes.port_mapping.slot_id == slot_id:
370+
if port_attributes.port_mapping.slot == slot_id:
371371
x += 1
372372

373373
if label_port is not None:

0 commit comments

Comments
 (0)