Git Product home page Git Product logo

openbaton-cli's Introduction

Python version of the Open Baton CLI

This project contains a vnfm sdk for python projects.

Technical Requirements

This section covers the requirements that must be met by the python-vnfm-sdk in order to satisfy the demands for such a component:

  • python 2.7
  • python 3.5

How to install the Open Baton CLI

The easier way to start is to use a virtual environment. Once activated, just run

pip install openbaton-cli

How to use the Open Baton CLI

After installing the CLI you have a new command:

./openbaton -h                                                                                                                                                                                                                                                                                                                                                  2 ↵
usage: openbaton [-h] [-pid PROJECT_ID] [-u USERNAME] [-p PASSWORD] [-d]
                 [-ip NFVO_IP] [--nfvo-port NFVO_PORT] [-s] [--format]
                 agent action [params [params ...]]

positional arguments:
  agent                 the agent you want to use. Possibilities are: ['project', 'vnfci',
                        'vdu', 'log', 'vnfd', 'csarnsd', 'nsd', 'csarvnfd', 'vim', 'vnfr',
                        'service', 'user', 'key', 'vnfpackage', 'nsr', 'event', 'market','vdu-nsd','script']
  action                the action you want to call. Possibilities are:
                        ['list', 'show', 'delete', 'create', 'update']
  params                The ID, file or JSON
  format                the output format you want to use. Possibilities are: ['table', 'json']

optional arguments:
  -h, --help            show this help message and exit
  -pid PROJECT_ID, --project-id PROJECT_ID
                        the project-id to use
  -u USERNAME, --username USERNAME
                        the openbaton username
  -p PASSWORD, --password PASSWORD
                        the openbaton password
  -d, --debug           show debug prints
  -ip NFVO_IP, --nfvo-ip NFVO_IP
                        the openbaton nfvo ip
  --nfvo-port NFVO_PORT
                        the openbaton nfvo port
  -s, --ssl             use HTTPS instead of HTTP
  --format              the expected output format

Where the agents are:

And actions are:

action description
list Request the list of agent's objects
show Show specific information of an object
create create the passed object
delete delete the specified object
update update the specified object

Issue tracker

Issues and bug reports should be posted to the GitHub Issue Tracker of this project

What is Open Baton?

OpenBaton is an open source project providing a comprehensive implementation of the ETSI Management and Orchestration (MANO) specification.

Open Baton is a ETSI NFV MANO compliant framework. Open Baton was part of the OpenSDNCore (www.opensdncore.org) project started almost three years ago by Fraunhofer FOKUS with the objective of providing a compliant implementation of the ETSI NFV specification.

Open Baton is easily extensible. It integrates with OpenStack, and provides a plugin mechanism for supporting additional VIM types. It supports Network Service management either using a generic VNFM or interoperating with VNF-specific VNFM. It uses different mechanisms (REST or PUB/SUB) for interoperating with the VNFMs. It integrates with additional components for the runtime management of a Network Service. For instance, it provides autoscaling and fault management based on monitoring information coming from the the monitoring system available at the NFVI level.

Source Code and documentation

The Source Code of the other Open Baton projects can be found here and the documentation can be found here .

News and Website

Check the Open Baton Website Follow us on Twitter @openbaton.

Licensing and distribution

Copyright [2015-2016] Open Baton project

Licensed under the Apache License, Version 2.0 (the "License");

you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2015-2016 Open Baton. Licensed under Apache v2 License.

Support

The Open Baton project provides community support through the Open Baton Public Mailing List and through StackOverflow using the tags openbaton.

Supported by

https://raw.githubusercontent.com/openbaton/openbaton.github.io/master/images/fokus.png

https://raw.githubusercontent.com/openbaton/openbaton.github.io/master/images/tu.png

openbaton-cli's People

Contributors

ananyajh avatar flaviomu avatar lorenzotomasini avatar mpauls avatar thomasbri avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gc4rella

openbaton-cli's Issues

scale out not working anymore

when trying to scale out:

(openbaton-cli) openbaton-cli|master ⇒ ./openbaton --format json vnfci create '{"vnfComponent":{"connection_point":[{"floatingIp":"random","interfaceId":0,"virtual_link_reference":"private"}]},"vimInstanceNames":["vim-instance"]}'

ERROR: usage: openbaton vnfci create <vnfcomponent> <nsr_id> <vnfr_id> [vdu_id [standby]]

(openbaton-cli) openbaton-cli|master ⇒
(openbaton-cli) openbaton-cli|master ⇒
(openbaton-cli) openbaton-cli|master ⇒
(openbaton-cli) openbaton-cli|master ⇒ ./openbaton --format json vnfci create 9c2c3f71-934c-42dc-9317-e5362172a212 2aa60e13-16be-43ec-bf9b-222ea20e12bd '{"vnfComponent":{"connection_point":[{"floatingIp":"random","interfaceId":0,"virtual_link_reference":"private"}]},"vimInstanceNames":["vim-instance"]}'

ERROR: 9c2c3f71-934c-42dc-9317-e5362172a212 is neither a file nor does it seem to be valid JSON

SSL Verification Failed

The openbaton-cli seems to work fine with http, but on https, I am getting a certificate verification failure when I run it.

Additional Info: I have both Python 2.7.12 as well as Python3 on this system. I have run it with Python 3.5.2 (python3 openbaton) but when I run it with Python 3 I get an import error (tabulate module). When I run it with Python 2 (python openbaton) it will work properly when nfvo configure on port 8080 with https, but not on port 8443 https (error below).

This might be related to Python Requests. I have considered issuing my own self-signed certificate and putting that into the pk12 file of the nfvo, but everything else in openbaton seems to be working just fine so I hesitate to do that. Anyone have any suggestions?

openbaton@ubuntu-openbaton:/opt/wittling/openbaton/develop-branch/openbaton-cli# env | grep OB
OB_NFVO_PORT=8443
OB_NFVO_IP=172.31.0.136
OB_PASSWORD=openbaton
OB_USERNAME=openbaton-user
OB_PROJECT_ID=b4cf42ce-3b12-40b7-9edf-a9c851f026ab
openbaton@ubuntu-openbaton:/opt/wittling/openbaton/develop-branch/openbaton-cli# ./openbaton -pid ${OB_PROJECT_ID} -u openbaton-user -p openbaton -d ip 172.31.0.136 --nfvo-port 8443 project list
usage: openbaton [-h] [-pid PROJECT_ID] [-u USERNAME] [-p PASSWORD] [-d]
[-ip NFVO_IP] [--nfvo-port NFVO_PORT]
{project,vnfci,vdu,log,vnfd,csarnsd,nsd,csarvnfd,vim,vnfr,service,user,key,vnfpackage,nsr,event,market}
{list,show,delete,create} [params [params ...]]
openbaton: error: argument agent: invalid choice: 'ip' (choose from 'project', 'vnfci', 'vdu', 'log', 'vnfd', 'csarnsd', 'nsd', 'csarvnfd', 'vim', 'vnfr', 'service', 'user', 'key', 'vnfpackage', 'nsr', 'event', 'market')
root@ubuntu-openbaton:/opt/wittling/openbaton/develop-branch/openbaton-cli# ./openbaton -pid ${OB_PROJECT_ID} -u openbaton-user -p openbaton -d -ip 172.31.0.136 --nfvo-port 8443 project list

DEBUG:org.openbaton.cli.MainAgent:username 'openbaton-user'
DEBUG:org.openbaton.cli.MainAgent:project_id 'b4cf42ce-3b12-40b7-9edf-a9c851f026ab'
DEBUG:org.openbaton.cli.MainAgent:nfvo_ip '172.31.0.136'
DEBUG:org.openbaton.cli.MainAgent:nfvo_port '8443'
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): 172.31.0.136

ERROR: HTTPSConnectionPool(host='172.31.0.136', port=8443): Max retries exceeded with url: /oauth/token (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.