Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 1 | .. _BBSimAPI: |
| 2 | |
| 3 | BBSimAPI |
| 4 | -------- |
| 5 | |
Zack Williams | 4b0ef4d | 2019-12-18 14:25:20 -0700 | [diff] [blame] | 6 | BBSim exposes gRPC and REST APIs for external control of the simulated OLT. The |
| 7 | API is defined using the protocol buffer specification in |
| 8 | `api/bbsim/bbsim.proto`. |
| 9 | |
| 10 | By default, the gRPC server is started on port 50070 and the REST server is |
| 11 | started on port 50071. The following endpoints are currently defined: |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 12 | |
| 13 | .. openapi:: ../swagger/bbsim/bbsim.swagger.json |
| 14 | |
| 15 | Legacy BBSimAPI |
| 16 | --------------- |
| 17 | |
Zack Williams | 4b0ef4d | 2019-12-18 14:25:20 -0700 | [diff] [blame] | 18 | Additionally, a legacy API is available, defined in `api/legacy/bbsim.proto`. |
| 19 | This API is deprecated and will be removed once BBSim reaches feature parity |
| 20 | with the legacy version. |
| 21 | |
| 22 | By default, the legacy gRPC server is started on port 50072 and the |
| 23 | corresponding REST server is started on port 50073. The following endpoints are |
| 24 | currently defined: |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 25 | |
| 26 | .. openapi:: ../swagger/legacy/bbsim.swagger.json |