From 34dfcb94afa2447965c7dd5b89274325ee2d0b88 Mon Sep 17 00:00:00 2001 From: George Liu Date: Wed, 5 Oct 2022 16:47:44 +0800 Subject: Add Status information for Power Supply This commit is to add PowerSupply State/Health status according to the Redfish PowerSupply schema. If the `xyz.openbmc_project.Inventory.Item` interface does not exist, the state status property is set to default "Present". If the `xyz.openbmc_project.State.Decorator.OperationalStatus` interface does not exist, the health status property is set to default "OK". ref: http://redfish.dmtf.org/schemas/v1/PowerSupply.v1_5_0.json Code that updates the OperationalStatus for all the inventory https://github.com/openbmc/openpower-vpd-parser/blob/ \ 3fb026386546cfd288ab4f86156c9aa0ffa145d6/ibm_vpd_app.cpp#L620 Tested: Validator passes curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassis/PowerSubsystem/ PowerSupplies/powersupply0 { "@odata.id": "/redfish/v1/Chassis/chassis/PowerSubsystem/ PowerSupplies/powersupply0", "@odata.type": "#PowerSupply.v1_5_0.PowerSupply", "Id": "powersupply0", "Name": "powersupply0", "Status": { "Health": "OK" "State": "Enabled" } } Signed-off-by: George Liu Change-Id: I121b665a4e605024644cc7c9392f88a71703481e Signed-off-by: Lakshmi Yadlapati --- Redfish.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Redfish.md') diff --git a/Redfish.md b/Redfish.md index c416a5476b..75121d9f9c 100644 --- a/Redfish.md +++ b/Redfish.md @@ -379,6 +379,8 @@ Fields common to all schemas ##### PowerSupply +- Status + ### /redfish/v1/EventService/ #### EventService -- cgit v1.2.3