VOL-3448: Introduce returning error for GetHWComponentInfo , GetMetric , GetSoftwareVersion APIs
Change-Id: Ia592bcc642ad5aa3b3891b8bdd1f9cf21bd51da2
diff --git a/protos/dmi/sw_management_service.proto b/protos/dmi/sw_management_service.proto
index 3a935d0..69de70d 100644
--- a/protos/dmi/sw_management_service.proto
+++ b/protos/dmi/sw_management_service.proto
@@ -3,6 +3,7 @@
option go_package = "github.com/opencord/device-management-interface/v3/go/dmi";
package dmi;
+import "dmi/commons.proto";
import "dmi/hw.proto";
import "dmi/sw_image.proto";
@@ -17,6 +18,12 @@
repeated ImageVersion standby_versions = 2;
}
+message GetSoftwareVersionInformationResponse {
+ Status status = 1;
+ Reason reason = 2;
+ SoftwareVersionInformation info = 3;
+}
+
message DownloadImageRequest {
Uuid device_uuid = 1;
ImageInformation image_info = 2;
@@ -24,7 +31,7 @@
service NativeSoftwareManagementService {
// Get the software version information of the Active and Standby images
- rpc GetSoftwareVersion(HardwareID) returns(SoftwareVersionInformation);
+ rpc GetSoftwareVersion(HardwareID) returns(GetSoftwareVersionInformationResponse);
// Downloads and installs the image in the standby partition, returns the status/progress of the Install
rpc DownloadImage(DownloadImageRequest) returns(stream ImageStatus);
@@ -35,7 +42,7 @@
rpc ActivateImage(HardwareID) returns(stream ImageStatus);
// Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby.
- // This API is to be used if operator wants to go back to the pervious software
+ // This API is to be used if operator wants to go back to the previous software
rpc RevertToStandbyImage(HardwareID) returns(stream ImageStatus);
// If needed we can add this later