Closed DennisChiuEC closed 4 months ago
@DennisChiuEC Please add unit test
OK, I will add the unit test case.
@tshalvi would you please review?
@prgeor could we add Request for 202405 Branch
to cherry-pick this PR?
@bingwang-ms Can you please help to cherry-pick this to 202405?
Cherry-pick PR to 202405: https://github.com/sonic-net/sonic-platform-daemons/pull/537
@prgeor
Could we also cherry-pick this PR to 202311?
PR https://github.com/sonic-net/sonic-platform-daemons/pull/533 (which was requested for 202311 cherry-pick) depends on the regular expression support introduced by this PR.
@prgeor
Could we also cherry-pick this PR to 202311?
PR #533 (which was requested for 202311 cherry-pick) depends on the regular expression support introduced by this PR.
@yxieca Can you please help to cherry pick this PR to 202311? MSFT ADO - 28898451
Cherry-pick PR to 202311: https://github.com/sonic-net/sonic-platform-daemons/pull/544
@prgeor
Could we also cherry-pick this PR to 202311?
PR #533 (which was requested for 202311 cherry-pick) depends on the regular expression support introduced by this PR.
@longhuan-cisco Can you please help to create a separate 202311 PR for PR#533 since the dependent PR#471 is now cherry-picked to 202311.
@longhuan-cisco Can you please help to create a separate 202311 PR for PR#533 since the dependent PR#471 is now cherry-picked to 202311.
raised https://github.com/sonic-net/sonic-platform-daemons/pull/545 for it
Description
Let media_settings.json can use regular expression to match 'vendor key' or 'media key' when define a set of transceiver to use the same SI value.
Motivation and Context
Make the definition of SI value for a set of vendor or media can be more flexible
How Has This Been Tested?
root@sonic:~# cat /var/log/swss/swss.rec | grep preemphasis
2024-04-17.01:53:10.594465|PORT_TABLE:Ethernet0|SET|preemphasis:0x0c8418,0x0c8418,0x0c8418,0x0c8418
2024-04-17.01:53:11.827324|PORT_TABLE:Ethernet4|SET|preemphasis:0x0c8418,0x0c8418,0x0c8418,0x0c8418
Example of media_settings.json
"GLOBAL_MEDIA_SETTINGS": {
"1-32": {
"VENDOR.*-PN.*": {
"preemphasis": {
"lane0": "0x0c8418",
"lane1": "0x0c8418",
"lane2": "0x0c8418",
"lane3": "0x0c8418",
"lane4": "0x0c8418"
}
}
}
Additional Information (Optional)