Skip to main content

A python library to make interacting with the HP SDN Controller REST API easy

Project description

HP SDN Client
=============

.. image:: https://badge.fury.io/py/hp-sdn-client.png
:target: http://badge.fury.io/py/hp-sdn-client

**A Python library that makes interaction with the HP SDN Controller REST API easy**

Author: Dave Tucker, Hewlett Packard

Documentation
_____________

Full documentation is available `here <https://hp-sdn-client.readthedocs.org/en/latest/index.html>`_

Usage Example
-------------

To use the library ::

import hpsdnclient as hp
controller = '10.44.254.129'
auth = hp.XAuthToken(user='sdn', password='skyline', server=controller)
api = hp.Api(controller=controller, auth=auth)

api.get_datapaths()


Sample Application
------------------

Please see examples/short_detour.py

Running the Tests
-----------------

The unit tests can be run with tox. Make sure you have modified hpsdnclient/tests/tests.py before you run ::

tox -e py27 -v -- -v

tox.ini has py26, py27 and py33 environments, but only py27 is supported today.

For functional testing, a working HP VAN SDN Controller is required. Mininet is used to generate a test topology.

Set your environment variables on your workstation and mininet VM as follows ::

export SDNCTL="10.44.254.129"
export SDNUSER="sdn"
export SDNPASS="skyline"

It is recommended to download the Mininet VM. On the VM, start the following topology ::

sudo mn --topo tree,2,6 --mac --switch ovsk --controller remote,ip=$SDNCTL

Run the functional tests using ::

tox -e functional

The functional test for applciation uploads requires access to the internet to donwload a sample appliction.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hp-sdn-client-1.0.2.tar.gz (633.9 kB view details)

Uploaded Source

File details

Details for the file hp-sdn-client-1.0.2.tar.gz.

File metadata

  • Download URL: hp-sdn-client-1.0.2.tar.gz
  • Upload date:
  • Size: 633.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hp-sdn-client-1.0.2.tar.gz
Algorithm Hash digest
SHA256 905f6e956abae649cec73a830fb23cd488573e95f38b60a8505500a9d2713cf2
MD5 7a4e595cf93328bea90ed18beaf53220
BLAKE2b-256 886dad6dbc255d712b74d7811574294a72cecb0138e95305c01b7262c9c590da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page