summaryrefslogtreecommitdiff
path: root/Redfish.md
diff options
context:
space:
mode:
authorGeorge Liu <liuxiwei@inspur.com>2022-10-06 03:57:11 +0300
committerEd Tanous <ed@tanous.net>2023-06-28 19:22:28 +0300
commitddceee0705182270d0643774d494df4a7f1d028f (patch)
tree0f37aaa685f777af552a55918d77256e6a75fade /Redfish.md
parent788fe6cfaef30f10e9ba9c6ad06b26d799225030 (diff)
downloadbmcweb-ddceee0705182270d0643774d494df4a7f1d028f.tar.xz
Add efficiency percent for PowerSupply
This commit is to add EfficiencyRatings/EfficiencyPercent information according to the Redfish PowerSupply schema. In the PDI model, it is assumed that all power supplies have the same Efficiency Rating. This implementation uses the xyz.openbmc_project.Control.PowerSupplyAttributes interface for all power supplies, similar to power.hpp. ref: http://redfish.dmtf.org/schemas/v1/PowerSupply.v1_5_0.json 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", "EfficiencyRatings": [ { "EfficiencyPercent": 90 } ], "FirmwareVersion": "383239323732", "Id": "powersupply0", "Location": { "PartLocation": { "ServiceLabel": "U78DA.ND0.WZS00F6-E0" } }, "Manufacturer": "", "Model": "51E9", "Name": "powersupply0", "PartNumber": "03KP466", "SerialNumber": "YL10KY26E073", "SparePartNumber": "03FP378", "Status": { "Health": "OK", "State": "Enabled" } } Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: Ic782676f9efb8434f1076e726ff0656d1c27d310 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 ca33c81cb8..347048dd5f 100644
--- a/Redfish.md
+++ b/Redfish.md
@@ -379,6 +379,8 @@ Fields common to all schemas
##### PowerSupply
+- EfficiencyRatings
+ - EfficiencyPercent
- FirmwareVersion
- Location
- Manufacturer