sonic-buildimage/platform/broadcom/sonic-platform-modules-accton
jostar-yang ab3053b3df
[Accton/PDDF] Support show cmd for psu-temp and fan (#10215)
Why I did it
Support for show platform temp/fan for psu-temp and fan.
Original code doesn't has fan_drawer to support these information.

How I did it
Support for show platform temp/fan for psu-temp and fan.
Add fan_drawer.py and update thermal.py to add needed code.
It need PDDF common code to support . (Refer to #10213)

How to verify it
Test show platform temp and show platform fan.
root@as7726-32x-2:~# show platform fan
Drawer LED FAN Speed Direction Presence Status Timestamp

Fantray1 green Fantray1_1 38% EXHAUST Present OK 20220311 08:13:04
Fantray1 green Fantray1_2 38% EXHAUST Present OK 20220311 08:13:04
Fantray2 green Fantray2_1 38% EXHAUST Present OK 20220311 08:13:04
Fantray2 green Fantray2_2 38% EXHAUST Present OK 20220311 08:13:04
Fantray3 green Fantray3_1 38% EXHAUST Present OK 20220311 08:13:04
Fantray3 green Fantray3_2 38% EXHAUST Present OK 20220311 08:13:04
Fantray4 green Fantray4_1 38% EXHAUST Present OK 20220311 08:13:04
Fantray4 green Fantray4_2 38% EXHAUST Present OK 20220311 08:13:04
Fantray5 green Fantray5_1 38% EXHAUST Present OK 20220311 08:13:04
Fantray5 green Fantray5_2 38% EXHAUST Present OK 20220311 08:13:04
Fantray6 green Fantray6_1 38% EXHAUST Present OK 20220311 08:13:04
Fantray6 green Fantray6_2 38% EXHAUST Present OK 20220311 08:13:04
N/A green PSU1_FAN1 23% EXHAUST Present OK 20220311 08:13:04
N/A green PSU2_FAN1 22% EXHAUST Present OK 20220311 08:13:04
root@as7726-32x-2:~# show platform temp
Sensor Temperature High TH Low TH Crit High TH Crit Low TH Warning Timestamp

PSU1_TEMP1 28 N/A N/A N/A N/A False 20220311 08:13:04
PSU2_TEMP1 25 N/A N/A N/A N/A False 20220311 08:13:04
TEMP1 23.5 80.0 N/A N/A N/A False 20220311 08:13:04
TEMP2 27 80.0 N/A N/A N/A False 20220311 08:13:04
TEMP3 24 80.0 N/A N/A N/A False 20220311 08:13:04
TEMP4 27 80.0 N/A N/A N/A False 20220311 08:13:04
TEMP5 24 80.0 N/A N/A N/A False 20220311 08:13:04

Co-authored-by: Jostar Yang <jostar_yang@accton.com.tw>
2022-03-29 13:36:58 -07:00
..
as4630-54pe [Accton/PDDF] Support show cmd for psu-temp and fan (#10215) 2022-03-29 13:36:58 -07:00
as4630-54te [Accton platform] Fix kernel 5.10 build failed in fan drv (#9744) 2022-01-22 10:37:51 -08:00
as5712-54x Update Accton platform module for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
as5812-54t Update Accton platform module for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
as5812-54x Update Accton platform module for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
as5835-54t Update Accton platform module for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
as5835-54x Edgecore 4630/5835/7326/7816 API2.0 platform support (#10053) 2022-03-18 06:17:08 +05:30
as6712-32x Update Accton platform module for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
as7312-54x [Accton platform] Fix kernel 5.10 build failed in fan drv (#9744) 2022-01-22 10:37:51 -08:00
as7312-54xs [Accton platform] Fix kernel 5.10 build failed in fan drv (#9744) 2022-01-22 10:37:51 -08:00
as7315-27xb [AS7315-27XB] Fix build error and incorrect I2C bus number (#9712) 2022-01-16 12:13:16 +05:30
as7326-56x [Accton/PDDF] Support show cmd for psu-temp and fan (#10215) 2022-03-29 13:36:58 -07:00
as7712-32x [Accton/PDDF] Support show cmd for psu-temp and fan (#10215) 2022-03-29 13:36:58 -07:00
as7716-32x Update Accton platform module for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
as7716-32xb Update Accton platform module for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
as7726-32x [Accton/PDDF] Support show cmd for psu-temp and fan (#10215) 2022-03-29 13:36:58 -07:00
as7816-64x [Accton/PDDF] Support show cmd for psu-temp and fan (#10215) 2022-03-29 13:36:58 -07:00
as9716-32d [Accton/PDDF] Support show cmd for psu-temp and fan (#10215) 2022-03-29 13:36:58 -07:00
as9726-32d [Accton platform] Fix kernel 5.10 build failed in fan drv (#9744) 2022-01-22 10:37:51 -08:00
common/modules Edgecore 4630/5835/7326/7816 API2.0 platform support (#10053) 2022-03-18 06:17:08 +05:30
debian Edgecore 4630/5835/7326/7816 API2.0 platform support (#10053) 2022-03-18 06:17:08 +05:30
minipack Update Accton platform module for Bullseye and 5.10 kernel 2021-11-10 15:27:22 -08:00
.gitignore update .gitignore 2018-08-12 07:58:59 +00:00
LICENSE [devices]: move platform modules of accton, ingrasys, mitac, quanta into buildimage repo 2018-08-11 09:09:03 +00:00
README.md [devices]: move platform modules of accton, ingrasys, mitac, quanta into buildimage repo 2018-08-11 09:09:03 +00:00

platform drivers of Accton products for the SONiC project