blob: 72dad9b335122a44761cc439ea131d7ae788d5da [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}
donNewtonAlphaf7cc9992018-08-29 14:23:02 -040053
Author Namea594e632018-08-10 11:33:58 -040054message AddOntMessage{
donNewtonAlpha5234b132018-08-16 14:12:28 -040055 string CLLI=1;
56 int32 SlotNumber=2;
Author Namea594e632018-08-10 11:33:58 -040057 int32 PortNumber=3;
58 int32 OntNumber=4;
donNewtonAlpha4c0abcd2018-08-14 15:50:52 -040059 string SerialNumber=5;
Author Namea594e632018-08-10 11:33:58 -040060}
61message AddOntReturn{
62 bool Success=1;
Author Namea594e632018-08-10 11:33:58 -040063}
64
donNewtonAlphaf7cc9992018-08-29 14:23:02 -040065message DeleteOntMessage{
66 string CLLI=1;
67 int32 SlotNumber=2;
68 int32 PortNumber=3;
69 int32 OntNumber=4;
70 string SerialNumber=5;
71}
72message DeleteOntReturn{
73 bool Success=1;
74}
donNewtonAlpha5234b132018-08-16 14:12:28 -040075service AbstractOLT{
Author Namea594e632018-08-10 11:33:58 -040076 rpc CreateChassis(AddChassisMessage) returns (AddChassisReturn) {
77 option(google.api.http) = {
donNewtonAlpha5234b132018-08-16 14:12:28 -040078 post: "/v1/CreateAbstractChassis"
Author Namea594e632018-08-10 11:33:58 -040079 body:"*"
80 };
81 }
Author Namea594e632018-08-10 11:33:58 -040082 rpc CreateOLTChassis(AddOLTChassisMessage) returns (AddOLTChassisReturn) {
83 option(google.api.http) = {
donNewtonAlpha5234b132018-08-16 14:12:28 -040084 post: "/v1/CreateOLTChassis"
Author Namea594e632018-08-10 11:33:58 -040085 body:"*"
86 };
87 }
donNewtonAlpha5234b132018-08-16 14:12:28 -040088 rpc ProvisionOnt(AddOntMessage) returns (AddOntReturn) {
89 option(google.api.http) = {
90 post:"/v1/ProvsionOnt"
91 body:"*"
92 };
93 }
donNewtonAlphaf7cc9992018-08-29 14:23:02 -040094 rpc DeleteOnt(DeleteOntMessage) returns (DeleteOntReturn){
95 option(google.api.http)={
96 post:"/v1/DeleteOnt"
97 body:"*"
98 };
99 }
Author Namea594e632018-08-10 11:33:58 -0400100}
101