blob: 1a0134b37937584fa2eb9af64ea575bedb6df305 [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;
43}
44
45message ONUs {
46 repeated ONU items = 1;
Matteo Scandolo84f7d482019-08-08 19:00:47 -070047}
48
49message VersionNumber {
50 string version = 1;
51 string buildTime = 2;
52 string commitHash = 3;
53 string gitStatus = 4;
54}
55
56message Empty {}
57
58service BBSim {
59 rpc Version(Empty) returns (VersionNumber) {}
60 rpc GetOlt(Empty) returns (Olt) {}
Matteo Scandolo9a3518c2019-08-13 14:36:01 -070061 rpc GetONUs(Empty) returns (ONUs) {}
Matteo Scandolo84f7d482019-08-08 19:00:47 -070062}