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

Set high threshold and set low thershold #8

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

VadymYashchenko
Copy link
Owner

Why I did it

How I did it

How to verify it

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

return float(temp)

def get_position_in_parent(self):
return self.__index

def set_high_threshold(self, temperature):
if self.check_in_range(temperature):
Copy link

Choose a reason for hiding this comment

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

Looks like TCs supports an option to skip this (set_high_threshold API usage)
https://github.com/Azure/sonic-mgmt/blob/a4cf0c3b1810c07001e0874c91be82af1bf6f47c/tests/platform_tests/api/test_thermal.py#L306
Same for set_low_threshold...

Copy link
Owner Author

@VadymYashchenko VadymYashchenko Feb 14, 2022

Choose a reason for hiding this comment

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

This is not problem of test passing. All tests was passed. This fix need only for wrong message of thermal daemon:
"Sensor tmp75-i2c-3-4c:tofino-temp temperature more then 0.5 !!!"

Signed-off-by: Vadym Yashchenko <[email protected]>
Signed-off-by: Vadym Yashchenko <[email protected]>
Signed-off-by: Vadym Yashchenko <[email protected]>
VadymYashchenko added a commit that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants