Skip to content

redfish/v1/Systems/system contains link only to the first chassis from the chassis collection #225

@Kostr

Description

@Kostr

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions