2 A python client for osm orchestration
8 ### Install dependencies
10 sudo apt-get install python-dev libcurl4-gnutls-dev python-pip libgnutls-dev python-prettytable
11 sudo pip install pycurl
14 ### Install python-osmclient
15 sudo pip install git+https://github.com/mfmarche/python-osmclient
21 snap install osmclient --channel=beta
25 Set the OSM_HOSTNAME variable to the host of the osm server.
29 localhost$ export OSM_HOSTNAME=<hostname>:8008
36 localhost$ osm upload-package ubuntu_xenial_vnf.tar.gz
37 {'transaction_id': 'ec12af77-1b91-4c84-b233-60f2c2c16d14'}
38 localhost$ osm vnfd-list
39 +--------------------+--------------------+
41 +--------------------+--------------------+
42 | ubuntu_xenial_vnfd | ubuntu_xenial_vnfd |
43 +--------------------+--------------------+
48 localhost$ osm upload-package ubuntu_xenial_ns.tar.gz
49 {'transaction_id': 'b560c9cb-43e1-49ef-a2da-af7aab24ce9d'}
50 localhost$ osm nsd-list
51 +-------------------+-------------------+
53 +-------------------+-------------------+
54 | ubuntu_xenial_nsd | ubuntu_xenial_nsd |
55 +-------------------+-------------------+
60 localhost$ osm vim-list
61 +-------------+-----------------+--------------------------------------+
62 | ro-account | datacenter name | uuid |
63 +-------------+-----------------+--------------------------------------+
64 | osmopenmano | openstack-site | 2ea04690-0e4a-11e7-89bc-00163e59ff0c |
65 +-------------+-----------------+--------------------------------------+
71 localhost$ osm ns-create ubuntu_xenial_nsd testns openstack-site
73 localhost$ osm ns-list
74 +------------------+--------------------------------------+-------------------+--------------------+---------------+
75 | ns instance name | id | catalog name | operational status | config status |
76 +------------------+--------------------------------------+-------------------+--------------------+---------------+
77 | testns | 6b0d2906-13d4-11e7-aa01-b8ac6f7d0c77 | ubuntu_xenial_nsd | running | configured |
78 +------------------+--------------------------------------+-------------------+--------------------+---------------+
82 python-osmclient uses [click](http://click.pocoo.org/5/). You can setup bash completion by putting this in your .bashrc:
84 eval "$(_OSM_COMPLETE=source osm)"