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:
parent
74df1494d0
commit
9070c441e8
@ -367,7 +367,7 @@ class sfp_event:
|
|||||||
label_port = slot_id * DeviceDataManager.get_linecard_max_port_count() + x + 1
|
label_port = slot_id * DeviceDataManager.get_linecard_max_port_count() + x + 1
|
||||||
break
|
break
|
||||||
|
|
||||||
if port_attributes.port_mapping.slot_id == slot_id:
|
if port_attributes.port_mapping.slot == slot_id:
|
||||||
x += 1
|
x += 1
|
||||||
|
|
||||||
if label_port is not None:
|
if label_port is not None:
|
||||||
|
Reference in New Issue
Block a user