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: ./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).
- More foolproof. (ip, mac format check, fields correctness)
- 'actions' fields foolproof.
- Move to Python3.