GithubHelp home page GithubHelp logo

bobeal / tng-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonata-nfv/tng-cli

0.0 1.0 0.0 203 KB

5GTANGO CLI interface for the V&V and Service platforms

License: Apache License 2.0

Python 100.00%

tng-cli's Introduction

Join the chat at https://gitter.im/sonata-nfv/Lobby Documentation Status

tng-cli

This repository contains two python3 packages:

  • tnglib is a library with functions that help a 5GTANGO user interface with the 5GTANGO Service Platform or V&V
  • tngcli wraps the tnglib library in a CLI-tool

Installation

To install both packages manually, with permissions:

git clone https://github.com/sonata-nfv/tng-cli.git
cd tng-cli
python3 setup.py install

Automated installation using pip3, with permissions:

pip3 install git+https://github.com/sonata-nfv/tng-cli

Usage

To use the library, add import tnglib to your python script. Documentation on all supported function calls can be found here

To use the CLI-tool, see its help for detailed information about all the arguments:

tng-cli -h

The tool supports a set of subcommands. For there usage, so the local subcommand help:

tng-cli <subcommand> -h

The tool needs to know which 5GTANGO Service Platform or V&V you want to interface with. For this, you should use the -u argument:

tng-cli -u <URL_TO_SP> package --list

As it is cumbersome to have to specify this argument for every command, you can make it available through the SP_PATH env parameter:

export SP_PATH=<URL_TO_SP>

It will than persist troughout your terminal session.

Examples

Some examples on how to use the CLI-tool.

To obtain a list of all available packages:

tng-cli package --list

To obtain a list of all running network services:

tng-cli service --instances

To instantiate a new network service:

tng-cli service --instantiate <SERVICE_UUID>

To upload a new policy descriptor:

tng-cli policy --create <PATH_TO_DESCRIPTOR>

License

This 5GTANGO component is published under Apache 2.0 license. Please see the LICENSE file for more details.


Lead Developers

The following lead developers are responsible for this repository and have admin rights. They can, for example, merge pull requests.

Feedback-Channel

  • Please use the GitHub issues to report bugs.

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.