blob: 184fcfa269d4f14b767af246a5f6b023f3dc6a35 [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
Matteo Scandoloe383d5d2019-10-25 14:47:27 -070013 operations.rst
Matteo Scandolo9f619492019-10-25 13:11:58 -070014 onu-state-machine.rst
15 development-dependencies.rst
16 bbr.rst
17 bbsimctl.rst
18
19
20Quickstart
21----------
22
23BBSim (a.k.a. BroadBand Simulator) is a tool designed to emulate an `Openolt <https://github.com/opencord/openolt>`_
24compatible device.
25
26In order to use BBSim you need to have:
27
28- a Kubernetes cluster
29- helm
30- a working installation of VOLTHA
31
32We strongly recommend the utilization of `kind-voltha <https://github.com/ciena/kind-voltha>`_ to setup such environment.
33
34Installation
35------------
36
37Once 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
43The 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
49Once 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
55Provision a BBSim OLT in VOLTHA
56-------------------------------
57
58Create 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
64Enable the device:
65
66.. code:: bash
67
68 voltctl device enable $(voltctl device list --filter Type~openolt -q)