Skip to content

darkgerm/flow_injector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This program is designed for Floodlight Static Flow Pusher API.

Due to Floodlight Static Flow Pusher API is too difficult to use. This program provide a better UI and simple foolproof.

And also, this program is written in pure Python, so you can run it on Windows, too. (All you need is installing Python 2.x on Windows)

Ref: http://www.openflowhub.org/display/floodlightcontroller/Static+Flow+Pusher+API

Usage

Usage: ./flow_injector.py action config_file

action can be:

  • add
    Add all the flows in config_file. (POST /wm/staticflowentrypusher/json)
  • show
    Show all the flows on the switch. (GET /wm/staticflowentrypusher/list/)
  • clean
    Clean all the flows on the switch. (GET /wm/staticflowentrypusher/clear/)

config_file is in ini format. It requires server and port properties in controller section. The other sections are optinal. The name of the section means its name, the properties is same as Static Flow Pusher API.

Note

If all your flows have same property (ex: switch), you can specify them in DEFAULT section (see template.ini).

Future work

  1. More foolproof. (ip, mac format check, fields correctness)
  2. 'actions' fields foolproof.
  3. Move to Python3.

About

flow injector for floodlight

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages