VOL-3282: Stop Managing device RPC
Change-Id: Id8fb08833e47dbb89275e0257f2e171682254756
diff --git a/protos/dmi/hw_management_service.proto b/protos/dmi/hw_management_service.proto
index 602aedf..abdcb4a 100644
--- a/protos/dmi/hw_management_service.proto
+++ b/protos/dmi/hw_management_service.proto
@@ -42,6 +42,15 @@
Uuid device_uuid = 3;
}
+message StopManagingDeviceRequest {
+ string name = 1;
+}
+
+message StopManagingDeviceResponse {
+ Status status = 1;
+ Reason reason = 2;
+}
+
service NativeHWManagementService {
// Initializes context for a device and sets up required states
// In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
@@ -54,6 +63,9 @@
// uri = IP Address of the Hardware;
rpc StartManagingDevice(ModifiableComponent) returns(stream StartManagingDeviceResponse);
+ // Stop management of a device and clean up any context and caches for that device
+ rpc StopManagingDevice(StopManagingDeviceRequest) returns(StopManagingDeviceResponse);
+
// Get the HW inventory details of the Device
rpc GetPhysicalInventory(PhysicalInventoryRequest) returns(stream PhysicalInventoryResponse);