[Mellanox] backport psu sensors dynamic configuration to 202305#19560
Closed
yuazhe wants to merge 4 commits intosonic-net:202305from
Closed
[Mellanox] backport psu sensors dynamic configuration to 202305#19560yuazhe wants to merge 4 commits intosonic-net:202305from
yuazhe wants to merge 4 commits intosonic-net:202305from
Conversation
Signed-off-by: Yuanzhe, Liu <yualiu@nvidia.com>
add a script to dynamically update the original sensors.conf psu section to match the currently used psu model. add a json file to store related platform and psu info. simx revision is irrelevant, so there is no change on it. Signed-off-by: Yuanzhe, Liu <yualiu@nvidia.com>
once the get_model api detect a psu model changing, it would firstly regenerate sensors.conf and then restart sensord to active the new configuration. Signed-off-by: Yuanzhe, Liu <yualiu@nvidia.com>
previously 2700a1 sensors.conf is missing bus section for psu, so add it and update the psu_sensors.json with the info. fix psu_sensors_conf_updater to treat PSR psu as same as PSF one. Signed-off-by: Yuanzhe, Liu <yualiu@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why I did it
This pr is used to backport #18528.
However, it doesn't contain commit #18722, because that one had been labeled with request for 202305.
Work item tracking
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)