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
20 changes: 18 additions & 2 deletions release/models/system/openconfig-procmon.yang
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ module openconfig-procmon {
"This module provides data definitions for process health
monitoring of one or more processes running on the system.";

oc-ext:openconfig-version "0.4.0";
oc-ext:openconfig-version "0.5.0";

revision "2026-08-13" {
description
"Deprecate cpu-utilization and add cpu-utilization-pct as
uint32 to support multi-core systems where CPU utilization
can exceed 100 percent.";
reference "0.5.0";
}

revision "2019-03-15" {
description
Expand Down Expand Up @@ -153,9 +161,17 @@ module openconfig-procmon {
}

leaf cpu-utilization {
status deprecated;
type oc-types:percentage;
description
"The percentage of CPU that is being used by the process.";
"The percentage of CPU that is being used by the process.
This leaf is deprecated because its type constrains values
to 0-100, which is insufficient for multi-core systems.
Use cpu-utilization-pct instead.";
}

leaf cpu-utilization-pct {
Comment thread
navaneethyv marked this conversation as resolved.
type oc-types:multi-core-percentage;
}
Comment thread
charanjith-anet marked this conversation as resolved.

leaf memory-usage {
Expand Down
17 changes: 16 additions & 1 deletion release/models/types/openconfig-types.yang
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ module openconfig-types {
are used across OpenConfig models. It can be imported by modules
that make use of these types.";

oc-ext:openconfig-version "1.0.0";
oc-ext:openconfig-version "1.1.0";

revision "2026-08-13" {
description
"Add multi-core-percentage type.";
reference "1.1.0";
}

revision "2024-01-31" {
description
Expand Down Expand Up @@ -97,6 +103,15 @@ module openconfig-types {
"Integer indicating a percentage value";
}

typedef multi-core-percentage {
type uint32;
units "percent";
description
"The percentage of CPU that is being used by the process.
On multi-core systems, this value may exceed 100 percent,
up to 100 percent per core.";
}

typedef std-regexp {
type string;
description
Expand Down