redfish/v1/Systems/system contains link only to the first chassis from the chassis collection.
Example: there are 3 chassis under redfish/v1/Chassis:
{
"@odata.id": "/redfish/v1/Chassis",
"@odata.type": "#ChassisCollection.ChassisCollection",
"Members": [
{
"@odata.id": "/redfish/v1/Chassis/AMD_EthanolX_Baseboard"
},
{
"@odata.id": "/redfish/v1/Chassis/SP3_Baseboard"
},
{
"@odata.id": "/redfish/v1/Chassis/AMD_EthanolX_Chassis"
}
],
"Members@odata.count": 3,
"Name": "Chassis Collection"
}
But redfish/v1/Systems/system contains link only to the first one:
"Links": {
"Chassis": [
{
"@odata.id": "/redfish/v1/Chassis/AMD_EthanolX_Baseboard"
}
],
"ManagedBy": [
{
"@odata.id": "/redfish/v1/Managers/bmc"
}
]
},
Relevant links to the code that is responsible for this behaviour:
https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/systems.hpp#L2748
|
std::string chassisId = subtree[0].first.substr(idPos + 1); |
redfish/v1/Systems/systemcontains link only to the first chassis from the chassis collection.Example: there are 3 chassis under
redfish/v1/Chassis:But
redfish/v1/Systems/systemcontains link only to the first one:Relevant links to the code that is responsible for this behaviour:
https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/systems.hpp#L2748
bmcweb/redfish-core/lib/redfish_util.hpp
Line 78 in b4bec66