Giter VIP home page Giter VIP logo

twink's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.