Skip to content

Latest commit

 

History

History
89 lines (57 loc) · 2.05 KB

README.md

File metadata and controls

89 lines (57 loc) · 2.05 KB

trafgen-module-client

Traffic generator service for the NI project.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com//.git

(you may need to run pip with root permission: sudo pip install git+https://github.com//.git)

Then import the package:

import trafgen_module_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import trafgen_module_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import trafgen_module_client
from trafgen_module_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = trafgen_module_client.TrafgenApi(trafgen_module_client.ApiClient(configuration))
body = trafgen_module_client.SFCR() # SFCR | SFC request object to be added.

try:
    # Add new SFC request.
    api_instance.add_sfcr(body)
except ApiException as e:
    print("Exception when calling TrafgenApi->add_sfcr: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost:8080/v2

Class Method HTTP request Description
TrafgenApi add_sfcr POST /sfcr Add new SFC request.

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author