aboutsummaryrefslogtreecommitdiffstats
path: root/docs/usage/intro.rst
blob: 7031c13ded5e2bebdad38bb4e55e68adada72fc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Introduction
############

It *should* be simple to use.
Once you have installed the Python module, few lines of code are needed to
onboard a Service:

.. code:: Python

   from onapsdk.vf import Vf
   from onapsdk.service import Service

   # We assume here that the VF has been already onboarded
   vf = VF(name="myVF")
   service = Service(name="myService", resources=[vf])
   service.onboard()