-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
f9b38c9
to
f92459b
Compare
…al.py Signed-off-by: Vadym Yashchenko <[email protected]>
Signed-off-by: Vadym Yashchenko <[email protected]>
thermal.py Signed-off-by: Vadym Yashchenko <[email protected]>
Signed-off-by: Vadym Yashchenko <[email protected]>
Signed-off-by: Vadym Yashchenko <[email protected]>
Signed-off-by: Vadym Yashchenko <[email protected]>
platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py
Outdated
Show resolved
Hide resolved
platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py
Outdated
Show resolved
Hide resolved
platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py
Show resolved
Hide resolved
Signed-off-by: Vadym Yashchenko <[email protected]>
…eshold Signed-off-by: Vadym Yashchenko <[email protected]>
platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py
Outdated
Show resolved
Hide resolved
platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py
Outdated
Show resolved
Hide resolved
platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py
Outdated
Show resolved
Hide resolved
platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py
Outdated
Show resolved
Hide resolved
return float(temp) | ||
|
||
def get_position_in_parent(self): | ||
return self.__index | ||
|
||
def set_high_threshold(self, temperature): | ||
if self.check_in_range(temperature): |
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.
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...
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.
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 !!!"
platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py
Show resolved
Hide resolved
platform/barefoot/sonic-platform-modules-bfn-montara/sonic_platform/thermal.py
Show resolved
Hide resolved
Signed-off-by: Vadym Yashchenko <[email protected]>
Signed-off-by: Vadym Yashchenko <[email protected]>
Signed-off-by: Vadym Yashchenko <[email protected]>
* Signed-off-by: Vadym Yashchenko <[email protected]>
Why I did it
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
A picture of a cute animal (not mandatory but encouraged)