blob: f0929f44a00acf812c2ca5224c02535334e02e9c [file] [log] [blame]
khenaidoo4c6543e2021-10-19 17:25:58 -04001syntax = "proto3";
2
3option go_package = "github.com/opencord/voltha-protos/v5/go/core_service";
4option java_package = "org.opencord.voltha.core_service";
5option java_outer_classname = "VolthaCoreService";
6
7package core_service;
8
9import "google/protobuf/empty.proto";
10import "voltha_protos/core_adapter.proto";
11import "voltha_protos/common.proto";
12import "voltha_protos/device.proto";
13import "voltha_protos/health.proto";
14
15// The CoreService is a gRPC service implemented by the Voltha RW-Core for the
16// sole purpose of serving requests/updates from the Voltha adapters.
17service CoreService {
18 // in coreProxy interface
khenaidoo5cb0d402021-12-08 14:09:16 -050019 rpc GetHealthStatus(common.Connection) returns (health.HealthStatus);
khenaidoo4c6543e2021-10-19 17:25:58 -040020 rpc RegisterAdapter (core_adapter.AdapterRegistration) returns (google.protobuf.Empty);
21 rpc DeviceUpdate (device.Device) returns (google.protobuf.Empty);
22 rpc PortCreated (device.Port) returns (google.protobuf.Empty);
23 rpc PortsStateUpdate (core_adapter.PortStateFilter) returns (google.protobuf.Empty);
24 rpc DeleteAllPorts (common.ID) returns (google.protobuf.Empty);
25 rpc GetDevicePort (core_adapter.PortFilter) returns (device.Port);
26 rpc ListDevicePorts (common.ID) returns (device.Ports);
27 rpc DeviceStateUpdate (core_adapter.DeviceStateFilter) returns (google.protobuf.Empty);
28 rpc DevicePMConfigUpdate (device.PmConfigs) returns (google.protobuf.Empty);
29 rpc ChildDeviceDetected (core_adapter.DeviceDiscovery) returns (device.Device);
30 rpc ChildDevicesLost (common.ID) returns (google.protobuf.Empty);
31 rpc ChildDevicesDetected (common.ID) returns (google.protobuf.Empty);
32 rpc GetDevice (common.ID) returns (device.Device);
33 rpc GetChildDevice (core_adapter.ChildDeviceFilter) returns (device.Device);
34 rpc GetChildDevices (common.ID) returns (device.Devices);
35 rpc SendPacketIn (core_adapter.PacketIn) returns (google.protobuf.Empty);
36 rpc DeviceReasonUpdate (core_adapter.DeviceReason) returns (google.protobuf.Empty);
37 rpc PortStateUpdate (core_adapter.PortState) returns (google.protobuf.Empty);
38
39 // Additional API found in the Core - unused?
40 rpc ReconcileChildDevices (common.ID) returns (google.protobuf.Empty);
41 rpc GetChildDeviceWithProxyAddress (device.Device.ProxyAddress) returns (device.Device);
42 rpc GetPorts (core_adapter.PortFilter) returns (device.Ports);
43 rpc ChildrenStateUpdate (core_adapter.DeviceStateFilter) returns (google.protobuf.Empty);
44 rpc UpdateImageDownload (device.ImageDownload) returns (google.protobuf.Empty);
45}