khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | option go_package = "github.com/opencord/voltha-protos/v5/go/core_service"; |
| 4 | option java_package = "org.opencord.voltha.core_service"; |
| 5 | option java_outer_classname = "VolthaCoreService"; |
| 6 | |
| 7 | package core_service; |
| 8 | |
| 9 | import "google/protobuf/empty.proto"; |
| 10 | import "voltha_protos/core_adapter.proto"; |
| 11 | import "voltha_protos/common.proto"; |
| 12 | import "voltha_protos/device.proto"; |
| 13 | import "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. |
| 17 | service CoreService { |
| 18 | // in coreProxy interface |
khenaidoo | 5cb0d40 | 2021-12-08 14:09:16 -0500 | [diff] [blame] | 19 | rpc GetHealthStatus(common.Connection) returns (health.HealthStatus); |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 20 | 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 | } |