sonic-net / sonic-swss

SONiC Switch State Service (SwSS)
https://azure.github.io/SONiC
Other
170 stars 503 forks source link

Add a check if OID exists before setting Host Tx Ready Signal Enable #3233

Closed noaOrMlnx closed 1 month ago

noaOrMlnx commented 1 month ago

This is a cherry-pick of https://github.com/sonic-net/sonic-swss/pull/3232

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