Skip to content

Commit

Permalink
Update description of the model-name leaf. (#1160)
Browse files Browse the repository at this point in the history
* Indicate model-name is mandatory if component is removable or oc-platform-type:CHASSIS
  • Loading branch information
SydneyCaulfeild authored Sep 13, 2024
1 parent 2e49acd commit 27eabe3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
8 changes: 7 additions & 1 deletion release/models/platform/openconfig-platform-common.yang
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ submodule openconfig-platform-common {
"This modules contains common groupings that are used in multiple
components within the platform module.";

oc-ext:openconfig-version "0.27.0";
oc-ext:openconfig-version "0.28.0";

revision "2024-08-08" {
description
"Update description of model-name leaf.";
reference "0.28.0";
}

revision "2024-05-29" {
description
Expand Down
16 changes: 12 additions & 4 deletions 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.27.0";
oc-ext:openconfig-version "0.28.0";

revision "2024-08-08" {
description
"Update description of model-name leaf.";
reference "0.28.0";
}

revision "2024-05-29" {
description
Expand Down Expand Up @@ -540,11 +546,13 @@ module openconfig-platform {
}

leaf model-name {
when "../removable = 'true' or ../type = 'oc-platform-types:CHASSIS'";
mandatory true;
type string;
description
"A human readable string describing the model of a component.
This string is optional and should only be populated if part-no
is also populated.";
"Model name that would be found in a catalog of stock keeping
units (SKU) and should be the orderable name of the
component.";
}

leaf clei-code {
Expand Down

0 comments on commit 27eabe3

Please sign in to comment.