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

Uploaded Source

File details

Details for the file twink-0.3.tar.gz.

File metadata

  • Download URL: twink-0.3.tar.gz
  • Upload date:
  • Size: 52.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.6.6

File hashes

Hashes for twink-0.3.tar.gz
Algorithm Hash digest
SHA256 8912989a83c1cd9cf1bd8054c0d13ad05871cf5dd40609bdee9f0292223016ce
MD5 8fc2bc948a53d46de5d04ca80cd3a939
BLAKE2b-256 32a258965a3c31f83e15047a610d67a47b0858b729795a62c30bead0fb7c07b3

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