blob: 5101d08fa82a87885c07328da80fc3f5d5f34594 [file] [log] [blame]
# Copyright 2018-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
type: google.api.Service
config_version: 3
http:
rules:
- selector: bbsim.BBSim.Version
get: "/v1/version"
- selector: bbsim.BBSim.GetOlt
get: "/v1/olt"
additional_bindings:
- get: "/v1/olt/status"
- selector: bbsim.BBSim.RebootOlt
post: "/v1/olt/reboot"
- selector: bbsim.BBSim.GetONUs
get: "/v1/olt/onus"
- selector: bbsim.BBSim.GetONU
get: "/v1/olt/onus/{SerialNumber}"
- selector: bbsim.BBSim.ShutdownONU
delete: "/v1/olt/onus/{SerialNumber}"
- selector: bbsim.BBSim.ShutdownONUsOnPON
delete: "/v1/olt/port/{PonPortId}/onus"
- selector: bbsim.BBSim.ShutdownAllONUs
delete: "/v1/olt/onus"
- selector: bbsim.BBSim.PoweronONU
post: "/v1/olt/onus/{SerialNumber}"
- selector: bbsim.BBSim.PoweronONUsOnPON
post: "/v1/olt/port/{PonPortId}/onus"
- selector: bbsim.BBSim.PoweronAllONUs
post: "/v1/olt/onus"
- selector: bbsim.BBSim.GetFlows
get: "/v1/olt/onus/{SerialNumber}/flows"
additional_bindings:
- get: "/v1/olt/flows"
- selector: bbsim.BBSim.GetOnuTrafficSchedulers
get: "/v1/olt/onus/{SerialNumber}/trafficschedulers"
- selector: bbsim.BBSim.SetOnuAlarmIndication
post: "/v1/olt/onus/{SerialNumber}/alarms/{AlarmType}/{Status}"
- selector: bbsim.BBSim.SetOltAlarmIndication
post: "/v1/olt/ports/{InterfaceType}/{InterfaceID}/alarms/los/{Status}"