[VOL-4694] Introduce error reason of DEVICE_IN_WRONG_STATE for RebootDevice rpc
Change-Id: I1f1cf50d28a59acce5594fc2a9d582ce8c0eb867
diff --git a/protos/dmi/hw_management_service.proto b/protos/dmi/hw_management_service.proto
index e98a0be..693e8d8 100644
--- a/protos/dmi/hw_management_service.proto
+++ b/protos/dmi/hw_management_service.proto
@@ -239,6 +239,8 @@
UNKNOWN_DEVICE = 1;
INTERNAL_ERROR = 2;
DEVICE_UNREACHABLE = 3;
+ DEVICE_IN_WRONG_STATE = 4; // This reason would be returned by the Device Manager if doing the reboot could lead the device to an inconsistent state.
+ // For example, if a RebootRequest is issued while the startup configuration is being updated
}
Status status = 3;
Reason reason = 4;