Skip to content

Commit

Permalink
Meru800biab: Fix invalid led_manager config
Browse files Browse the repository at this point in the history
  • Loading branch information
aalamsi22 committed Dec 4, 2024
1 parent 31866dd commit d39c3ec
Showing 1 changed file with 77 additions and 47 deletions.
124 changes: 77 additions & 47 deletions fboss/platform/configs/meru800biab/led_manager.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,84 @@
{
"systemLedConfig": {
"systemLedConfig": {
"presentLedColor": 1,
"presentLedSysfsPath": "/sys/class/leds/sys_led:green:status/brightness",
"absentLedColor": 2,
"absentLedSysfsPath": "/sys/class/leds/sys_led:red:status/brightness"
},
"fruTypeLedConfigs": {
"FAN": {
"presentLedColor": 1,
"presentLedSysfsPath": "/sys/class/leds/sys_led:green:status/brightness",
"presentLedSysfsPath": "/sys/class/leds/fan_led:green:status/brightness",
"absentLedColor": 2,
"absentLedSysfsPath": "/sys/class/leds/sys_led:red:status/brightness"
"absentLedSysfsPath": "/sys/class/leds/fan_led:red:status/brightness"
},
"fruTypeLedConfigs": {
"FAN": {
"presentLedColor": 1,
"presentLedSysfsPath": "/sys/class/leds/fan_led:green:status/brightness",
"absentLedColor": 2,
"absentLedSysfsPath": "/sys/class/leds/fan_led:red:status/brightness"
},
"PSU": {
"presentLedColor": 1,
"presentLedSysfsPath": "/sys/class/leds/psu_led:green:status/brightness",
"absentLedColor": 2,
"absentLedSysfsPath": "/sys/class/leds/psu_led:red:status/brightness"
"PSU": {
"presentLedColor": 1,
"presentLedSysfsPath": "/sys/class/leds/psu_led:green:status/brightness",
"absentLedColor": 2,
"absentLedSysfsPath": "/sys/class/leds/psu_led:red:status/brightness"
}
},
"fruConfigs": [
{
"fruName": "FAN1",
"fruType": "FAN",
"presenceDetection": {
"sysfsFileHandle": {
"presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan1_present",
"desiredValue": 1
}
}
},
{
"fruName": "FAN2",
"fruType": "FAN",
"presenceDetection": {
"sysfsFileHandle": {
"presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan2_present",
"desiredValue": 1
}
}
},
{
"fruName": "FAN3",
"fruType": "FAN",
"presenceDetection": {
"sysfsFileHandle": {
"presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan3_present",
"desiredValue": 1
}
}
},
{
"fruName": "FAN4",
"fruType": "FAN",
"presenceDetection": {
"sysfsFileHandle": {
"presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan4_present",
"desiredValue": 1
}
}
},
{
"fruName": "PSU1",
"fruType": "PSU",
"presenceDetection": {
"sysfsFileHandle": {
"presenceFilePath": "/run/devmap/fpgas/MERU800BIA_SMB_FPGA/psu1_present",
"desiredValue": 1
}
}
},
"fruConfigs": [
{
"fruName": "FAN1",
"fruType": "FAN",
"presenceSysfsPath": "/run/devmap/sensors/FAN_CPLD/fan1_present"
},
{
"fruName": "FAN2",
"fruType": "FAN",
"presenceSysfsPath": "/run/devmap/sensors/FAN_CPLD/fan2_present"
},
{
"fruName": "FAN3",
"fruType": "FAN",
"presenceSysfsPath": "/run/devmap/sensors/FAN_CPLD/fan3_present"
},
{
"fruName": "FAN4",
"fruType": "FAN",
"presenceSysfsPath": "/run/devmap/sensors/FAN_CPLD/fan4_present"
},
{
"fruName": "PSU1",
"fruType": "PSU",
"presenceSysfsPath": "/run/devmap/fpgas/MERU800BIA_SMB_FPGA/psu1_present"
},
{
"fruName": "PSU2",
"fruType": "PSU",
"presenceSysfsPath": "/run/devmap/fpgas/MERU800BIA_SMB_FPGA/psu2_present"
{
"fruName": "PSU2",
"fruType": "PSU",
"presenceDetection": {
"sysfsFileHandle": {
"presenceFilePath": "/run/devmap/fpgas/MERU800BIA_SMB_FPGA/psu2_present",
"desiredValue": 1
}
}
]
}
}
]
}

0 comments on commit d39c3ec

Please sign in to comment.