All Projects → kytos → python-openflow

kytos / python-openflow

Licence: MIT license
Low level OpenFlow messages parser used by Kytos SDN Platform

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to python-openflow

zero-ui
ZeroUI - ZeroTier Controller Web UI - is a web user interface for a self-hosted ZeroTier network controller.
Stars: ✭ 432 (+881.82%)
Mutual labels:  sdn, sdn-controller
basebox
A tiny OpenFlow controller for OF-DPA switches.
Stars: ✭ 39 (-11.36%)
Mutual labels:  sdn, openflow
sfc app
Service Function Chaining Application for Ryu SDN controller
Stars: ✭ 25 (-43.18%)
Mutual labels:  sdn, openflow
pilot
Simple web-based SDN controller for family and friends
Stars: ✭ 33 (-25%)
Mutual labels:  sdn, sdn-controller
flowmanager
An SDN application that gives its user the ability to control flows in an OpenFlow network without coding.
Stars: ✭ 60 (+36.36%)
Mutual labels:  sdn, openflow
multipath
Multipath routing with Ryu and Pyretic SDN Controllers
Stars: ✭ 56 (+27.27%)
Mutual labels:  sdn, openflow
Mininet
Emulator for rapid prototyping of Software Defined Networks
Stars: ✭ 4,196 (+9436.36%)
Mutual labels:  sdn, openflow
Cloudsimsdn
CloudSimSDN is an SDN extension of CloudSim project to simulate SDN and SFC features in the context of a cloud data center.
Stars: ✭ 51 (+15.91%)
Mutual labels:  sdn
Kathara
A lightweight container-based network emulation system.
Stars: ✭ 139 (+215.91%)
Mutual labels:  sdn
Xdp
Package xdp allows one to use XDP sockets from the Go programming language.
Stars: ✭ 36 (-18.18%)
Mutual labels:  sdn
Ffho Salt Public
Salt-Orchestrated OpenSource based Software-Defined-Freifunk-Infrastructre-Network configuration :) Mirrored from https://git.ffho.net/FreifunkHochstift/ffho-salt-public
Stars: ✭ 12 (-72.73%)
Mutual labels:  sdn
Delta
PROJECT DELTA: SDN SECURITY EVALUATION FRAMEWORK
Stars: ✭ 55 (+25%)
Mutual labels:  sdn
Sdwannewhope
SD-WAN security and insecurity
Stars: ✭ 141 (+220.45%)
Mutual labels:  sdn
Sdwan Harvester
🌐 Automatically enumerate and fingerprint SD-WAN nodes on the internet
Stars: ✭ 42 (-4.55%)
Mutual labels:  sdn
opendaylight-sample-apps
Sample applications for use with OpenDaylight (https://www.opendaylight.org/)
Stars: ✭ 56 (+27.27%)
Mutual labels:  sdn
Computer Networking
Free resources for a self-taught education in Computer Networking
Stars: ✭ 201 (+356.82%)
Mutual labels:  sdn
Corebgp
CoreBGP is a BGP library written in Go that implements the BGP FSM with an event-driven, pluggable model.
Stars: ✭ 124 (+181.82%)
Mutual labels:  sdn
Multipath Sdn Controller
🎛 Multipath Software Defined Networking Controller which sets up multipath forwarding tables and adjusts them based on network measurements
Stars: ✭ 35 (-20.45%)
Mutual labels:  sdn
Terraform Provider Zerotier
Create, modify and destroy ZeroTier networks and members through Terraform.
Stars: ✭ 113 (+156.82%)
Mutual labels:  sdn
Yabgp
Yet Another BGP Python Implementation
Stars: ✭ 177 (+302.27%)
Mutual labels:  sdn

Overview

WARNING: As previously announced on our communication channels, the Kytos project will enter the "shutdown" phase on May 31, 2021. After this date, only critical patches (security and core bug fixes) will be accepted, and the project will be in "critical-only" mode for another six months (until November 30, 2021). For more information visit the FAQ at <https://kytos.io/faq>. We'll have eternal gratitude to the entire community of developers and users that made the project so far.

Experimental Openflow Tag Release License Build status Code coverage Code-quality score

python-openflow is a low level library to parse and create OpenFlow messages. If you want to read an OpenFlow packet from an open socket or send a message to an OpenFlow switch, this is your best friend. The main features are: high performance, short learning curve and free software license.

This library is part of Kytos project, but feel free to use this simple and intuitive library in other projects.

Attention!

python-openflow does not perform I/O operations. To communicate with a switch, you must write your own controller using this library or use our Kytos SDN Platform.

A quick start follows for you to check whether this project fits your needs. For a more detailed documentation, please check the python-openflow API Reference Manual.

Quick Start

Installing

In order to use this software please install python3.6 or greater into your environment beforehand.

We are doing a huge effort to make Kytos and its components available on all common distros. So, we recommend you to download it from your distro repository.

But if you are trying to test, develop or just want a more recent version of our software no problem: Download now, the latest release (it still a beta software), from our repository:

First you need to clone python-openflow repository:

$ git clone https://github.com/kytos/python-openflow.git

After cloning, the installation process is done by standard setuptools install procedure:

$ cd python-openflow
$ sudo python3 setup.py install

Alternatively, if you are a developer and want to install in develop mode:

$ cd python-openflow
$ pip3 install -r requirements/dev.txt

Basic Usage Example

See how it is easy to create a feature request message with this library. You can use ipython3 to get the advantages of autocompletion:

>>> from pyof.v0x01.controller2switch.features_request import FeaturesRequest
>>> request = FeaturesRequest()
>>> print(request.header.message_type)
Type.OFPT_FEATURES_REQUEST

If you need to send this message via socket, call the pack() method to get its binary representation to be sent through the network:

>>> binary_msg = request.pack()
>>> print(binary_msg)
b"\x01\x05\x00\x08\x14\xad'\x8d"
>>> # Use a controller (e.g. Kytos SDN controller) to send "binary_msg"

To parse a message, use the unpack() function:

>>> from pyof.utils import unpack
>>> binary_msg = b"\x01\x05\x00\x08\x14\xad'\x8d"
>>> msg = unpack(binary_msg)
>>> print(msg.header.version)
UBInt8(1) # OpenFlow 1.0
>>> print(msg.header.message_type)
Type.OFPT_FEATURES_REQUEST

Please, note that this library do not send or receive messages via socket. You have to create your own server to receive messages from switches. This library only helps you to handle OpenFlow messages in a more pythonic way.

Authors

For a complete list of authors, please open AUTHORS.rst file.

Contributing

If you want to contribute to this project, please read Kytos Documentation website.

License

This software is under MIT-License. For more information please read LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].