Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion release/models/platform/openconfig-platform-fan.yang
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ module openconfig-platform-fan {
"This module defines data related to FAN components in the
OpenConfig platform model.";

oc-ext:openconfig-version "0.2.0";
oc-ext:openconfig-version "0.3.0";

revision "2026-07-21" {
description
"Add fan speed-percentage and direction operational leaves.";
reference "0.3.0";
}

revision "2025-07-16" {
description
Expand Down Expand Up @@ -126,6 +132,32 @@ module openconfig-platform-fan {
description
"Current (instantaneous) fan speed";
}

leaf speed-percentage {
type uint8 {
range "0..100";
}
units "percent";
description
"Current fan speed as a percentage of maximum rated speed.
A value of 0 indicates the fan is stopped, and 100 indicates
maximum speed.";
}

leaf direction {
type enumeration {
enum intake {
description
"Fan airflow direction is intake (air drawn into the chassis).";
}
enum exhaust {
description
"Fan airflow direction is exhaust (air expelled from the chassis).";
}
}
description
"Current fan airflow direction.";
}
}

// data definition statements
Expand Down
26 changes: 25 additions & 1 deletion release/models/platform/openconfig-platform.yang
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ module openconfig-platform {
(presence or absence of a component) and state (physical
attributes or status).";

oc-ext:openconfig-version "0.32.0";
oc-ext:openconfig-version "0.33.0";

revision "2026-07-21" {
description
"Add critical high/low temperature threshold leaves.";
reference "0.33.0";
}

revision "2025-07-15" {
description
Expand Down Expand Up @@ -761,6 +767,24 @@ revision "2024-05-29" {
description
"The severity of the current alarm.";
}

leaf critical-high-threshold {
type decimal64 {
fraction-digits 1;
}
units celsius;
description
"Critical high temperature threshold for this sensor.";
}

leaf critical-low-threshold {
type decimal64 {
fraction-digits 1;
}
units celsius;
description
"Critical low temperature threshold for this sensor.";
}
}

grouping platform-component-power-state {
Expand Down