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
Python 2.7 and 3.4+
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
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
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)
All URIs are relative to http://localhost:8080/v2
Class | Method | HTTP request | Description |
---|---|---|---|
TrafgenApi | add_sfcr | POST /sfcr | Add new SFC request. |
All endpoints do not require authorization.