summaryrefslogtreecommitdiff
path: root/meta-facebook
diff options
context:
space:
mode:
authorPotin Lai <potin.lai@quantatw.com>2022-09-06 14:29:01 +0300
committerPatrick Williams <patrick@stwcx.xyz>2022-09-15 20:50:43 +0300
commit42020831939b32ad1d8ca4e19d239dfb69682332 (patch)
treea124f0efb21d6c7315c021c75b6055243894cbf6 /meta-facebook
parentb29dabd94bad1b3c849384691356d1a7a4b9a440 (diff)
downloadopenbmc-42020831939b32ad1d8ca4e19d239dfb69682332.tar.xz
meta-bletchley: fix enclosure identify feature on redfish
Add xyz.openbmc_project.Inventory.Item.Panel interfae into /system/chassis/bmc inventory object papth because bmcweb uses xyz.openbmc_project.Inventory.Item.Panel to determine if the FRU has LED indicators. Also add both enclosure_identify enclosure_identify_blink led group difinition in led.yaml, which are required by redfish. Tested Results: 1. Enable LED indicator [potin@localhost redfish-testing]$ curl -k -H "X-Auth-Token: $token" \ > -X PATCH https://$bmc_ip/redfish/v1/Chassis/bmc \ > -d '{"LocationIndicatorActive":true}' [potin@localhost redfish-testing]$ curl -k -H "X-Auth-Token: $token" \ > https://$bmc_ip/redfish/v1/Chassis/bmc 2>/dev/null \ > | grep Indicator "IndicatorLED": "Blinking", "LocationIndicatorActive": true, 2. Disable LED indicator [potin@localhost redfish-testing]$ curl -k -H "X-Auth-Token: $token" \ > -X PATCH https://$bmc_ip/redfish/v1/Chassis/bmc \ > -d '{"LocationIndicatorActive":false}' [potin@localhost redfish-testing]$ curl -k -H "X-Auth-Token: $token" \ > https://$bmc_ip/redfish/v1/Chassis/bmc 2>/dev/null \ > | grep Indicator "IndicatorLED": "Off", "LocationIndicatorActive": false, Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ice0fd7ab6fbdc82e87ac314396db4b33b313234b
Diffstat (limited to 'meta-facebook')
-rw-r--r--meta-facebook/meta-bletchley/recipes-phosphor/configuration/bletchley-yaml-config/bletchley-ipmi-fru.yaml3
-rw-r--r--meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config/led.yaml6
2 files changed, 7 insertions, 2 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/configuration/bletchley-yaml-config/bletchley-ipmi-fru.yaml b/meta-facebook/meta-bletchley/recipes-phosphor/configuration/bletchley-yaml-config/bletchley-ipmi-fru.yaml
index 8c53a2a7c1..d1bfc5d3ef 100644
--- a/meta-facebook/meta-bletchley/recipes-phosphor/configuration/bletchley-yaml-config/bletchley-ipmi-fru.yaml
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/configuration/bletchley-yaml-config/bletchley-ipmi-fru.yaml
@@ -26,6 +26,7 @@
IPMIFruSection: Board
xyz.openbmc_project.Inventory.Item.Board:
xyz.openbmc_project.Inventory.Item.Bmc:
+ xyz.openbmc_project.Inventory.Item.Panel:
/system/chassis/bmc/ethernet:
entityID: 7
@@ -35,4 +36,4 @@
MACAddress:
IPMIFruProperty: Custom Field 3
IPMIFruSection: Board
- xyz.openbmc_project.Inventory.Item.Ethernet: \ No newline at end of file
+ xyz.openbmc_project.Inventory.Item.Ethernet:
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config/led.yaml b/meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config/led.yaml
index d4b012414e..7c8fde3072 100644
--- a/meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config/led.yaml
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/leds/bletchley-led-manager-config/led.yaml
@@ -2,7 +2,11 @@ bmc_booted:
sys_log_id:
Action: 'On'
-sys_identify:
+enclosure_identify:
+ sys_log_id:
+ Action: 'On'
+
+enclosure_identify_blink:
sys_log_id:
Action: 'Blink'
DutyOn: 50