Matteo Scandolo | 84f7d48 | 2019-08-08 19:00:47 -0700 | [diff] [blame^] | 1 | // 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 | |
| 15 | syntax = "proto3"; |
| 16 | package bbsim; |
| 17 | |
| 18 | message PONPort { |
| 19 | int32 ID = 1; |
| 20 | string OperState = 2; |
| 21 | } |
| 22 | |
| 23 | message NNIPort { |
| 24 | int32 ID = 1; |
| 25 | string OperState = 2; |
| 26 | } |
| 27 | |
| 28 | message Olt { |
| 29 | int32 ID = 1; |
| 30 | string OperState = 2; |
| 31 | repeated NNIPort NNIPorts = 3; |
| 32 | repeated PONPort PONPorts = 4; |
| 33 | } |
| 34 | |
| 35 | message VersionNumber { |
| 36 | string version = 1; |
| 37 | string buildTime = 2; |
| 38 | string commitHash = 3; |
| 39 | string gitStatus = 4; |
| 40 | } |
| 41 | |
| 42 | message Empty {} |
| 43 | |
| 44 | service BBSim { |
| 45 | rpc Version(Empty) returns (VersionNumber) {} |
| 46 | rpc GetOlt(Empty) returns (Olt) {} |
| 47 | } |