sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

orchagent would crash, when portsorch failed to remove bridge port

Open inspurSDN opened this issue 1 year ago • 1 comments

Root cause:
    Failed to remove bridge port becasue reference count is not 0

Solution:
    1. put DEL task into m_toSync, when portsorch failed to remove bridge port
    2. if port was removed from vlan but m_bridge_port_id is not SAI_NULL_OBJECT_ID,
       portsorch will try to remove bridgeport again until reference count is 0

What I did

Why I did it

How I verified it

Details if related

inspurSDN avatar Nov 16 '23 08:11 inspurSDN

Please add unit tests

prsunny avatar Nov 16 '23 21:11 prsunny