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
This commit is contained in:
Junchao-Mellanox 2022-01-27 13:38:32 +08:00 committed by GitHub
parent 8e590da563
commit 43e967d6a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,7 +367,7 @@ class sfp_event:
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: