summaryrefslogtreecommitdiff
path: root/Redfish.md
diff options
context:
space:
mode:
authorGeorge Liu <liuxiwei@inspur.com>2022-10-05 11:47:44 +0300
committerLakshmi Yadlapati <lakshmiy@us.ibm.com>2023-06-13 17:18:48 +0300
commit34dfcb94afa2447965c7dd5b89274325ee2d0b88 (patch)
treec2f9b91d1943a4d687a741f4be4f4909588c0974 /Redfish.md
parentd4b054c15150535c8edaa1619a9e52c8148d7e19 (diff)
downloadbmcweb-34dfcb94afa2447965c7dd5b89274325ee2d0b88.tar.xz
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 <liuxiwei@inspur.com> Change-Id: I121b665a4e605024644cc7c9392f88a71703481e Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
Diffstat (limited to 'Redfish.md')
-rw-r--r--Redfish.md2
1 files changed, 2 insertions, 0 deletions
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