diff options
author | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | 2023-01-28 00:12:23 +0300 |
---|---|---|
committer | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | 2023-02-16 06:39:36 +0300 |
commit | 53ffeca5ae50e522338b9e167e5840bf967a429b (patch) | |
tree | 5f4e08837165d30baad433297ce4a76e1f579c9e /http/http_connection.hpp | |
parent | ee61a619da7f180a3148317d569d2dabd1cd9832 (diff) | |
download | bmcweb-53ffeca5ae50e522338b9e167e5840bf967a429b.tar.xz |
Add Location information for FabricAdapter
This commit is to add location information according to the Redfish
FabricAdapter schema. If the
`xyz.openbmc_project.Inventory.Decorator.LocationCode` interface does
not exist, the location information property is not displayed.
ref: http://redfish.dmtf.org/schemas/v1/FabricAdapter.v1_4_0.json
Tested: Validator passes
```
curl -k https://$bmc/redfish/v1/Systems/system/FabricAdapters/disk_backplane0
{
"@odata.id": "/redfish/v1/Systems/system/FabricAdapters/disk_backplane0",
"@odata.type": "#FabricAdapter.v1_4_0.FabricAdapter",
"Id": "disk_backplane0",
"Location": {
"PartLocation": {
"ServiceLabel": "U78DA.ND0.WZS0042-P1"
}
},
"Name": "Fabric Adapter"
}
```
Change-Id: I0dad37dce06e4727057d9821b5c40c71db004ee6
Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
Diffstat (limited to 'http/http_connection.hpp')
0 files changed, 0 insertions, 0 deletions