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

[Edgecore][AS7326/PDDF] Enhance sonic_platform feature #13809

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

Conversation

jostar-yang
Copy link
Contributor

Why I did it

  1. Base on Adding PDDF common framework enhancements. #12863 and needed code to pass pytest.
  2. Add fan-wdt feature
  3. show platfomr pcieinfo will not show error message
  4. Modify sys_led define in pddf-device.json

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


       CB_temp(0x4B)           26.5       80.0       N/A             N/A            N/A      False  20230215 17:46:48

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)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

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)

@jostar-yang
Copy link
Contributor Author

PDDF sys_led new define base on below PR,
#13475
#13476
#13477
#13474

@jostar-yang
Copy link
Contributor Author

@FuzailBrcm , please help review


class Chassis(PddfChassis):
"""
PDDF Platform-specific Chassis class
"""

SYSLED_DEV_NAME = "DIAG_LED"
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

@lguohan lguohan added the device label Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants