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
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 8c53a2a..d1bfc5d 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 d4b0124..7c8fde3 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 @@
sys_log_id:
Action: 'On'
-sys_identify:
+enclosure_identify:
+ sys_log_id:
+ Action: 'On'
+
+enclosure_identify_blink:
sys_log_id:
Action: 'Blink'
DutyOn: 50