blob: 972c21fb93d9ae7903aaf0aecd035acbe6365a9d [file] [log] [blame]
Zdravko Bozakov2da76342019-10-21 09:47:35 +02001# 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
15type: google.api.Service
16config_version: 3
17
18http:
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 Arya3b2df8c2020-03-18 12:17:28 +053026 - selector: bbsim.BBSim.RebootOlt
27 post: "/v1/olt/reboot"
Pragya Aryabd731ec2020-02-11 16:38:17 +053028
Zdravko Bozakov2da76342019-10-21 09:47:35 +020029 - selector: bbsim.BBSim.GetONUs
30 get: "/v1/olt/onus"
31 - selector: bbsim.BBSim.GetONU
32 get: "/v1/olt/onus/{SerialNumber}"
Pragya Aryabd731ec2020-02-11 16:38:17 +053033
Pragya Arya1cbefa42020-01-13 12:15:29 +053034 - selector: bbsim.BBSim.ShutdownONU
35 delete: "/v1/olt/onus/{SerialNumber}"
Pragya Aryabd731ec2020-02-11 16:38:17 +053036 - selector: bbsim.BBSim.ShutdownONUsOnPON
37 delete: "/v1/olt/port/{PonPortId}/onus"
38 - selector: bbsim.BBSim.ShutdownAllONUs
39 delete: "/v1/olt/onus"
40
Pragya Arya1cbefa42020-01-13 12:15:29 +053041 - selector: bbsim.BBSim.PoweronONU
42 post: "/v1/olt/onus/{SerialNumber}"
Pragya Aryabd731ec2020-02-11 16:38:17 +053043 - selector: bbsim.BBSim.PoweronONUsOnPON
44 post: "/v1/olt/port/{PonPortId}/onus"
45 - selector: bbsim.BBSim.PoweronAllONUs
46 post: "/v1/olt/onus"
47
Pragya Arya8bdb4532020-03-02 17:08:09 +053048 - selector: bbsim.BBSim.GetFlows
49 get: "/v1/olt/onus/{SerialNumber}/flows"
50 additional_bindings:
51 - get: "/v1/olt/flows"
Anand S Katti09541352020-01-29 15:54:01 +053052 - selector: bbsim.BBSim.GetOnuTrafficSchedulers
53 get: "/v1/olt/onus/{SerialNumber}/trafficschedulers"
Pragya Aryabd731ec2020-02-11 16:38:17 +053054
Matteo Scandoloc08a6082021-02-05 11:12:01 -080055 - selector: bbsim.BBSim.RestartEapol
Nitin Subramanian150f1bb2021-08-02 12:04:05 -070056 post: "/v1/olt/onus/{OnuSerialNumber}/eapol"
Matteo Scandoloc08a6082021-02-05 11:12:01 -080057 - selector: bbsim.BBSim.RestartDhcp
Nitin Subramanian150f1bb2021-08-02 12:04:05 -070058 post: "/v1/olt/onus/{OnuSerialNumber}/dhcp"
Matteo Scandoloc08a6082021-02-05 11:12:01 -080059 - selector: bbsim.BBSim.ChangeIgmpState
60 post: "/v1/olt/onus/{OnuReq.SerialNumber}/igmp/{SubActionVal}/{GroupAddress}"
61
Pragya Aryabd731ec2020-02-11 16:38:17 +053062 - selector: bbsim.BBSim.SetOnuAlarmIndication
63 post: "/v1/olt/onus/{SerialNumber}/alarms/{AlarmType}/{Status}"
Anand S Katti86552f92020-03-03 21:56:32 +053064 - selector: bbsim.BBSim.SetOltAlarmIndication
65 post: "/v1/olt/ports/{InterfaceType}/{InterfaceID}/alarms/los/{Status}"