fboss
fboss copied to clipboard
Meru800bfa: populate LED/FRU configs in led_manager.json
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
@joancaneus has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.