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