Closed noaOrMlnx closed 1 month ago
@prgeor can you please review this host_tx_ready fix?
@noaOrMlnx Why OA is acting upon deleted ports?
@prgeor , can you please approve?
@prgeor OA is acting upon port deletion, if a module was plugged out, and its entry was deleted from TRANSCEIVER_INFO table is State DB, so it could set HostTxReady enable to false. In DPB case, the port OID is deleted, and we can't set any attribute to SAI.
Please fix the conflict to 202311 branch.
Cherry-pick PR to 202405: https://github.com/sonic-net/sonic-swss/pull/3243
What I did I added a query before setting host tx ready - must check that Oid exists before setting attribute to SAI.
Why I did it
When we do dynamic port breakout to a Fw-control port, portsorch receives a notification that something was deleted in TRANSCEIVER_INFO table from State DB, and tries to set HOST_TX_READY_SIGNAL_ENABLE attribute to false for the deleted OID. The issue is the Oid is already deleted and we receive an error from SAI.
How I verified it Run DPB on the switch Details if related