Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 1 | # Copyright 2018-present 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 | type: google.api.Service |
| 16 | config_version: 3 |
| 17 | |
| 18 | http: |
| 19 | rules: |
| 20 | - selector: bbsim.BBSim.Version |
| 21 | get: "/v1/version" |
| 22 | - selector: bbsim.BBSim.GetOlt |
| 23 | get: "/v1/olt" |
| 24 | additional_bindings: |
| 25 | - get: "/v1/olt/status" |
Pragya Arya | 3b2df8c | 2020-03-18 12:17:28 +0530 | [diff] [blame] | 26 | - selector: bbsim.BBSim.RebootOlt |
| 27 | post: "/v1/olt/reboot" |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 28 | |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 29 | - selector: bbsim.BBSim.GetONUs |
| 30 | get: "/v1/olt/onus" |
| 31 | - selector: bbsim.BBSim.GetONU |
| 32 | get: "/v1/olt/onus/{SerialNumber}" |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 33 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 34 | - selector: bbsim.BBSim.ShutdownONU |
| 35 | delete: "/v1/olt/onus/{SerialNumber}" |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 36 | - selector: bbsim.BBSim.ShutdownONUsOnPON |
| 37 | delete: "/v1/olt/port/{PonPortId}/onus" |
| 38 | - selector: bbsim.BBSim.ShutdownAllONUs |
| 39 | delete: "/v1/olt/onus" |
| 40 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 41 | - selector: bbsim.BBSim.PoweronONU |
| 42 | post: "/v1/olt/onus/{SerialNumber}" |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 43 | - selector: bbsim.BBSim.PoweronONUsOnPON |
| 44 | post: "/v1/olt/port/{PonPortId}/onus" |
| 45 | - selector: bbsim.BBSim.PoweronAllONUs |
| 46 | post: "/v1/olt/onus" |
| 47 | |
Pragya Arya | 8bdb453 | 2020-03-02 17:08:09 +0530 | [diff] [blame] | 48 | - selector: bbsim.BBSim.GetFlows |
| 49 | get: "/v1/olt/onus/{SerialNumber}/flows" |
| 50 | additional_bindings: |
| 51 | - get: "/v1/olt/flows" |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame] | 52 | - selector: bbsim.BBSim.GetOnuTrafficSchedulers |
| 53 | get: "/v1/olt/onus/{SerialNumber}/trafficschedulers" |
Pragya Arya | bd731ec | 2020-02-11 16:38:17 +0530 | [diff] [blame] | 54 | |
| 55 | - selector: bbsim.BBSim.SetOnuAlarmIndication |
| 56 | post: "/v1/olt/onus/{SerialNumber}/alarms/{AlarmType}/{Status}" |
Anand S Katti | 86552f9 | 2020-03-03 21:56:32 +0530 | [diff] [blame] | 57 | - selector: bbsim.BBSim.SetOltAlarmIndication |
| 58 | post: "/v1/olt/ports/{InterfaceType}/{InterfaceID}/alarms/los/{Status}" |