Skip to content

[thermalctld] Fix fan status issue in 201911 #96

Merged
jleveque merged 1 commit intosonic-net:201911from
Junchao-Mellanox:fix-fan-status-201911
Sep 25, 2020
Merged

[thermalctld] Fix fan status issue in 201911 #96
jleveque merged 1 commit intosonic-net:201911from
Junchao-Mellanox:fix-fan-status-201911

Conversation

@Junchao-Mellanox
Copy link
Collaborator

Why I did this?

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.

How I did this?

fan status should be true only if FanStatus.is_ok() and fan_status is true.

How I verify this?

By manual test and regression test.

@keboliu keboliu requested a review from jleveque September 25, 2020 00:42
@jleveque jleveque merged commit f63cecc into sonic-net:201911 Sep 25, 2020
@Junchao-Mellanox Junchao-Mellanox deleted the fix-fan-status-201911 branch September 25, 2020 01:50
vdahiya12 pushed a commit to vdahiya12/sonic-platform-daemons that referenced this pull request Apr 4, 2022
…fpUtilBase (sonic-net#96)

The SfpUtil interface used in xcvrd expects get_physical_to_logical to return None in the case of unknown port:
https://github.com/Azure/sonic-platform-daemons/blob/master/sonic-xcvrd/scripts/xcvrd#L906

Note SfpUtilBase implementation already conforms the interface in xcvrd:
https://github.com/Azure/sonic-platform-common/blob/master/sonic_platform_base/sonic_sfp/sfputilbase.py#L603

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
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.

3 participants