Skip to content

Commit

Permalink
added CommitSetRollbackDuration action
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jan 9, 2024
1 parent 4423cef commit d95a6c5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions proto/gnmi_ext/gnmi_ext.proto
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ message Commit {
// cancel action will cancel an on-going commit, the ID provided during cancel
// should match the on-going commit ID.
CommitCancel cancel = 4;
// set rollback duration action sets the rollback duration of an on-going commit
// to a new value.
// The ID provided with the Commit message should match the on-going commit ID.
CommitSetRollbackDuration set_rollback_duration = 5;
}
}

Expand All @@ -131,3 +135,10 @@ message CommitConfirm {}
// CommitCancel is used to cancel an on-going commit. It hold additional
// parameter requried for cancel action.
message CommitCancel {}

// CommitSetRollbackDuration is used to set the existing rollback duration value
// of an on-going commit to a new desired value.
message CommitSetRollbackDuration {
// Maximum duration to wait for a confirmaton before reverting the commit.
google.protobuf.Duration rollback_duration = 1;
}

0 comments on commit d95a6c5

Please sign in to comment.