diff options
author | George Liu <liuxiwei@inspur.com> | 2022-10-04 11:13:44 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2023-07-13 06:02:47 +0300 |
commit | 4a2e485d4d846ef7b6e03749795e9dc827b50ba1 (patch) | |
tree | f6517770145c81e92393ead1b650140dea2c3a5e /Redfish.md | |
parent | 090ae7ba35fef7157327f3a4686fec3e8a4df66f (diff) | |
download | bmcweb-4a2e485d4d846ef7b6e03749795e9dc827b50ba1.tar.xz |
Add Location information for Fan
This commit is to add Location/PartLocation/ServiceLabel information
according to the Redfish Fan schema.
If the `xyz.openbmc_project.Inventory.Decorator.LocationCode`
interface does not exist, the ServiceLabel information property is
not displayed.
ref: https://redfish.dmtf.org/schemas/v1/Fan.v1_3_0.json
Tested: Validator passes
'''
1. doGet method to get Fan ServiceLabel information
curl -k https://${bmc}/redfish/v1/Chassis/chassis/ThermalSubsystem/Fans/fan0
{
"@odata.id": "/redfish/v1/Chassis/chassis/ThermalSubsystem/Fans/fan0",
"@odata.type": "#Fan.v1_3_0.Fan",
"Id": "fan0",
"Manufacturer": "Delta",
"Model": "7B5F",
"Name": "Fan",
"PartNumber": "02YK323",
"SerialNumber": "YL12JP1C1234",
"Slot": {
"Location": {
"PartLocation": {
"ServiceLabel": "U78DB.ND0.WZS002U-A0"
}
}
},
"SparePartNumber": "02YK323",
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
'''
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I1c3357d6dde654c71c8384139b8e3f03cf671e4e
Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
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 d72a2f8933..cd03a7ca86 100644 --- a/Redfish.md +++ b/Redfish.md @@ -324,6 +324,7 @@ Fields common to all schemas #### Fan +- Location - Manufacturer - Model - PartNumber |