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

[sonic_api] Implement function to get critical temperature value #174

Merged

Conversation

pphuchar
Copy link
Collaborator

- What I did
Add function to get high/low critical threshold function to platform thermal.
These are called by thermalctld in the latest Azure/201911 commit.

- How I did it
Implement the get_high_critical_threshold()
Implement the get_high_critical_threshold()

- How to verify it
Run the show platform tepperature and check output restlt.

- Description for the changelog

  • Implement temperature critical value read on sonic_platform

Result:

admin@sonic:~$ show platform temperature 
                    NAME    Temperature    High Threshold    Low Threshold    Critical High Threshold    Critical Low Threshold    Warning Status          Timestamp
------------------------  -------------  ----------------  ---------------  -------------------------  ------------------------  ----------------  -----------------
         TEMP_core_tmp_1          64                   82              N/A                      104.0                       N/A             False  20200516 16:52:38
         TEMP_core_tmp_2          64                   82              N/A                      104.0                       N/A             False  20200516 16:52:38
         TEMP_core_tmp_3          64                   82              N/A                      104.0                       N/A             False  20200516 16:52:38
         TEMP_core_tmp_4          64                   82              N/A                      104.0                       N/A             False  20200516 16:52:38
TEMP_dps1100_i2c_75_58_1          37                   70              N/A                        N/A                       N/A             False  20200516 16:52:38
TEMP_dps1100_i2c_75_58_2          48.5                 70              N/A                        N/A                       N/A             False  20200516 16:52:38
TEMP_dps1100_i2c_76_59_1          39                   70              N/A                        N/A                       N/A             False  20200516 16:52:38
TEMP_dps1100_i2c_76_59_2          51.75                70              N/A                        N/A                       N/A             False  20200516 16:52:38
    TEMP_lm75b_i2c_67_4d          35.5                 80              N/A                        N/A                       N/A             False  20200516 16:52:38
     TEMP_lm75b_i2c_9_48          46.5                 97              N/A                        N/A                       N/A             False  20200516 16:52:38
  TEMP_syscpld_i2c_70_0d          60.67               104              N/A                        N/A                       N/A             False  20200516 16:52:38

@pphuchar pphuchar added the enhancement New feature or request label May 16, 2020
@bbinxie bbinxie merged commit e125eb3 into SONIC-DEV:201911_cel_wb May 21, 2020
mudsut4ke pushed a commit that referenced this pull request Jan 25, 2021
[marvell-armhf] Armada A385 soc support #176
backport macsec xpn support to 4.19 kernel (#174)
add internal patch marker (#173)
Improve netfilter fullclone nat support patch #171

Signed-off-by: Sabareesh Kumar Anandan <sanandan@marvell.com>
mudsut4ke pushed a commit that referenced this pull request Mar 16, 2021
Includes the following commits:

1673d25 [y_cable] refactor upgrade firmware API's; Fix vendor and part number API's read size for read_eeprom (#174)
ed93a15 [sonic_platform_base] Proper use of class and instance attributes (#173)
691de92 [sonic_y_cable] add stub function for upgrade firmware of Y cable and split the get_part_number and get_vendor API's (#171)

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
jerseyang pushed a commit that referenced this pull request Jun 4, 2021
Includes the following commits:

1673d25 [y_cable] refactor upgrade firmware API's; Fix vendor and part number API's read size for read_eeprom (#174)
ed93a15 [sonic_platform_base] Proper use of class and instance attributes (#173)
691de92 [sonic_y_cable] add stub function for upgrade firmware of Y cable and split the get_part_number and get_vendor API's (#171)

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
jerseyang pushed a commit that referenced this pull request Jun 4, 2021
…onic-net#7647)

Includes below commits
```
sonic-swss
05f0438 2021-05-19 | Fix build error (sonic-net#1751) [Shi Su]
1682a8d 2021-05-12 | [Bulk mode] Improve log in bulk failures (sonic-net#1740) [Shi Su]
4509e88 2021-04-27 | [routeorch] Add support for blackhole routes (sonic-net#1723) [Shi Su]
642014d 2019-10-31 | [fix] Use the same storm detection condition for queue occupancy non-zero case as the zero case (sonic-net#1111) [Wenda Ni]

sonic-utilities
97fc442 2021-05-10 | [config]: Use mod_entry when editing VLAN_INTERFACE (sonic-net#1602) [Lawrence Lee]
f60d579 2021-04-15 | [techsupport] Update show ip interface command (sonic-net#1562) [Mahesh Maddikayala]
821d29d 2021-04-14 | Fix Multi-ASIC show specific resursive route by using common parsing function (sonic-net#1560) [gechiang]

sonic-linux-kernel
61b331f 2021-05-06 | [dps200] Add dps200 PSU module driver (#207) [schobtr]

sonic-platform-daemons
5d2960f 2021-05-17 | [xcvrd] add support for logging mux_metrics events into state DB (#185) [vdahiya12]
a5c9207 2021-05-11 | [thermalctld] Enable stopping thermal manager (#180) [Junchao-Mellanox]
9123f63 2021-05-10 | [muxcable] Remove Xcvrd Sleep (#174) [Tamer Ahmed]
```
mudsut4ke pushed a commit that referenced this pull request Sep 9, 2021
This PR updates the following commits in sonic-platform-daemons

e60804c [xcvrd] add support for logging mux_metrics events into state DB (#185)
807b304 [psud] Add PSU Hardware Revision to Redis STATE_DB (#179)
d0be634 [muxcable] Remove Xcvrd Sleep (#174)
cc3803f [thermalctld] Enable stopping thermal manager (#180)
665fcd9 [xcvrd] Fix crash for QSFP DD media (#181)
cdabd09 [xcvrd] Change the y_cable presence logic to use "mux_cable" table as identifier from Config DB (#176)
4be4306 [xcvrd] Enhance Media Settings (#177)

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants