Skip to content

Add Chassis.get_cooling_type() API for liquid/air cooling detection#665

Open
shreyansh-nexthop wants to merge 1 commit into
sonic-net:masterfrom
nexthop-ai:shreyansh.redfish_as_a_feature
Open

Add Chassis.get_cooling_type() API for liquid/air cooling detection#665
shreyansh-nexthop wants to merge 1 commit into
sonic-net:masterfrom
nexthop-ai:shreyansh.redfish_as_a_feature

Conversation

@shreyansh-nexthop
Copy link
Copy Markdown

@shreyansh-nexthop shreyansh-nexthop commented May 13, 2026

Description

Adds a generic Chassis.get_cooling_type() API to ChassisBase so callers can ask "is this chassis liquid- or air-cooled?"

  • New constants on ChassisBase: COOLING_TYPE_LIQUID, COOLING_TYPE_AIR, COOLING_TYPE_UNKNOWN.
  • New virtual method get_cooling_type() — default returns COOLING_TYPE_UNKNOWN. Vendor Chassis subclasses override this to return the real value based on the platform signal.

Motivation and Context

Required by the redfish feature in sonic-buildimage - PR#27349-sonic-buildimage. The redfish docker should auto enable only on liquid-cooled BMC chassis.

How Has This Been Tested?

Did manual verification by loading the image on the BMC Card.

Additional Information (Optional)

Signed-off-by: shreyansh-nexthop <shreyansh@nexthop.ai>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants