Skip to content
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

[thermalctld] Fix issue: fan status should not be True when fan is absent #92

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

Junchao-Mellanox
Copy link
Collaborator

Why I did this?

Fan status displays OK when a fan is removed from system, the expect value should be "N/A"

How I did?

If fan is not present, keep fan status value as "N/A".

@jleveque jleveque merged commit a6c0071 into sonic-net:master Sep 15, 2020
@Junchao-Mellanox Junchao-Mellanox deleted the fix-fan-status branch September 18, 2020 05:41
abdosi pushed a commit that referenced this pull request Sep 19, 2020
…sent (#92)

If fan is not present, keep fan status value as "N/A".
jleveque pushed a commit that referenced this pull request Sep 25, 2020
Previous PR #92 has been merged to 201911. The previous fix used a method FanStatus.is_ok, however, the implementation of this method is different between master and 201911. So we need an extra enhance for this issue.

fan status should be true only if FanStatus.is_ok() and fan_status is true.
vdahiya12 pushed a commit to vdahiya12/sonic-platform-daemons that referenced this pull request Apr 4, 2022
…f_2.0 (sonic-net#92)

Small changes in 1.0 platform plugins psu_base.py and fan_base.py. Changes are related to PDDF 2.0 changes. 
psu_base.py:
 - psu_fan speed API name change 
 - Changing the voltage, current and power units to 
fan_base.py:
 - Individual fans are counted instead of fantrays units
 - get_speed_rear() is not required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants