Himani Chawla | 7756374 | 2020-10-19 17:26:14 +0530 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame^] | 3 | option go_package = "github.com/opencord/voltha-protos/v5/go/core"; |
| 4 | option java_package = "org.opencord.voltha.core"; |
| 5 | |
| 6 | import "google/protobuf/empty.proto"; |
| 7 | import "voltha_protos/inter_container.proto"; |
| 8 | import "voltha_protos/common.proto"; |
| 9 | import "voltha_protos/device.proto"; |
| 10 | import "voltha_protos/health.proto"; |
Himani Chawla | 7756374 | 2020-10-19 17:26:14 +0530 | [diff] [blame] | 11 | |
| 12 | package voltha; |
| 13 | |
| 14 | message DeviceTransientState { |
| 15 | // Transient State for devices |
| 16 | enum Types { |
| 17 | // The transient state of the device is not set |
| 18 | NONE = 0; |
| 19 | // The state of the device in core is any state, i.e DELETING, DELETED, DELETE_FAILED, NONE. |
| 20 | // This state is only used for transitions. |
| 21 | ANY = 1; |
| 22 | // The device is in FORCE_DELETING state |
| 23 | FORCE_DELETING = 2; |
| 24 | // The device is getting deleted from adapter state |
| 25 | DELETING_FROM_ADAPTER = 3; |
| 26 | // The device is deleted from adapter and is getting deleted in core. |
| 27 | DELETING_POST_ADAPTER_RESPONSE = 4; |
| 28 | // State to represent that the device deletion is failed |
| 29 | DELETE_FAILED = 5; |
Maninder | 604e895 | 2021-04-15 17:13:29 +0530 | [diff] [blame] | 30 | // State to represent that reconcile is in progress |
| 31 | RECONCILE_IN_PROGRESS = 6; |
Himani Chawla | 7756374 | 2020-10-19 17:26:14 +0530 | [diff] [blame] | 32 | } |
| 33 | Types transient_state = 1; |
| 34 | } |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame^] | 35 | |
| 36 | service CoreService { |
| 37 | // in coreProxy interface |
| 38 | rpc GetHealthStatus(google.protobuf.Empty) returns (HealthStatus); |
| 39 | rpc RegisterAdapter (AdapterRegistration) returns (google.protobuf.Empty); |
| 40 | rpc DeviceUpdate (Device) returns (google.protobuf.Empty); |
| 41 | rpc PortCreated (Port) returns (google.protobuf.Empty); |
| 42 | rpc PortsStateUpdate (PortStateFilter) returns (google.protobuf.Empty); |
| 43 | rpc DeleteAllPorts (common.ID) returns (google.protobuf.Empty); |
| 44 | rpc GetDevicePort (PortFilter) returns (Port); |
| 45 | rpc ListDevicePorts (common.ID) returns (Ports); |
| 46 | rpc DeviceStateUpdate (DeviceStateFilter) returns (google.protobuf.Empty); |
| 47 | rpc DevicePMConfigUpdate (PmConfigs) returns (google.protobuf.Empty); |
| 48 | rpc ChildDeviceDetected (DeviceDiscovery) returns (Device); |
| 49 | rpc ChildDevicesLost (common.ID) returns (google.protobuf.Empty); |
| 50 | rpc ChildDevicesDetected (common.ID) returns (google.protobuf.Empty); |
| 51 | rpc GetDevice (common.ID) returns (Device); |
| 52 | rpc GetChildDevice (ChildDeviceFilter) returns (Device); |
| 53 | rpc GetChildDevices (common.ID) returns (Devices); |
| 54 | rpc SendPacketIn (PacketIn) returns (google.protobuf.Empty); |
| 55 | rpc DeviceReasonUpdate (DeviceReason) returns (google.protobuf.Empty); |
| 56 | rpc PortStateUpdate (PortState) returns (google.protobuf.Empty); |
| 57 | |
| 58 | // Additional API found in the Core - unused? |
| 59 | rpc ReconcileChildDevices (common.ID) returns (google.protobuf.Empty); |
| 60 | rpc GetChildDeviceWithProxyAddress (Device.ProxyAddress) returns (Device); |
| 61 | rpc GetPorts (PortFilter) returns (Ports); |
| 62 | rpc ChildrenStateUpdate (DeviceStateFilter) returns (google.protobuf.Empty); |
| 63 | rpc UpdateImageDownload (ImageDownload) returns (google.protobuf.Empty); |
| 64 | } |