blob: 6da61c8376057efe21543641dadbc495a1391152 [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;
donNewtonAlpha1d2d6812018-09-14 16:00:02 -040023 int32 Rack=4;
24 int32 Shelf=5;
Author Namea594e632018-08-10 11:33:58 -040025}
Author Namea594e632018-08-10 11:33:58 -040026message AddChassisReturn{
27 string DeviceID = 1;
Author Namea594e632018-08-10 11:33:58 -040028}
29message AddOLTChassisMessage{
30 string CLLI=1;
31 string SlotIP=2;
32 fixed32 SlotPort=3;
33 string Hostname=4;
34 fixed32 NumPorts = 5;
35 bool Activate = 6;
36 enum OltDriver {
donNewtonAlpha1d2d6812018-09-14 16:00:02 -040037 openoltDriver= 0;
Author Namea594e632018-08-10 11:33:58 -040038 asfvolt16Driver=1;
39 adtranDriver=2;
40 tibitsDriver=3;
41 }
42 OltDriver Driver=7;
43 enum OltType{
44 edgecore=0;
45 adtran=1;
46 tibit=2;
47 }
48 OltType Type=8;
49
50}
51message AddOLTChassisReturn {
52 string DeviceID =1;
53 string ChassisDeviceID =2;
Author Namea594e632018-08-10 11:33:58 -040054}
donNewtonAlphaf7cc9992018-08-29 14:23:02 -040055
Author Namea594e632018-08-10 11:33:58 -040056message AddOntMessage{
donNewtonAlpha5234b132018-08-16 14:12:28 -040057 string CLLI=1;
58 int32 SlotNumber=2;
Author Namea594e632018-08-10 11:33:58 -040059 int32 PortNumber=3;
60 int32 OntNumber=4;
donNewtonAlpha4c0abcd2018-08-14 15:50:52 -040061 string SerialNumber=5;
Author Namea594e632018-08-10 11:33:58 -040062}
63message AddOntReturn{
64 bool Success=1;
Author Namea594e632018-08-10 11:33:58 -040065}
66
donNewtonAlphaf7cc9992018-08-29 14:23:02 -040067message DeleteOntMessage{
68 string CLLI=1;
69 int32 SlotNumber=2;
70 int32 PortNumber=3;
71 int32 OntNumber=4;
72 string SerialNumber=5;
73}
74message DeleteOntReturn{
75 bool Success=1;
76}
donNewtonAlpha5234b132018-08-16 14:12:28 -040077service AbstractOLT{
Author Namea594e632018-08-10 11:33:58 -040078 rpc CreateChassis(AddChassisMessage) returns (AddChassisReturn) {
79 option(google.api.http) = {
donNewtonAlpha5234b132018-08-16 14:12:28 -040080 post: "/v1/CreateAbstractChassis"
Author Namea594e632018-08-10 11:33:58 -040081 body:"*"
82 };
83 }
Author Namea594e632018-08-10 11:33:58 -040084 rpc CreateOLTChassis(AddOLTChassisMessage) returns (AddOLTChassisReturn) {
85 option(google.api.http) = {
donNewtonAlpha5234b132018-08-16 14:12:28 -040086 post: "/v1/CreateOLTChassis"
Author Namea594e632018-08-10 11:33:58 -040087 body:"*"
88 };
89 }
donNewtonAlpha5234b132018-08-16 14:12:28 -040090 rpc ProvisionOnt(AddOntMessage) returns (AddOntReturn) {
91 option(google.api.http) = {
92 post:"/v1/ProvsionOnt"
93 body:"*"
94 };
95 }
donNewtonAlphaf7cc9992018-08-29 14:23:02 -040096 rpc DeleteOnt(DeleteOntMessage) returns (DeleteOntReturn){
97 option(google.api.http)={
98 post:"/v1/DeleteOnt"
99 body:"*"
100 };
101 }
Author Namea594e632018-08-10 11:33:58 -0400102}
103