Skip to content

Commit

Permalink
Fix issue: 'sx_port_mapping_t' object has no attribute 'slot_id' (#9835)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
Junchao-Mellanox authored Jan 27, 2022
1 parent 8e590da commit 43e967d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 43e967d

Please sign in to comment.