blob: f49023ba7bfd963c74b6c5b5545d2eed9a83e110 [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;
30 string OperState = 2;
31 repeated NNIPort NNIPorts = 3;
32 repeated PONPort PONPorts = 4;
33}
34
35message VersionNumber {
36 string version = 1;
37 string buildTime = 2;
38 string commitHash = 3;
39 string gitStatus = 4;
40}
41
42message Empty {}
43
44service BBSim {
45 rpc Version(Empty) returns (VersionNumber) {}
46 rpc GetOlt(Empty) returns (Olt) {}
47}