blob: 18e5fbc7f9b93b5e50d352a3e9da42212482ac74 [file] [log] [blame]
Matteo Scandoloef5d6f42020-07-27 16:46:38 -07001.. _quickstart:
2
3Quickstart
4==========
5
6This page contains a set of one liner useful to setup different VOLTHA use-cases on
7a Virtual pod emulating the PON through :doc:`BBSim <../bbsim/docs/source/index>`.
8
9For more information on how to setup a :doc:`physical POD <./pod_physical>` or
10use a :doc:`Virtual POD <./dev_virtual>` for development
11refer to the respective guides.
12
13Common setup
14------------
15
16In order to install VOLTHA you need to have ``golang`` and ``docker`` installed.
17
18.. code:: bash
19
20 export KINDVOLTHADIR=~/kind-voltha
21 mkdir $KINDVOLTHADIR
22 cd $KINDVOLTHADIR
23 curl -sSL https://raw.githubusercontent.com/opencord/kind-voltha/master/voltha --output ./voltha
24 chmod +x ./voltha
25
26Now select the use-case you want to deploy:
27
28ATT Workflow
29------------
30
31The ATT Workflow expects EAPOL based authentication and DHCP to be handled within
32the VOLTHA POD.
33
34.. code:: bash
35
36 cd $KINDVOLTHADIR
37 WITH_BBSIM="yes" WITH_EAPOL="yes" WITH_DHCP="yes" WITH_RADIUS="yes" CONFIG_SADIS="bbsim" ./voltha up
38
39DT Workflow
40------------
41
42The DT workflow does not require EAPOL based authentication or DHCP packet handling
43in the VOLTHA POD.
44
45.. code:: bash
46
47 cd $KINDVOLTHADIR
48 WITH_BBSIM="yes" WITH_EAPOL="no" WITH_DHCP="no" CONFIG_SADIS="bbsim" EXTRA_HELM_FLAGS="--set bbsim.sadisFormat=dt" ./voltha up
49
50TT Workflow
51------------
52
53The TT workflow does not require EAPOL based authentication but expects DHCP packets
54for multiple services to be handled within the POD.
55
56*Note that the TT workflow is not fully supported yet*
57
58.. code:: bash
59
60 cd $KINDVOLTHADIR
61 WITH_BBSIM="yes" WITH_EAPOL="no" WITH_DHCP="yes" CONFIG_SADIS="bbsim" EXTRA_HELM_FLAGS="--set bbsim.sadisFormat=tt" ./voltha up
62
63Post deploy actions
64-------------------
65
66Once the deployment completed, make sure to export the required ``environment``
67variables as ``kind-voltha`` outputs:
68
69.. code:: bash
70
71 export KUBECONFIG="/Users/teone/.kube/kind-config-voltha-minimal"
72 export VOLTCONFIG="/Users/teone/.volt/config-minimal"
73 export PATH=/Users/teone/kind-voltha/bin:$PATH
74
75Once you have the POD up and running you can refer to the :doc:`./operate` guide.
76
77For more information please check :doc:`kind-voltha page <../kind-voltha/README>`.