Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 1 | .. BBSim documentation master file, created by |
| 2 | sphinx-quickstart on Fri Oct 25 12:03:42 2019. |
| 3 | You can adapt this file completely to your liking, but it should at least |
| 4 | contain the root `toctree` directive. |
| 5 | |
| 6 | Welcome to BBSim's documentation! |
| 7 | ================================= |
| 8 | |
| 9 | .. toctree:: |
| 10 | :maxdepth: 2 |
| 11 | :caption: Contents: |
| 12 | |
Matteo Scandolo | e383d5d | 2019-10-25 14:47:27 -0700 | [diff] [blame] | 13 | operations.rst |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 14 | onu-state-machine.rst |
| 15 | development-dependencies.rst |
| 16 | bbr.rst |
| 17 | bbsimctl.rst |
Zdravko Bozakov | 2da7634 | 2019-10-21 09:47:35 +0200 | [diff] [blame] | 18 | api.rst |
Matteo Scandolo | 9f61949 | 2019-10-25 13:11:58 -0700 | [diff] [blame] | 19 | |
| 20 | |
| 21 | Quickstart |
| 22 | ---------- |
| 23 | |
| 24 | BBSim (a.k.a. BroadBand Simulator) is a tool designed to emulate an `Openolt <https://github.com/opencord/openolt>`_ |
| 25 | compatible device. |
| 26 | |
| 27 | In order to use BBSim you need to have: |
| 28 | |
| 29 | - a Kubernetes cluster |
| 30 | - helm |
| 31 | - a working installation of VOLTHA |
| 32 | |
| 33 | We strongly recommend the utilization of `kind-voltha <https://github.com/ciena/kind-voltha>`_ to setup such environment. |
| 34 | |
| 35 | Installation |
| 36 | ------------ |
| 37 | |
| 38 | Once VOLTHA is up and running, you can deploy BBSim with this command: |
| 39 | |
| 40 | .. code:: bash |
| 41 | |
| 42 | helm install -n bbsim cord/bbsim |
| 43 | |
| 44 | The BBSim installation can be customized to emulate multiple ONUs and multiple PON Ports: |
| 45 | |
| 46 | .. code:: bash |
| 47 | |
| 48 | helm install -n bbsim cord/bbsim --set onu=8 --set pon=2 |
| 49 | |
| 50 | Once BBSim is installed you can verify that it's running with: |
| 51 | |
| 52 | .. code:: bash |
| 53 | |
| 54 | kubectl logs -n voltha -f $(kubectl get pods -n voltha | grep bbsim | awk '{print $1}') |
| 55 | |
| 56 | Provision a BBSim OLT in VOLTHA |
| 57 | ------------------------------- |
| 58 | |
| 59 | Create the device: |
| 60 | |
| 61 | .. code:: bash |
| 62 | |
| 63 | voltctl device create -t openolt -H $(kubectl get -n voltha service/bbsim -o go-template='{{.spec.clusterIP}}'):50060 |
| 64 | |
| 65 | Enable the device: |
| 66 | |
| 67 | .. code:: bash |
| 68 | |
| 69 | voltctl device enable $(voltctl device list --filter Type~openolt -q) |