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 |
| 18 | |
| 19 | |
| 20 | Quickstart |
| 21 | ---------- |
| 22 | |
| 23 | BBSim (a.k.a. BroadBand Simulator) is a tool designed to emulate an `Openolt <https://github.com/opencord/openolt>`_ |
| 24 | compatible device. |
| 25 | |
| 26 | In order to use BBSim you need to have: |
| 27 | |
| 28 | - a Kubernetes cluster |
| 29 | - helm |
| 30 | - a working installation of VOLTHA |
| 31 | |
| 32 | We strongly recommend the utilization of `kind-voltha <https://github.com/ciena/kind-voltha>`_ to setup such environment. |
| 33 | |
| 34 | Installation |
| 35 | ------------ |
| 36 | |
| 37 | Once VOLTHA is up and running, you can deploy BBSim with this command: |
| 38 | |
| 39 | .. code:: bash |
| 40 | |
| 41 | helm install -n bbsim cord/bbsim |
| 42 | |
| 43 | The BBSim installation can be customized to emulate multiple ONUs and multiple PON Ports: |
| 44 | |
| 45 | .. code:: bash |
| 46 | |
| 47 | helm install -n bbsim cord/bbsim --set onu=8 --set pon=2 |
| 48 | |
| 49 | Once BBSim is installed you can verify that it's running with: |
| 50 | |
| 51 | .. code:: bash |
| 52 | |
| 53 | kubectl logs -n voltha -f $(kubectl get pods -n voltha | grep bbsim | awk '{print $1}') |
| 54 | |
| 55 | Provision a BBSim OLT in VOLTHA |
| 56 | ------------------------------- |
| 57 | |
| 58 | Create the device: |
| 59 | |
| 60 | .. code:: bash |
| 61 | |
| 62 | voltctl device create -t openolt -H $(kubectl get -n voltha service/bbsim -o go-template='{{.spec.clusterIP}}'):50060 |
| 63 | |
| 64 | Enable the device: |
| 65 | |
| 66 | .. code:: bash |
| 67 | |
| 68 | voltctl device enable $(voltctl device list --filter Type~openolt -q) |