Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 1 | .. _quickstart: |
| 2 | |
| 3 | Quickstart |
| 4 | ========== |
| 5 | |
| 6 | This page contains a set of one liner useful to setup different VOLTHA use-cases on |
| 7 | a Virtual pod emulating the PON through :doc:`BBSim <../bbsim/docs/source/index>`. |
| 8 | |
| 9 | For more information on how to setup a :doc:`physical POD <./pod_physical>` or |
| 10 | use a :doc:`Virtual POD <./dev_virtual>` for development |
| 11 | refer to the respective guides. |
| 12 | |
| 13 | Common setup |
| 14 | ------------ |
| 15 | |
| 16 | In 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 | |
| 26 | Now select the use-case you want to deploy: |
| 27 | |
| 28 | ATT Workflow |
| 29 | ------------ |
| 30 | |
| 31 | The ATT Workflow expects EAPOL based authentication and DHCP to be handled within |
| 32 | the 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 | |
| 39 | DT Workflow |
| 40 | ------------ |
| 41 | |
| 42 | The DT workflow does not require EAPOL based authentication or DHCP packet handling |
| 43 | in the VOLTHA POD. |
| 44 | |
| 45 | .. code:: bash |
| 46 | |
| 47 | cd $KINDVOLTHADIR |
Matteo Scandolo | 8273315 | 2020-09-02 17:49:48 -0700 | [diff] [blame] | 48 | WITH_BBSIM="yes" WITH_EAPOL="no" WITH_DHCP="no" CONFIG_SADIS="bbsim" BBSIM_CFG="configs/bbsim-sadis-dt.yaml" ./voltha up |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 49 | |
| 50 | TT Workflow |
| 51 | ------------ |
| 52 | |
| 53 | The TT workflow does not require EAPOL based authentication but expects DHCP packets |
| 54 | for multiple services to be handled within the POD. |
| 55 | |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 56 | .. code:: bash |
| 57 | |
| 58 | cd $KINDVOLTHADIR |
Matteo Scandolo | 8273315 | 2020-09-02 17:49:48 -0700 | [diff] [blame] | 59 | WITH_BBSIM="yes" WITH_EAPOL="no" WITH_DHCP="yes" CONFIG_SADIS="bbsim" BBSIM_CFG="configs/bbsim-sadis-tt.yaml" ./voltha up |
Matteo Scandolo | ef5d6f4 | 2020-07-27 16:46:38 -0700 | [diff] [blame] | 60 | |
| 61 | Post deploy actions |
| 62 | ------------------- |
| 63 | |
| 64 | Once the deployment completed, make sure to export the required ``environment`` |
| 65 | variables 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 | |
| 73 | Once you have the POD up and running you can refer to the :doc:`./operate` guide. |
| 74 | |
| 75 | For more information please check :doc:`kind-voltha page <../kind-voltha/README>`. |