blob: 12c89417863db733bc96ea73e570a2c83667397b [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
19message AddChassisMessage{
20 string CLLI =1;
21 string VCoreIP =2;
22 int32 VCorePort=3;
23}
Author Namea594e632018-08-10 11:33:58 -040024message AddChassisReturn{
25 string DeviceID = 1;
Author Namea594e632018-08-10 11:33:58 -040026}
27message AddOLTChassisMessage{
28 string CLLI=1;
29 string SlotIP=2;
30 fixed32 SlotPort=3;
31 string Hostname=4;
32 fixed32 NumPorts = 5;
33 bool Activate = 6;
34 enum OltDriver {
35 openoltDriver = 0;
36 asfvolt16Driver=1;
37 adtranDriver=2;
38 tibitsDriver=3;
39 }
40 OltDriver Driver=7;
41 enum OltType{
42 edgecore=0;
43 adtran=1;
44 tibit=2;
45 }
46 OltType Type=8;
47
48}
49message AddOLTChassisReturn {
50 string DeviceID =1;
51 string ChassisDeviceID =2;
Author Namea594e632018-08-10 11:33:58 -040052}
53message ActivateSlotMessage{
donNewtonAlpha8205a4d2018-08-16 18:27:20 -040054 string CLLI =1;
55 int32 SlotNumber = 2;
Author Namea594e632018-08-10 11:33:58 -040056}
57message ActivateSlotReturn{
58 bool Success = 1;
Author Namea594e632018-08-10 11:33:58 -040059}
60message AddOntMessage{
donNewtonAlpha5234b132018-08-16 14:12:28 -040061 string CLLI=1;
62 int32 SlotNumber=2;
Author Namea594e632018-08-10 11:33:58 -040063 int32 PortNumber=3;
64 int32 OntNumber=4;
donNewtonAlpha4c0abcd2018-08-14 15:50:52 -040065 string SerialNumber=5;
Author Namea594e632018-08-10 11:33:58 -040066}
67message AddOntReturn{
68 bool Success=1;
Author Namea594e632018-08-10 11:33:58 -040069}
70
donNewtonAlpha5234b132018-08-16 14:12:28 -040071service AbstractOLT{
Author Namea594e632018-08-10 11:33:58 -040072 rpc CreateChassis(AddChassisMessage) returns (AddChassisReturn) {
73 option(google.api.http) = {
donNewtonAlpha5234b132018-08-16 14:12:28 -040074 post: "/v1/CreateAbstractChassis"
Author Namea594e632018-08-10 11:33:58 -040075 body:"*"
76 };
77 }
Author Namea594e632018-08-10 11:33:58 -040078
Author Namea594e632018-08-10 11:33:58 -040079 rpc CreateOLTChassis(AddOLTChassisMessage) returns (AddOLTChassisReturn) {
80 option(google.api.http) = {
donNewtonAlpha5234b132018-08-16 14:12:28 -040081 post: "/v1/CreateOLTChassis"
Author Namea594e632018-08-10 11:33:58 -040082 body:"*"
83 };
84 }
Author Namea594e632018-08-10 11:33:58 -040085 rpc EnableSlot(ActivateSlotMessage) returns (ActivateSlotReturn){
86 option(google.api.http) = {
donNewtonAlpha5234b132018-08-16 14:12:28 -040087 post: "/v1/EnableSlot"
Author Namea594e632018-08-10 11:33:58 -040088 body:"*"
89 };
90 }
donNewtonAlpha5234b132018-08-16 14:12:28 -040091 rpc ProvisionOnt(AddOntMessage) returns (AddOntReturn) {
92 option(google.api.http) = {
93 post:"/v1/ProvsionOnt"
94 body:"*"
95 };
96 }
Author Namea594e632018-08-10 11:33:58 -040097}
98