Skip to main content

Openflow library

Project description

twink

twink is a python openflow library.

twink uses plain openflow binary message instead of forcing you mastering a bundled complicated openflow protocol classes. You may use whatever openflow message parsing, building libraries. twink supports all openflow versions (1.0--1.4).

twink.threading provides a threading-based server implementation. You can get started with python standard libraries.

twink.gevent has a gevent based openflow server, so for example, you can create an openflow controller server with websocket support.

twink.ovs offers you ovs-ofctl based openflow message creation.

twink.ext provides utility functionalities.

For convenience, twink has ofp4 openflow 1.3 message parser/builder as twink.ofp4, and twink.ofp5 for openflow 1.4.

parallel and concurrency

twink.gevent or twink.threading enables openflow message parallel handling. While processing some openflow message with ovs-ofctl and suspend the process waiting for reply, another openflow message can be handled in another handler. If you use threading based controller, be sure using mutex.

server or client

It does not matter because Openflow protocol is symmetric in syntax. Not only creating server-controller or client-switch, twink helps creating server-switch and client-controller, which are not standard style. You can use this library even in python interactive mode. twink is useful in debugging openflow protocol. The most import part in creating server, is writing a handler function, which symbol is func(openflow_message, channel_instance) and passed to Channel class as handle member.

LICENSE

This software is licensed under Apache software license 2.0 http://www.apache.org/licenses/LICENSE-2.0

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

twink-0.3.tar.gz (52.3 kB view hashes)

Uploaded Source

Supported by

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