Skip to content

fix(chassis): discover the default chassis member dynamically #30

Description

@xibolun

Problem

The SDK defaults chassis APIs to identifier 1 and constructs /redfish/v1/Chassis/1. Some compliant BMCs expose a different member, for example /redfish/v1/Chassis/Self.

Expected behavior

When chassis_id is omitted, discover the default chassis from the RootService.Chassis collection member link. Preserve explicit identifiers supplied by callers, and construct derived paths from the discovered chassis @odata.id.

Acceptance criteria

  • A sole /redfish/v1/Chassis/Self member works with get_chassis() and chassis-derived APIs.
  • Runtime SDK paths do not hard-code /redfish/v1/Chassis/1.
  • Explicit caller-supplied chassis IDs remain supported.
  • Unit tests cover dynamic Self discovery.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions