Skip to content

Commit 39c91ce

Browse files
committed
fix port remove event
Signed-off-by: Dante Su <[email protected]>
1 parent 509764c commit 39c91ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sonic-xcvrd/xcvrd/xcvrd_utilities/port_mapping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def read_port_config_change(asic_context, port_mapping, logger, port_change_even
164164

165165
if port_mapping.is_logical_port(key):
166166
port_change_event = PortChangeEvent(key,
167-
physical_index,
167+
port_mapping.get_logical_to_physical(key)[0],
168168
asic_context[port_tbl],
169169
PortChangeEvent.PORT_REMOVE,
170170
fvp)
@@ -186,4 +186,4 @@ def get_port_mapping():
186186
port_config_dict = dict(port_config)
187187
port_change_event = PortChangeEvent(key, port_config_dict['index'], asic_id, PortChangeEvent.PORT_ADD)
188188
port_mapping.handle_port_change_event(port_change_event)
189-
return port_mapping
189+
return port_mapping

0 commit comments

Comments
 (0)