SEBA-841 importer to parse all status from redfish server for data collection purpose / remove demotest binary
SEBA-856 SendDeviceList- This API will add all devices in the list
SEBA-858 DeleteDeviceList- This API will remove all devices in the list
decouple add/remove event subscription routines and device data file update
remove 'protocol'
SEBA-874 get rid of the 'vendor' argument called by some API's
Change-Id: Icc044dd4661c3cc14f02ad1a5f52e18116da63aa
diff --git a/proto/importer.proto b/proto/importer.proto
index e7117b1..58d8772 100644
--- a/proto/importer.proto
+++ b/proto/importer.proto
@@ -10,8 +10,6 @@
message DeviceInfo {
string ip_address = 1;
uint32 frequency = 2;
- string vendor = 3;
- string protocol = 4;
}
message GivenEventList {
@@ -28,26 +26,28 @@
uint32 Frequency = 2;
}
-message VendorInfo {
- string Vendor = 1;
-}
-
message Device {
string IpAddress = 1;
}
-message DeviceList {
- repeated string ip = 1;
-}
-
message Empty {}
+message DeviceList {
+ repeated DeviceInfo device = 1;
+}
+
+message DeviceListByIp {
+ repeated string Ip = 1;
+}
+
service device_management {
- rpc SendDeviceInfo(DeviceInfo) returns (google.protobuf.Empty) {}
+ rpc SendDeviceList(DeviceList) returns (google.protobuf.Empty) {}
+
+ rpc DeleteDeviceList(DeviceListByIp) returns (google.protobuf.Empty) {}
rpc SetFrequency(FreqInfo) returns (google.protobuf.Empty) {}
- rpc GetEventList(VendorInfo) returns (EventList) {}
+ rpc GetEventList(Device) returns (EventList) {}
rpc SubsrcribeGivenEvents(GivenEventList) returns (google.protobuf.Empty) {}
@@ -57,7 +57,7 @@
rpc ClearCurrentEventList(Device) returns (google.protobuf.Empty) {}
- rpc GetCurrentDevices(Empty) returns (DeviceList) {}
+ rpc GetCurrentDevices(Empty) returns (DeviceListByIp) {}
}