Closed vdahiya12 closed 9 months ago
@vdahiya12 please update the HLD https://github.com/sonic-net/SONiC/blob/master/doc/media-settings/Media-based-Port-settings.md
hi @keboliu @Junchao-Mellanox can you review the change ?
hi @vdahiya12 this one more like an enhancement, what's the justification to have this into 202305?
we should not accept this into 202305, @vdahiya12 , as we discussed, please do not backport this into 202305.
as discussed will add in master for now
Description
This PR introduces a new way of specifying keys in media_settings file in a regex format. This way port settings will be applied to ports specified in
GLOBAL_MEDIA_PATTERN_SETTINGS
key in the media_settings.json key and whichever port vendor key matches the regex format key, they will be configured with params specified for that key. If None of the keys match, default settings if any will be applied as inGLOBAL_MEDIA_SETTINGS
orPORT_MEDIA_SETTINGS
.Motivation and Context
How Has This Been Tested?
UT and testing on a sonic-mgmt Testbed
Additional Information (Optional)