blob: 81a25f1f6a5fce3d255cb13800decf1021786893 [file] [log] [blame]
Matteo Scandolo84f7d482019-08-08 19:00:47 -07001// Copyright (c) 2018 Open Networking Foundation
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 bbsim;
17
18message PONPort {
19 int32 ID = 1;
20 string OperState = 2;
21}
22
23message NNIPort {
24 int32 ID = 1;
25 string OperState = 2;
26}
27
28message Olt {
29 int32 ID = 1;
Matteo Scandolo8df63df2019-09-12 10:34:32 -070030 string SerialNumber = 2;
31 string OperState = 3;
32 string InternalState = 4;
33 repeated NNIPort NNIPorts = 5;
34 repeated PONPort PONPorts = 6;
Matteo Scandolo9a3518c2019-08-13 14:36:01 -070035}
36
37message ONU {
38 int32 ID = 1;
39 string SerialNumber = 2;
40 string OperState = 3;
41 string InternalState = 4;
42 int32 PonPortID = 5;
Matteo Scandolo4b3fc7e2019-09-17 16:49:54 -070043 int32 STag = 6;
44 int32 CTag = 7;
45 string HwAddress = 8;
Matteo Scandolo9a3518c2019-08-13 14:36:01 -070046}
47
48message ONUs {
49 repeated ONU items = 1;
Matteo Scandolo84f7d482019-08-08 19:00:47 -070050}
51
52message VersionNumber {
53 string version = 1;
54 string buildTime = 2;
55 string commitHash = 3;
56 string gitStatus = 4;
57}
58
59message Empty {}
60
61service BBSim {
62 rpc Version(Empty) returns (VersionNumber) {}
63 rpc GetOlt(Empty) returns (Olt) {}
Matteo Scandolo9a3518c2019-08-13 14:36:01 -070064 rpc GetONUs(Empty) returns (ONUs) {}
Matteo Scandolo84f7d482019-08-08 19:00:47 -070065}