blob: 9acc4d55208fc004559d613212b33b1789e38243 [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
Zdravko Bozakov2da76342019-10-21 09:47:35 +020018 api.rst
Matteo Scandolo9f619492019-10-25 13:11:58 -070019
20
21Quickstart
22----------
23
24BBSim (a.k.a. BroadBand Simulator) is a tool designed to emulate an `Openolt <https://github.com/opencord/openolt>`_
25compatible device.
26
27In order to use BBSim you need to have:
28
29- a Kubernetes cluster
30- helm
31- a working installation of VOLTHA
32
33We strongly recommend the utilization of `kind-voltha <https://github.com/ciena/kind-voltha>`_ to setup such environment.
34
35Installation
36------------
37
38Once 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
44The 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
50Once 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
56Provision a BBSim OLT in VOLTHA
57-------------------------------
58
59Create 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
65Enable the device:
66
67.. code:: bash
68
69 voltctl device enable $(voltctl device list --filter Type~openolt -q)