blob: fb4aee749f47ea2d1d7d04aa8452491288f5d5a7 [file] [log] [blame]
Author Namea594e632018-08-10 11:33:58 -04001//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
donNewtonAlphab3279ea2018-09-18 15:55:32 -040019message EchoMessage{
20 string Ping =1;
21}
22message EchoReplyMessage{
23 string Pong =1;
24}
25
Author Namea594e632018-08-10 11:33:58 -040026message AddChassisMessage{
27 string CLLI =1;
28 string VCoreIP =2;
29 int32 VCorePort=3;
donNewtonAlpha1d2d6812018-09-14 16:00:02 -040030 int32 Rack=4;
31 int32 Shelf=5;
Author Namea594e632018-08-10 11:33:58 -040032}
Author Namea594e632018-08-10 11:33:58 -040033message AddChassisReturn{
34 string DeviceID = 1;
Author Namea594e632018-08-10 11:33:58 -040035}
36message AddOLTChassisMessage{
37 string CLLI=1;
38 string SlotIP=2;
39 fixed32 SlotPort=3;
40 string Hostname=4;
41 fixed32 NumPorts = 5;
42 bool Activate = 6;
43 enum OltDriver {
donNewtonAlpha1d2d6812018-09-14 16:00:02 -040044 openoltDriver= 0;
Author Namea594e632018-08-10 11:33:58 -040045 asfvolt16Driver=1;
46 adtranDriver=2;
47 tibitsDriver=3;
48 }
49 OltDriver Driver=7;
50 enum OltType{
51 edgecore=0;
52 adtran=1;
53 tibit=2;
54 }
55 OltType Type=8;
56
57}
58message AddOLTChassisReturn {
59 string DeviceID =1;
60 string ChassisDeviceID =2;
Author Namea594e632018-08-10 11:33:58 -040061}
donNewtonAlphaf7cc9992018-08-29 14:23:02 -040062
Author Namea594e632018-08-10 11:33:58 -040063message AddOntMessage{
donNewtonAlpha5234b132018-08-16 14:12:28 -040064 string CLLI=1;
65 int32 SlotNumber=2;
Author Namea594e632018-08-10 11:33:58 -040066 int32 PortNumber=3;
67 int32 OntNumber=4;
donNewtonAlpha4c0abcd2018-08-14 15:50:52 -040068 string SerialNumber=5;
Author Namea594e632018-08-10 11:33:58 -040069}
70message AddOntReturn{
71 bool Success=1;
Author Namea594e632018-08-10 11:33:58 -040072}
73
donNewtonAlphaf7cc9992018-08-29 14:23:02 -040074message DeleteOntMessage{
75 string CLLI=1;
76 int32 SlotNumber=2;
77 int32 PortNumber=3;
78 int32 OntNumber=4;
79 string SerialNumber=5;
80}
81message DeleteOntReturn{
82 bool Success=1;
83}
donNewtonAlpha5234b132018-08-16 14:12:28 -040084service AbstractOLT{
donNewtonAlphab3279ea2018-09-18 15:55:32 -040085 rpc Echo(EchoMessage) returns (EchoReplyMessage){
86 option(google.api.http)={
87 post:"/v1/Echo"
88 body:"*"
89 };
90 }
Author Namea594e632018-08-10 11:33:58 -040091 rpc CreateChassis(AddChassisMessage) returns (AddChassisReturn) {
92 option(google.api.http) = {
donNewtonAlpha5234b132018-08-16 14:12:28 -040093 post: "/v1/CreateAbstractChassis"
Author Namea594e632018-08-10 11:33:58 -040094 body:"*"
95 };
96 }
Author Namea594e632018-08-10 11:33:58 -040097 rpc CreateOLTChassis(AddOLTChassisMessage) returns (AddOLTChassisReturn) {
98 option(google.api.http) = {
donNewtonAlpha5234b132018-08-16 14:12:28 -040099 post: "/v1/CreateOLTChassis"
Author Namea594e632018-08-10 11:33:58 -0400100 body:"*"
101 };
102 }
donNewtonAlpha5234b132018-08-16 14:12:28 -0400103 rpc ProvisionOnt(AddOntMessage) returns (AddOntReturn) {
104 option(google.api.http) = {
105 post:"/v1/ProvsionOnt"
106 body:"*"
107 };
108 }
donNewtonAlphaf7cc9992018-08-29 14:23:02 -0400109 rpc DeleteOnt(DeleteOntMessage) returns (DeleteOntReturn){
110 option(google.api.http)={
111 post:"/v1/DeleteOnt"
112 body:"*"
113 };
114 }
Author Namea594e632018-08-10 11:33:58 -0400115}
116