From e1bd22d6036241309f84e79d5d80a1e06ab482e2 Mon Sep 17 00:00:00 2001 From: Adam Calabrigo Date: Tue, 15 Oct 2024 03:12:42 +0000 Subject: [PATCH] DARWIN48V: account for recent led_manager.json changes --- .../configs/darwin48v/led_manager.json | 49 ++++++++++++++++--- 1 file changed, 42 insertions(+), 7 deletions(-) diff --git a/fboss/platform/configs/darwin48v/led_manager.json b/fboss/platform/configs/darwin48v/led_manager.json index a25c303ebf876..09389b812e417 100644 --- a/fboss/platform/configs/darwin48v/led_manager.json +++ b/fboss/platform/configs/darwin48v/led_manager.json @@ -23,37 +23,72 @@ { "fruName": "FAN1", "fruType": "FAN", - "presenceSysfsPath": "/run/devmap/sensors/FAN_CPLD/fan1_present" + "presenceDetection": { + "sysfsFileHandle": { + "presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan1_present", + "desiredValue": 1 + } + } }, { "fruName": "FAN2", "fruType": "FAN", - "presenceSysfsPath": "/run/devmap/sensors/FAN_CPLD/fan2_present" + "presenceDetection": { + "sysfsFileHandle": { + "presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan2_present", + "desiredValue": 1 + } + } }, { "fruName": "FAN3", "fruType": "FAN", - "presenceSysfsPath": "/run/devmap/sensors/FAN_CPLD/fan3_present" + "presenceDetection": { + "sysfsFileHandle": { + "presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan3_present", + "desiredValue": 1 + } + } }, { "fruName": "FAN4", "fruType": "FAN", - "presenceSysfsPath": "/run/devmap/sensors/FAN_CPLD/fan4_present" + "presenceDetection": { + "sysfsFileHandle": { + "presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan4_present", + "desiredValue": 1 + } + } }, { "fruName": "FAN5", "fruType": "FAN", - "presenceSysfsPath": "/run/devmap/sensors/FAN_CPLD/fan5_present" + "presenceDetection": { + "sysfsFileHandle": { + "presenceFilePath": "/run/devmap/sensors/FAN_CPLD/fan5_present", + "desiredValue": 1 + } + } }, { "fruName": "FAN6", "fruType": "FAN", - "presenceSysfsPath": "/run/devmap/fpgas/SCD_FPGA/rackmon_present" + "presenceDetection": { + "sysfsFileHandle": { + "presenceFilePath": "/run/devmap/sensors/SCD_FPGA/rackmon_present", + "desiredValue": 1 + } + } }, { "fruName": "PSU1", "fruType": "PSU", - "presenceSysfsPath": "/run/devmap/fpgas/SCD_FPGA/pem_present" + "presenceDetection": { + "sysfsFileHandle": { + "presenceFilePath": "/run/devmap/fpgas/SCD_FPGA/pem_present", + "desiredValue": 1 + } + } } ] }