Skip to main content

HP SDN Client

https://travis-ci.org/dave-tucker/hp-sdn-client.png?branch=master https://badge.fury.io/py/hp-sdn-client.png https://coveralls.io/repos/dave-tucker/hp-sdn-client/badge.png

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

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()

Running with Docker

To run an interactive python prompt using Docker:

docker run -it davetucker/hp-sdn-client

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.

Metadata

Release files for hp-sdn-client 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hp-sdn-client 1.1.1
File Size Uploaded Provenance Actions
hp-sdn-client-1.1.1.tar.gz 36.6 kB Without provenance Details for hp-sdn-client-1.1.1.tar.gz

Release files / hp-sdn-client-1.1.1.tar.gz

Download URL hp-sdn-client-1.1.1.tar.gz
Size 36.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b8d40d6228b90e838fa89a34030c40f439b7a4cc2ef29781d8c75f74de411733
BLAKE2b-256 checksum
How to use checksums
1691a28262673bda3ece7bf89bf9a70b950733d1414cd51c684bd6d632a83d48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for hp-sdn-client 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page