blob: ad8f83a4a4056f03acc3af961e242360c7892da5 [file] [log] [blame]
Himani Chawla77563742020-10-19 17:26:14 +05301syntax = "proto3";
2
khenaidoo5fc5cea2021-08-11 17:39:16 -04003option go_package = "github.com/opencord/voltha-protos/v5/go/core";
4option java_package = "org.opencord.voltha.core";
5
6import "google/protobuf/empty.proto";
7import "voltha_protos/inter_container.proto";
8import "voltha_protos/common.proto";
9import "voltha_protos/device.proto";
10import "voltha_protos/health.proto";
Himani Chawla77563742020-10-19 17:26:14 +053011
12package voltha;
13
14message 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;
Maninder604e8952021-04-15 17:13:29 +053030 // State to represent that reconcile is in progress
31 RECONCILE_IN_PROGRESS = 6;
Himani Chawla77563742020-10-19 17:26:14 +053032 }
33 Types transient_state = 1;
34}
khenaidoo5fc5cea2021-08-11 17:39:16 -040035
36service 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}