[xcvrd][media_settings] Add changes to send Unreliable_los settings requirement for consumption by swss with warm-reboot flow #623
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The key change adds support for selectively applying the unreliable_los media setting to APP_DB, controlled via a new boolean argument is_unreliable_los_setting_required in the notify_media_setting() function
During link shutdown orchagent will use this setting to make sure that during a port flap, the orchagent applied the proper media settings after this has been consumed by orchagent.
Motivation and Context
How Has This Been Tested?
goes with sonic-net/sonic-swss#3663
The following test-scenarios was covered to see unreliable LOS is enabled and param phy_ctrl_unreliable_los is enabled in State DB:
Details if related
MSFT ADO
32883681
Tested on the testbed as well as UT
Additional Information (Optional)