VOL-3741: Create per RPC Error Reason Enumeration

Change-Id: I4488a169d6cd1bdeff9cba898a1107dc1dbda928
diff --git a/protos/dmi/sw_management_service.proto b/protos/dmi/sw_management_service.proto
index 3dda39f..754a654 100644
--- a/protos/dmi/sw_management_service.proto
+++ b/protos/dmi/sw_management_service.proto
@@ -19,6 +19,11 @@
 }

 

 message GetSoftwareVersionInformationResponse {

+    enum Reason {

+        UNDEFINED_REASON = 0;

+        UNKNOWN_DEVICE = 1;

+        INTERNAL_ERROR = 2;

+    }

     Status status = 1;

     Reason reason = 2;

     SoftwareVersionInformation info = 3;

@@ -38,6 +43,14 @@
 }

 

 message ConfigResponse {

+    enum Reason {

+        UNDEFINED_REASON = 0;

+        UNKNOWN_DEVICE = 1;

+        INTERNAL_ERROR = 2;

+        ERROR_FETCHING_CONFIG = 3;

+        INVALID_CONFIG = 4;

+        OPERATION_ALREADY_IN_PROGRESS = 5;

+    }

     Status status = 1;

     Reason reason = 2;

 }