Skip to content

Commit

Permalink
Add the ability to return reboot result and failure information in Re…
Browse files Browse the repository at this point in the history
…bootStatusResponse message.
  • Loading branch information
akarshgupta25 committed Oct 27, 2023
1 parent 41783f0 commit d270bac
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions system/system.proto
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,19 @@ message RebootStatusResponse {
string reason = 4; // Reason for reboot.
uint32 count = 5; // Number of reboots since active.
RebootMethod method = 6; // Type of reboot.
bool success = 7; // If reboot operation was successful.
RebootFailureInfo fail_info = 8; // Failure information.
RebootStatus status = 7; // Applicable only when active = false.
}

message RebootFailureInfo {
string message = 1; // Error message.
bool fatal = 2; // If the failure is fatal.
message RebootStatus {
enum Status {
STATUS_UNKNOWN = 0;
STATUS_SUCCESS = 1;
STATUS_RETRIABLE_FAILURE = 2;
STATUS_FAILURE = 3;
}

Status status = 1;
string message = 2;
}

// A TimeRequest requests the current time accodring to the target.
Expand Down

0 comments on commit d270bac

Please sign in to comment.