blob: 967511ef4b17c68d502b297268e0a76ee1d6e221 [file] [log] [blame]
khenaidoo5fc5cea2021-08-11 17:39:16 -04001syntax = "proto3";
2
3option go_package = "github.com/opencord/voltha-protos/v5/go/adapter_services";
4option java_package = "org.opencord.adapter_services";
5option java_outer_classname = "VolthaAdapterServices";
6
7package voltha;
8
9import "google/protobuf/empty.proto";
10import "voltha_protos/common.proto";
11import "voltha_protos/inter_container.proto";
12import "voltha_protos/device.proto";
13import "voltha_protos/extensions.proto";
14import "voltha_protos/openolt.proto";
15import "voltha_protos/health.proto";
16import "voltha_protos/voltha.proto";
17
18// Service waiting for Core requests
19service AdapterService {
20 // GetHealthStatus is used by an AdapterService client to verify connectivity
21 // to the gRPC server hosting the AdapterService service
22 rpc GetHealthStatus(google.protobuf.Empty) returns (HealthStatus);
23
24 // Device
25 rpc AdoptDevice(Device) returns(google.protobuf.Empty);
26 rpc ReconcileDevice(Device) returns(google.protobuf.Empty);
27 rpc DeleteDevice(Device) returns(google.protobuf.Empty);
28 rpc DisableDevice(Device) returns(google.protobuf.Empty);
29 rpc ReEnableDevice(Device) returns(google.protobuf.Empty);
30 rpc RebootDevice(Device) returns(google.protobuf.Empty);
31 rpc SelfTestDevice(Device) returns(google.protobuf.Empty);
32 rpc GetOfpDeviceInfo(Device) returns(SwitchCapability);
33 rpc ChildDeviceLost(Device) returns(google.protobuf.Empty);
34
35 // Ports
36 rpc EnablePort(Port) returns(google.protobuf.Empty);
37 rpc DisablePort(Port) returns(google.protobuf.Empty);
38
39 // Flows
40 rpc UpdateFlowsBulk(BulkFlows) returns(google.protobuf.Empty);
41 rpc UpdateFlowsIncrementally(IncrementalFlows) returns(google.protobuf.Empty);
42
43 //Packets
44 rpc SendPacketOut(PacketOut) returns(google.protobuf.Empty);
45
46 // PM
47 rpc UpdatePmConfig(PmConfigsInfo) returns(google.protobuf.Empty);
48
49 // Image
50 rpc DownloadOnuImage(DeviceImageDownloadRequest) returns (DeviceImageResponse);
51 rpc GetOnuImageStatus(DeviceImageRequest) returns (DeviceImageResponse);
52 rpc AbortOnuImageUpgrade(DeviceImageRequest) returns (DeviceImageResponse);
53 rpc GetOnuImages(common.ID) returns (OnuImages);
54 rpc ActivateOnuImage(DeviceImageRequest) returns (DeviceImageResponse);
55 rpc CommitOnuImage(DeviceImageRequest) returns (DeviceImageResponse);
56
57 // Deprecated Image APIs
58 rpc DownloadImage(ImageDownloadMessage) returns (ImageDownload);
59 rpc GetImageDownloadStatus(ImageDownloadMessage) returns (ImageDownload);
60 rpc CancelImageDownload(ImageDownloadMessage) returns (ImageDownload);
61 rpc ActivateImageUpdate(ImageDownloadMessage) returns (ImageDownload);
62 rpc RevertImageUpdate(ImageDownloadMessage) returns (ImageDownload);
63
64 // Tests
65 rpc StartOmciTest(OMCITest) returns(TestResponse);
66 rpc SimulateAlarm(SimulateAlarmMessage) returns (common.OperationResp);
67
68 // Events
69 rpc SuppressEvent(EventFilter) returns(google.protobuf.Empty);
70 rpc UnSuppressEvent(EventFilter) returns(google.protobuf.Empty);
71
72 // Get/Set
73 rpc GetExtValue(GetExtValueMessage) returns (common.ReturnValues);
74 rpc SetExtValue(SetExtValueMessage) returns (google.protobuf.Empty);
75 rpc GetSingleValue(extension.SingleGetValueRequest) returns (extension.SingleGetValueResponse);
76 rpc SetSingleValue(extension.SingleSetValueRequest) returns (extension.SingleSetValueResponse);
77}
78
79
80service OnuInterAdapterService {
81 // GetHealthStatus is used by an OnuInterAdapterService client to verify connectivity
82 // to the gRPC server hosting the OnuInterAdapterService service
83 rpc GetHealthStatus(google.protobuf.Empty) returns (HealthStatus);
84
85 rpc OnuIndication(OnuIndicationMessage) returns (google.protobuf.Empty);
86 rpc OmciIndication(OmciMessage) returns (google.protobuf.Empty);
87 rpc DownloadTechProfile(TechProfileDownloadMessage) returns (google.protobuf.Empty);
88 rpc DeleteGemPort(DeleteGemPortMessage) returns (google.protobuf.Empty);
89 rpc DeleteTCont(DeleteTcontMessage) returns (google.protobuf.Empty);
90}
91
92service OltInterAdapterService {
93 // GetHealthStatus is used by an OltInterAdapterService client to verify connectivity
94 // to the gRPC server hosting the OltInterAdapterService service
95 rpc GetHealthStatus(google.protobuf.Empty) returns (HealthStatus);
96
97 rpc ProxyOmciRequest(OmciMessage) returns (google.protobuf.Empty);
98 rpc GetTechProfileInstance(TechProfileInstanceRequestMessage) returns (TechProfileDownloadMessage);
99}