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

Meru800bfa: populate LED/FRU configs in led_manager.json #192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adamcalabrigo
Copy link
Contributor

Summary

For Meru800bfa platform, adds LED/FRU configs in led_manager.json. Also updates platform_manager.json to provide a unique ledId to each status LED.

Testing

Verified that data_corral_service loads correctly on Meru800bfa:

# ./data_corral_service -config_file=/tmp/led_manager.json
I0319 19:28:42.661546  3450 ConfigLib.cpp:48] Using config file: /tmp/led_manager.json
I0319 19:28:42.662206  3451 FruPresenceExplorer.cpp:25] Detecting presence of FRUs
I0319 19:28:42.663044  3451 FruPresenceExplorer.cpp:41] Detected that FAN1 is present
I0319 19:28:42.664000  3451 FruPresenceExplorer.cpp:41] Detected that FAN2 is present
I0319 19:28:42.665001  3451 FruPresenceExplorer.cpp:41] Detected that FAN3 is present
I0319 19:28:42.666000  3451 FruPresenceExplorer.cpp:41] Detected that FAN4 is present
I0319 19:28:42.667106  3451 FruPresenceExplorer.cpp:41] Detected that FAN5 is present
I0319 19:28:42.668005  3451 FruPresenceExplorer.cpp:41] Detected that FAN6 is present
I0319 19:28:42.669065  3451 FruPresenceExplorer.cpp:41] Detected that FAN7 is present
I0319 19:28:42.670005  3451 FruPresenceExplorer.cpp:41] Detected that FAN8 is present
I0319 19:28:42.671059  3451 FruPresenceExplorer.cpp:41] Detected that FAN9 is present
I0319 19:28:42.671997  3451 FruPresenceExplorer.cpp:41] Detected that FAN10 is present
I0319 19:28:42.673059  3451 FruPresenceExplorer.cpp:41] Detected that FAN11 is present
I0319 19:28:42.674004  3451 FruPresenceExplorer.cpp:41] Detected that FAN12 is present
I0319 19:28:42.674075  3451 FruPresenceExplorer.cpp:41] Detected that PSU1 is present
I0319 19:28:42.674117  3451 FruPresenceExplorer.cpp:41] Detected that PSU2 is present
I0319 19:28:42.674155  3451 FruPresenceExplorer.cpp:41] Detected that PSU3 is present
I0319 19:28:42.674191  3451 FruPresenceExplorer.cpp:41] Detected that PSU4 is present
I0319 19:28:42.674236  3451 LedManager.cpp:45] Programming PSU LED with true
I0319 19:28:42.674343  3451 LedManager.cpp:80] Wrote 1 to file /sys/class/leds/status_led3:green:status/brightness
I0319 19:28:42.674406  3451 LedManager.cpp:80] Wrote 0 to file /sys/class/leds/status_led3:red:status/brightness
I0319 19:28:42.674427  3451 LedManager.cpp:55] Programmed PSU LED with presence true
I0319 19:28:42.674447  3451 LedManager.cpp:45] Programming FAN LED with true
I0319 19:28:42.674501  3451 LedManager.cpp:80] Wrote 1 to file /sys/class/leds/status_led2:green:status/brightness
I0319 19:28:42.674556  3451 LedManager.cpp:80] Wrote 0 to file /sys/class/leds/status_led2:red:status/brightness
I0319 19:28:42.674575  3451 LedManager.cpp:55] Programmed FAN LED with presence true
I0319 19:28:42.674596  3451 LedManager.cpp:25] Programming system LED with true
I0319 19:28:42.674649  3451 LedManager.cpp:80] Wrote 1 to file /sys/class/leds/status_led1:green:status/brightness
I0319 19:28:42.674706  3451 LedManager.cpp:80] Wrote 0 to file /sys/class/leds/status_led1:red:status/brightness
I0319 19:28:42.674726  3451 LedManager.cpp:34] Programmed system LED with true

@facebook-github-bot
Copy link
Contributor

@joancaneus has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants