Skip to content

openmano usage

Gerardo García edited this page Nov 28, 2016 · 9 revisions

This page is obsolete.

The project OpenMANO has been contributed to the open source community project Open Source MANO (OSM), hosted by ETSI.

Go to the URL osm.etsi.org to know more about OSM.


#Table of Contents#

#openmano client#

##Getting help##

$ openmano -h
$ usage: openmano [-h] [--version]
            {config,vnf-create,vnf-list,vnf-delete,scenario-create,scenario-list,scenario-delete,scenario-deploy,scenario-verify,instance-scenario-list,instance-scenario-delete,tenant-create,tenant-delete,tenant-list,datacenter-create,datacenter-delete,datacenter-list,datacenter-net-list,datacenter-edit,tenant-edit,datacenter-net-edit,datacenter-net-update,datacenter-net-delete,datacenter-netnet-delete,datacenter-attach,datacenter-detach}
            ...

You can get additional help for each command by running:

 openmano <command> help

##General commands##

openmano -h|--help            # show help message and exit
openmano --version            # show program's version number and exit
openmano config               # prints configuration values

##Setting environment variables##

Run 'openmano config' to check the current environment variables:

    ./openmano config                                #show openmano related variables

In order to change env variables, run:

    export OPENMANO_TENANT=<obtained uuid> 
    export OPENMANO_HOST=<http_host of openmanod.cfg>
    export OPENMANO_PORT=<http_port of openmanod.cfg>
    #Optionally you can configure OPENMANO_DATACENTER CLI variable,
    #but not needed if only one datacenter is present
    export OPENMANO_DATACENTER=<datacenter uuid>

You can also insert them at .bashrc for automatic loading at login:

    echo "export OPENMANO_TENANT=<...>" >> /home/${USER}/.bashrc
    echo "export OPENMANO_HOST=<...>" >> /home/${USER}/.bashrc
    echo "export OPENMANO_PORT=<...>" >> /home/${USER}/.bashrc

##VNFs##

##Network Scenarios##

##Running instances##

#openmano server#

##openmanod.cfg## #HTTP Server parameters (MANO API) http_host: 0.0.0.0 # IP address where openmano is listening (by default, 0.0.0.0 means that it will listen in all interfaces) http_port: 9090 # General port where openmano is listening (by default, 9090) http_admin_port: 9095 # Admin port where openmano is listening (when missing, no administration server is launched)

#database parameters
db_host: localhost                    # by default localhost
db_user: mano                         # DB user
db_passwd: manopw                     # DB password
db_name: mano_db                      # Name of the MANO DB

#other MANO parameters
vnf_repository: /home/user/workspace/openmano/openmano/vnfrepo   # Folder where the VNF descriptors will be stored