Skip to content

Commit

Permalink
s/upgrade/install to signify the new version may be higher or lower
Browse files Browse the repository at this point in the history
than the current version.
  • Loading branch information
ejbrever committed Jan 7, 2025
1 parent 5055ae4 commit 15ac77f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
36 changes: 18 additions & 18 deletions release/models/platform/openconfig-platform-types.yang
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ module openconfig-platform-types {

oc-ext:openconfig-version "1.9.0";

revision "2025-01-03" {
revision "2025-01-07" {
description
"Add OPENCONFIG_UPGRADE_STATUS";
"Add OPENCONFIG_INSTALL_STATUS";
reference "1.9.0";
}

Expand Down Expand Up @@ -569,39 +569,39 @@ module openconfig-platform-types {
"The component reboots due to critical errors.";
}

identity OPENCONFIG_UPGRADE_STATUS {
identity OPENCONFIG_INSTALL_STATUS {
description
"Base entity for component upgrade status.";
"Base entity for component install status.";
}

identity UPGRADE_FILE_LOADING {
base OPENCONFIG_UPGRADE_STATUS;
identity INSTALL_FILE_LOADING {
base OPENCONFIG_INSTALL_STATUS;
description
"The file is being loaded on the component.";
}

identity UPGRADE_IN_PROGRESS {
base OPENCONFIG_UPGRADE_STATUS;
identity INSTALL_IN_PROGRESS {
base OPENCONFIG_INSTALL_STATUS;
description
"The upgrade is in-progress.";
"The install is in-progress.";
}

identity UPGRADE_COMPLETE {
base OPENCONFIG_UPGRADE_STATUS;
identity INSTALL_COMPLETE {
base OPENCONFIG_INSTALL_STATUS;
description
"The upgrade was completed.";
"The install was completed.";
}

identity UPGRADE_ABORT {
base OPENCONFIG_UPGRADE_STATUS;
identity INSTALL_ABORT {
base OPENCONFIG_INSTALL_STATUS;
description
"The upgrade was aborted.";
"The install was aborted.";
}

identity UPGRADE_FAIL {
base OPENCONFIG_UPGRADE_STATUS;
identity INSTALL_FAIL {
base OPENCONFIG_INSTALL_STATUS;
description
"The upgrade failed.";
"The install failed.";
}

typedef component-redundant-role {
Expand Down
36 changes: 18 additions & 18 deletions release/models/platform/openconfig-platform.yang
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ module openconfig-platform {

oc-ext:openconfig-version "0.31.0";

revision "2025-01-03" {
revision "2025-01-07" {
description
"Add upgrade state information.";
"Add install state information.";
reference "0.31.0";
}

Expand Down Expand Up @@ -711,40 +711,40 @@ module openconfig-platform {

}

grouping platform-component-upgrade-state {
grouping platform-component-install-state {
description
"Upgrade state data for platform components";
"Install state data for platform components";

container upgrade {
container install {
description
"Top-level container for component upgrade state data";
"Top-level container for component install state data";

leaf new-version {
type string;
description
"This is the version that is available on the component,
but the upgrade is not complete or has not yet started.";
but the install is not complete or has not yet started.";
}

leaf new-version-service-impacting {
type boolean;
description
"A value of true indicates that upgrading would
"A value of true indicates that installing would
be a service impacting event.";
}

leaf status {
type identityref {
base oc-platform-types:OPENCONFIG_UPGRADE_STATUS;
base oc-platform-types:OPENCONFIG_INSTALL_STATUS;
}
description
"The status of the upgrade.";
"The status of the install.";
}

leaf step {
type string;
description
"Description of the current in-progress step of the upgrade.";
"Description of the current in-progress step of the install.";
}

leaf step-percent-complete {
Expand All @@ -756,34 +756,34 @@ module openconfig-platform {
leaf total-percent-complete {
type oc-types:percentage;
description
"The percent complete for the entire upgrade process.";
"The percent complete for the entire install process.";
}

leaf start-timestamp {
type oc-types:timeticks64;
description
"The timestamp when the upgrade started.";
"The timestamp when the install started.";
}

leaf duration {
type oc-yang:counter64;
units "seconds";
description
"The time elapsed since the upgrade was initiated or the
duration of the last upgrade. This is reported in seconds.";
"The time elapsed since the install was initiated or the
duration of the last install. This is reported in seconds.";
}

leaf stop-timestamp {
type oc-types:timeticks64;
description
"The timestamp when the upgrade stopped.";
"The timestamp when the install stopped.";
}

leaf last-known-failure {
type string;
description
"The reason of the last known failure, if the most recent
upgrade ended in failure.";
install ended in failure.";
}
}
}
Expand Down Expand Up @@ -1392,7 +1392,7 @@ module openconfig-platform {
"'oc-platform-types:INTEGRATED_CIRCUIT' or " +
"'oc-platform-types:FRU'";
}
uses platform-component-upgrade-state;
uses platform-component-install-state;
}

uses platform-component-properties-top;
Expand Down

0 comments on commit 15ac77f

Please sign in to comment.