blob: e043b79f341977d816ac8db7a923ef22d4fd7769 [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
Matteo Scandolo82733152020-09-02 17:49:48 -070048 WITH_BBSIM="yes" WITH_EAPOL="no" WITH_DHCP="no" CONFIG_SADIS="bbsim" BBSIM_CFG="configs/bbsim-sadis-dt.yaml" ./voltha up
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070049
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
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070056.. code:: bash
57
58 cd $KINDVOLTHADIR
Matteo Scandolo82733152020-09-02 17:49:48 -070059 WITH_BBSIM="yes" WITH_EAPOL="no" WITH_DHCP="yes" CONFIG_SADIS="bbsim" BBSIM_CFG="configs/bbsim-sadis-tt.yaml" ./voltha up
Matteo Scandoloef5d6f42020-07-27 16:46:38 -070060
61Post deploy actions
62-------------------
63
64Once the deployment completed, make sure to export the required ``environment``
65variables as ``kind-voltha`` outputs:
66
67.. code:: bash
68
69 export KUBECONFIG="/Users/teone/.kube/kind-config-voltha-minimal"
70 export VOLTCONFIG="/Users/teone/.volt/config-minimal"
71 export PATH=/Users/teone/kind-voltha/bin:$PATH
72
73Once you have the POD up and running you can refer to the :doc:`./operate` guide.
74
75For more information please check :doc:`kind-voltha page <../kind-voltha/README>`.