-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete TRSNCEIVER tables while config reload #3680
Delete TRSNCEIVER tables while config reload #3680
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
6620dc2
to
44c650d
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@prgeor , Can you please review ? |
@noaOrMlnx Will skip this PR for 202405 branch as it's considered as not a must-have fix. Please let me know for any concern. Thanks |
* Delete TRANSCEIVER tables while config reload
@dprital @noaOrMlnx Is this required only for breakout ports? |
@kperumalbfn This change is required to any system which doesn't contain all ports. |
Cherry-pick PR to 202411: #3726 |
What I did
Removed TRANSCEIVER tables while config reload / load minigraph is executed.
This code adds the option to reserve TRANSCEIVER_INFO table if xcvrd is being restarted. - https://github.com/sonic-net/sonic-platform-daemons/blob/0cb36447ebfda390d999df6516beac4c17315a7b/sonic-xcvrd/xcvrd/xcvrd.py#L2199
The fix introduced here comes to fix the issue that the table remains also after config reload / load minigraph, which may cause config DB and TRANSCEIVER_INFO table have different ports keys.
How I did it
Update config reload command to delete TRANSCEIVER tables: ["TRANSCEIVER_INFO", "TRANSCEIVER_STATUS", "TRANSCEIVER_PM", "TRANSCEIVER_FIRMWARE_INFO", "TRANSCEIVER_DOM_SENSOR", "TRANSCEIVER_DOM_THRESHOLD"]
How to verify it
Execute config reload and make sure TRANSCEIVER tables are deleted
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)