-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Mellanox] Add N/A as a valid fan direction for Nvidia platforms #17930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Mellanox] Add N/A as a valid fan direction for Nvidia platforms #17930
Conversation
|
@@ -46,9 +46,11 @@ | |||
FAN_DIR = "/var/run/hw-management/thermal/fan{}_dir" | |||
FAN_DIR_VALUE_EXHAUST = 0 | |||
FAN_DIR_VALUE_INTAKE = 1 | |||
FAN_DIR_VALUE_NOT_APPLICABLE = 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which one will be better, 'N/A' or 'UNKNOWN'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The schema values support 'N/A', and also the 'FanBase' interface refers to this value as not applicable. So I think the 'N/A' value is better.
…ic-net#17930) - Why I did it On some Nvidia platforms, fan direction could not be determined. Therefore 'N/A' becomes a valid value for those cases. - How I did it Add 'N/A' to the valid fan direction mapping, to avoid an error in the log. - How to verify it Check fan direction on Nvidia platforms, and make sure there aren't errors in the log.
…ic-net#17930) - Why I did it On some Nvidia platforms, fan direction could not be determined. Therefore 'N/A' becomes a valid value for those cases. - How I did it Add 'N/A' to the valid fan direction mapping, to avoid an error in the log. - How to verify it Check fan direction on Nvidia platforms, and make sure there aren't errors in the log.
Why I did it
On some Nvidia platforms, fan direction could not be determined. Therefore 'N/A' becomes a valid value for those cases.
Work item tracking
How I did it
Add 'N/A' to the valid fan direction mapping, to avoid an error in the log.
How to verify it
Check fan direction on Nvidia platforms, and make sure there aren't errors in the log.
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)