blob: 055acd9dfe3d82aba439b119c162a3c2bdd850cf [file] [log] [blame]
Zafer Kabanb0a16682018-12-04 11:16:24 +03001//Copyright 2017 the original author or authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6
7// http://www.apache.org/licenses/LICENSE-2.0
8
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16package api;
17import "google/api/annotations.proto";
18
19option java_multiple_files = true;
20option java_package = "org.onap.osam.grpc";
21option java_outer_classname = "AbstractOLTProto";
22
23message EchoMessage{
24 string Ping =1;
25}
26message EchoReplyMessage{
27 string Pong =1;
28}
29
30message AddChassisMessage{
31 string CLLI =1;
32 string XOSIP =2;
33 int32 XOSPort=3;
34 string XOSUser=4;
35 string XOSPassword=5;
36 int32 Rack=6;
37 int32 Shelf=7;
38}
39message AddChassisReturn{
40 string DeviceID = 1;
41}
42message ChangeXOSUserPasswordMessage{
43 string CLLI =1;
44 string XOSUser=2;
45 string XOSPassword=3;
46}
47message ChangeXOSUserPasswordReturn{
48 bool Success=1;
49}
50
51message AddOLTChassisMessage{
52 string CLLI=1;
53 string SlotIP=2;
54 fixed32 SlotPort=3;
55 string Hostname=4;
56 fixed32 NumPorts = 5;
57 bool Activate = 6;
58 enum OltDriver {
59 openoltDriver= 0;
60 asfvolt16Driver=1;
61 adtranDriver=2;
62 tibitsDriver=3;
63 }
64 OltDriver Driver=7;
65 enum OltType{
66 edgecore=0;
67 adtran=1;
68 tibit=2;
69 }
70 OltType Type=8;
71
72}
73message AddOLTChassisReturn {
74 string DeviceID =1;
75 string ChassisDeviceID =2;
76}
77
78message AddOntMessage{
79 string CLLI=1;
80 int32 SlotNumber=2;
81 int32 PortNumber=3;
82 int32 OntNumber=4;
83 string SerialNumber=5;
84}
85message PreProvisionOntMessage{
86 string CLLI=1;
87 int32 SlotNumber=2;
88 int32 PortNumber=3;
89 int32 OntNumber=4;
90 uint32 STag=5;
91 uint32 CTag=6;
92 string NasPortID=7;
93 string CircuitID=8;
94 string TechProfile=9;
95 string SpeedProfile=10;
96}
97message AddOntFullMessage{
98 string CLLI=1;
99 int32 SlotNumber=2;
100 int32 PortNumber=3;
101 int32 OntNumber=4;
102 string SerialNumber=5;
103 uint32 STag=6;
104 uint32 CTag=7;
105 string NasPortID=8;
106 string CircuitID=9;
107}
108message AddOntReturn{
109 bool Success=1;
110}
111
112message DeleteOntMessage{
113 string CLLI=1;
114 int32 SlotNumber=2;
115 int32 PortNumber=3;
116 int32 OntNumber=4;
117 string SerialNumber=5;
118}
119message DeleteOntReturn{
120 bool Success=1;
121}
122message ReflowMessage{
123}
124message ReflowReturn{
125 bool Success=1;
126}
127message OutputMessage{
128 string Something=1;
129}
130message OutputReturn{
131 bool Success=1;
132}
133message FullInventoryMessage{
134}
135message InventoryMessage{
136 string Clli=1;
137}
138message InventoryReturn{
139 string JsonDump=1;
140}
141service AbstractOLT{
142 rpc Echo(EchoMessage) returns (EchoReplyMessage){
143 option(google.api.http)={
144 post:"/v1/Echo"
145 body:"*"
146 };
147 }
148 rpc CreateChassis(AddChassisMessage) returns (AddChassisReturn) {
149 option(google.api.http) = {
150 post: "/v1/CreateAbstractChassis"
151 body:"*"
152 };
153 }
154 rpc ChangeXOSUserPassword(ChangeXOSUserPasswordMessage) returns(ChangeXOSUserPasswordReturn){
155 option(google.api.http)={
156 post:"/v1/ChangeXOSUserPassword"
157 body:"*"
158 };
159 }
160 rpc CreateOLTChassis(AddOLTChassisMessage) returns (AddOLTChassisReturn) {
161 option(google.api.http) = {
162 post: "/v1/CreateOLTChassis"
163 body:"*"
164 };
165 }
166 rpc PreProvisionOnt(PreProvisionOntMessage) returns (AddOntReturn) {
167 option(google.api.http) = {
168 post:"/v1/PreProvsionOnt"
169 body:"*"
170 };
171 }
172 rpc ActivateSerial(AddOntMessage) returns (AddOntReturn) {
173 option(google.api.http) = {
174 post:"/v1/ActivateSerial"
175 body:"*"
176 };
177 }
178 rpc ProvisionOnt(AddOntMessage) returns (AddOntReturn) {
179 option(google.api.http) = {
180 post:"/v1/ProvsionOnt"
181 body:"*"
182 };
183 }
184 rpc ProvisionOntFull(AddOntFullMessage) returns (AddOntReturn) {
185 option(google.api.http) = {
186 post:"/v1/ProvsionOtFull"
187 body:"*"
188 };
189 }
190 rpc DeleteOnt(DeleteOntMessage) returns (DeleteOntReturn){
191 option(google.api.http)={
192 post:"/v1/DeleteOnt"
193 body:"*"
194 };
195 }
196 rpc Reflow(ReflowMessage)returns (ReflowReturn){
197 option(google.api.http)={
198 post:"/v1/Reflow"
199 body:"*"
200
201 };
202 }
203 rpc Output(OutputMessage)returns(OutputReturn){
204 option(google.api.http)={
205 post:"/v1/Output"
206 body:"*"
207 };
208 }
209 rpc GetFullInventory(FullInventoryMessage)returns(InventoryReturn){
210 option(google.api.http)={
211 post:"/v1/FullInventory"
212 body:"*"
213 };
214 }
215 rpc GetInventory(InventoryMessage)returns(InventoryReturn){
216 option(google.api.http)={
217 post:"/v1/Inventory"
218 body:"*"
219 };
220 }
221}
222