Skip to content

Add fan and temperature operational leaves to platform model - #1521

Open
Verma-Anukul wants to merge 4 commits into
openconfig:masterfrom
Verma-Anukul:platform-extension
Open

Add fan and temperature operational leaves to platform model#1521
Verma-Anukul wants to merge 4 commits into
openconfig:masterfrom
Verma-Anukul:platform-extension

Conversation

@Verma-Anukul

@Verma-Anukul Verma-Anukul commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add speed-percentage and direction to fan-state in openconfig-platform-fan.yang (0.2.1)
  • Add critical-high-threshold and critical-low-threshold to platform-component-temp-alarm-state in openconfig-platform.yang (0.32.1)

Motivation

These operational leaves belong in the canonical platform groupings rather than optional extension augments. Fan speed percentage, airflow direction, and temperature critical thresholds are standard platform telemetry.

References

https://www.cisco.com/c/en/us/td/docs/server_nw_virtual/2-5_release/command_reference/show.html#wp1121917
https://www.arista.com/en/um-eos/eos-environment-commands#xzx_uSqda3zF3U
https://arubanetworking.hpe.com/techdocs/AOS-CX/10.14/HTML/fundamentals_6200/Content/SysHW_cmds/sho-env-fan-10.htm
https://support.huawei.com/enterprise/en/doc/EDOC1100554480/c2f5c978/display-temperature
https://github.com/sonic-net/SONiC/blob/15e10c2a63a4b0543069bdd309721b83f23368c0/doc/pmon/pmon-chassis-design.md?plain=1#L333

Test plan

  • YANG modules compile with openconfig-platform dependencies
  • No breaking changes to existing platform model paths

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the openconfig-platform-ext YANG module to version 0.1.3, introducing fan speed-percentage and direction leaves, as well as critical high and low temperature threshold leaves under the component state. The review feedback suggests optimizing the speed-percentage leaf by using uint8 instead of uint32 since its range is restricted to 0..100, and enclosing the celsius unit strings in double quotes to maintain consistency with other unit definitions in the file.

Comment thread release/models/platform/openconfig-platform-ext.yang Outdated
Comment thread release/models/platform/openconfig-platform-ext.yang Outdated
Comment thread release/models/platform/openconfig-platform-ext.yang Outdated
@Verma-Anukul Verma-Anukul changed the title Add fan and temperature extension leaves to openconfig-platform-ext Add fan and temperature operational leaves to platform model Jul 21, 2026
Add speed-percentage (uint8, 0..100) and direction to fan-state in
openconfig-platform-fan.yang (0.2.1).

Add critical-high-threshold and critical-low-threshold to
platform-component-temp-alarm-state in openconfig-platform.yang
(0.32.1).

Signed-off-by: Verma-Anukul <anukulverma2013@gmail.com>
@Verma-Anukul

Copy link
Copy Markdown
Contributor Author

@dplore @ElodinLaarz @navaneethyv
Please review this PR

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant