Skip to content

Commit

Permalink
bootz skip ownership check
Browse files Browse the repository at this point in the history
  • Loading branch information
xw-g committed Jul 11, 2023
1 parent e2799c0 commit fe6073e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions release/models/system/openconfig-system-bootz.yang
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ module openconfig-system-bootz {
oc-ext:catalog-organization "openconfig";
oc-ext:origin "openconfig";

revision "2023-07-11" {
description
"Introduce the support of skipping ownership validation.";
reference "1.1.0";
}

revision "2023-06-16" {
description
"Creation of bootz state paths needed for the service.";
Expand All @@ -38,15 +44,34 @@ module openconfig-system-bootz {
description
"Bootz protocol container for management of bootz protocol state.";

container config {
description
"Configuration parameters related to bootz service.";
uses validate-ownership;
}

container state {
config false;
description
"Operational state relating to the bootz service.";
uses bootz-state;
uses validate-ownership;
}
}
}

grouping validate-ownership {
description
"Configuration related to ownership validation";
leaf validate-ownership {
type boolean;
default true;
description
"This field controls if the device should validate the ownership in
the next bootz workflow";
}
}

grouping bootz-state {
description
"State parameters required to monitor bootz service.";
Expand Down Expand Up @@ -79,6 +104,7 @@ module openconfig-system-bootz {
enum BOOTZ_CONFIGURATION_APPLIED;
enum BOOTZ_OK;
enum BOOTZ_OV_INVALID;
enum BOOTZ_OV_SKIPPED;
enum BOOTZ_OS_UPGRADE_IN_PROGRESS;
enum BOOTZ_OS_UPGRADE_COMPLETE;
enum BOOTZ_OS_INVALID_IMAGE;
Expand All @@ -91,6 +117,7 @@ module openconfig-system-bootz {
BOOTZ_UNSPECIFIED <- system initial state
BOOTZ_SENT <- bootz request sent
BOOTZ_RECEIVED <- bootz response received
BOOTZ_OV_SKIPPED <- (if configured) OV validation is skipped.
BOOTZ_OS_UPGRADE_IN_PROGRESS <- (if needed)
BOOTZ_OS_UPGRADE_COMPLETE <- (if needed)
BOOTZ_CONFIGURATION_APPLIED <- bootz configuration applied
Expand All @@ -104,6 +131,15 @@ module openconfig-system-bootz {
description
"The timestamp of the last bootz attempt.";
}

leaf ownership-validated {
type boolean;
default false;
description
"This field indicates if the device has succesfully validated the
ownership in the latest bootz workflow.
This field MUST be reset to false when a new bootz workflow starts.";
}
}

augment "/oc-sys:system" {
Expand Down

0 comments on commit fe6073e

Please sign in to comment.