diff options
author | George Liu <liuxiwei@inspur.com> | 2022-10-05 12:09:21 +0300 |
---|---|---|
committer | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | 2023-06-16 16:50:18 +0300 |
commit | 44845e5f7082a16d7f105e401c24ca68529baf81 (patch) | |
tree | 670d243223100fbd53fba54d7fbb6e743c6309f4 /Redfish.md | |
parent | 01a89a1f05f960fa91b7e90a641faa3850e3c3ff (diff) | |
download | bmcweb-44845e5f7082a16d7f105e401c24ca68529baf81.tar.xz |
Add ServiceLabel information for PowerSupply
This commit is to add Location/PartLocation/ServiceLabel information
according to the Redfish PowerSupply schema.
If the `xyz.openbmc_project.Inventory.Decorator.LocationCode`
interface does not exist, the ServiceLabel information property is
not displayed.
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",
"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"
}
}
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Icd0c21719bb01f481a8cd4c56bdb1a9ee047b047
Diffstat (limited to 'Redfish.md')
-rw-r--r-- | Redfish.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Redfish.md b/Redfish.md index dbbbfd1097..ca33c81cb8 100644 --- a/Redfish.md +++ b/Redfish.md @@ -380,6 +380,7 @@ Fields common to all schemas ##### PowerSupply - FirmwareVersion +- Location - Manufacturer - Model - PartNumber |