-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Edgecore][AS7326/PDDF] Enhance sonic_platform feature #13809
base: master
Are you sure you want to change the base?
[Edgecore][AS7326/PDDF] Enhance sonic_platform feature #13809
Conversation
Signed-off-by: jostar-yang <jostar_yang@edge-core.com>
@FuzailBrcm , please help review |
|
||
class Chassis(PddfChassis): | ||
""" | ||
PDDF Platform-specific Chassis class | ||
""" | ||
|
||
SYSLED_DEV_NAME = "DIAG_LED" |
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.
So chassis set/get status_led will lead to setting of DIAG led ?
This platform doesn't have SYS_LED ?
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.
We have DIAG_LED and LOC_LED, and don't have SYS_LED. So use DIAG_LED instead of SYS_LED.
Signed-off-by: michael_shih <michael_shih@edge-core.com>
Signed-off-by: michael_shih <michael_shih@edge-core.com>
Why I did it
How I did it
Modify sonic_platorm, thermal plan code and pddf-device.json
How to verify it
Test show cmd.
root@sonic:/home/admin# show platform fan
Drawer LED FAN Speed Direction Presence Status Timestamp
FanTray1 green FAN-1F 38% exhaust Present OK 20230215 17:46:46
FanTray1 green FAN-1R 38% exhaust Present OK 20230215 17:46:46
FanTray2 green FAN-2F 38% exhaust Present OK 20230215 17:46:46
FanTray2 green FAN-2R 38% exhaust Present OK 20230215 17:46:46
FanTray3 green FAN-3F 38% exhaust Present OK 20230215 17:46:46
FanTray3 green FAN-3R 38% exhaust Present OK 20230215 17:46:46
FanTray4 green FAN-4F 38% exhaust Present OK 20230215 17:46:46
FanTray4 green FAN-4R 38% exhaust Present OK 20230215 17:46:46
FanTray5 green FAN-5F 38% exhaust Present OK 20230215 17:46:46
FanTray5 green FAN-5R 38% exhaust Present OK 20230215 17:46:46
FanTray6 green FAN-6F 38% exhaust Present OK 20230215 17:46:46
FanTray6 green FAN-6R 38% exhaust Present OK 20230215 17:46:46
N/A N/A PSU-1 FAN-1 0% Present Not OK 20230215 17:46:48
N/A N/A PSU-2 FAN-1 33% exhaust Present OK 20230215 17:46:48
root@sonic:/home/admin#
root@sonic:/home/admin# show platform temp
Sensor Temperature High TH Low TH Crit High TH Crit Low TH Warning Timestamp
MB_FrontMAC_temp(0x49) 30 80.0 N/A N/A N/A False 20230215 17:46:48
MB_LeftCenter_temp(0x4A) 26 80.0 N/A N/A N/A False 20230215 17:46:48
MB_RearMAC_temp(0x48) 32.5 80.0 N/A N/A N/A False 20230215 17:46:48
PSU-1 temp sensor 1 0 N/A N/A N/A N/A False 20230215 17:46:48
PSU-2 temp sensor 1 31 N/A N/A N/A N/A False 20230215 17:46:48
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)