blob: 2661cfbbd5ac6440ae38fd9fba58d8d08d393a07 [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 Aryabd731ec2020-02-11 16:38:17 +053026
Zdravko Bozakov2da76342019-10-21 09:47:35 +020027 - selector: bbsim.BBSim.GetONUs
28 get: "/v1/olt/onus"
29 - selector: bbsim.BBSim.GetONU
30 get: "/v1/olt/onus/{SerialNumber}"
Pragya Aryabd731ec2020-02-11 16:38:17 +053031
Pragya Arya1cbefa42020-01-13 12:15:29 +053032 - selector: bbsim.BBSim.ShutdownONU
33 delete: "/v1/olt/onus/{SerialNumber}"
Pragya Aryabd731ec2020-02-11 16:38:17 +053034 - selector: bbsim.BBSim.ShutdownONUsOnPON
35 delete: "/v1/olt/port/{PonPortId}/onus"
36 - selector: bbsim.BBSim.ShutdownAllONUs
37 delete: "/v1/olt/onus"
38
Pragya Arya1cbefa42020-01-13 12:15:29 +053039 - selector: bbsim.BBSim.PoweronONU
40 post: "/v1/olt/onus/{SerialNumber}"
Pragya Aryabd731ec2020-02-11 16:38:17 +053041 - selector: bbsim.BBSim.PoweronONUsOnPON
42 post: "/v1/olt/port/{PonPortId}/onus"
43 - selector: bbsim.BBSim.PoweronAllONUs
44 post: "/v1/olt/onus"
45
Pragya Arya8bdb4532020-03-02 17:08:09 +053046 - selector: bbsim.BBSim.GetFlows
47 get: "/v1/olt/onus/{SerialNumber}/flows"
48 additional_bindings:
49 - get: "/v1/olt/flows"
Anand S Katti09541352020-01-29 15:54:01 +053050 - selector: bbsim.BBSim.GetOnuTrafficSchedulers
51 get: "/v1/olt/onus/{SerialNumber}/trafficschedulers"
Pragya Aryabd731ec2020-02-11 16:38:17 +053052
53 - selector: bbsim.BBSim.SetOnuAlarmIndication
54 post: "/v1/olt/onus/{SerialNumber}/alarms/{AlarmType}/{Status}"
Anand S Katti86552f92020-03-03 21:56:32 +053055 - selector: bbsim.BBSim.SetOltAlarmIndication
56 post: "/v1/olt/ports/{InterfaceType}/{InterfaceID}/alarms/los/{Status}"