Add support to media settings parser for parsing gearbox media settings #579
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.
What I did
Added support to media_settings_parser in xcvrd to parse gearbox tuning values from media_settings.json.
Description
Added GEARBOX_GLOBAL_MEDIA_SETTINGS and GEARBOX_PORT_MEDIA_SETTINGS as top-level search keys for media_settings_parser.py in xcvrd.
Expanded get_media_settings() to parse gearbox values
Gearbox tuning values (line-side and system-side) parsed from media_settings.json will be published to APPL_DB alongside ASIC values.
Motivation and Context
This change is part of the Dynamic Gearbox Tuning feature. Allows parsing gearbox tuning values from media_settings.json.
How Has This Been Tested?
Using a custom media_settings.json file, verified that port tables in APPL_DB were being correctly set with the proper values for ASIC tx_taps as well as line-side and system-side gearbox tx_taps.
Verified against current unit tests.
Added unit test cases in test_xcvrd.py to cover new changes.