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

[Mellanox] [201911] Fix issue: set fan led in certain order causes incorrect physical fan led color #6019

Merged
merged 4 commits into from
Nov 26, 2020

Conversation

Junchao-Mellanox
Copy link
Collaborator

@Junchao-Mellanox Junchao-Mellanox commented Nov 24, 2020

- Why I did it

Fix issue: set fan led in certain order causes incorrect physical fan led color. Say fan1 and fan2 in the same fan drawer and share the same LED. In current implementation, set fan1 to red and set fan2 to green, the final physical LED color is green which is incorrect.

Similar fix is already in master.

- How I did it

Save the led color and determine the final led color by all fans that share the led.

- How to verify it

Run all test cases in test_platform_info.py.

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@lgtm-com

This comment has been minimized.

@Junchao-Mellanox Junchao-Mellanox marked this pull request as draft November 24, 2020 09:42
Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abdosi, @rlhui: Please merge at your discretion.

@liat-grozovik liat-grozovik merged commit 37eb088 into sonic-net:201911 Nov 26, 2020
@Junchao-Mellanox Junchao-Mellanox deleted the fix_fan_led branch December 15, 2020 01:42
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