Skip to content
Find file History
Pull request Compare This branch is even with develop.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
.gitignore
GPL2
Makefile
README.md
flow-dumper.rb
flow_dumper.c

README.md

Flow Dumper Application

What's this?

This application retrieves flow entries from all switches connected and outputs flow entries in text form on console terminal.

How to build

Get Trema and Apps

 $ sudo gem install trema
 $ git clone git://github.com/trema/apps.git apps

Build flow dumper

 $ cd ./apps/flow_dumper
 $ make
 $ cd ../../

How to run

Run a controller application developed on top of Trema which installs flow entries. For example:

 $ trema run -c ./apps/routing_switch.conf -d

Run flow dumper

 $ trema run ./apps/flow_dumper/flow_dumper

Or

 $ trema run ./apps/flow_dumper/flow-dumper.rb

If you have any flow entries, you can see output like follows:

 $ trema run ./apps/flow_dumper/flow_dumper
 [0x00000000000abc] priority = 65535, match = [wildcards = 0, in_port = 1,
 dl_src = 00:00:00:01:00:02, dl_dst = 00:00:00:01:00:01, dl_vlan = 65535,
 dl_vlan_pcp = 0, dl_type = 0x800, nw_tos = 0, nw_proto = 17,
 nw_src = 192.168.0.2, nw_dst = 192.168.0.1, tp_src = 1, tp_dst = 1],
 actions = [output: port=2 max_len=65535]

License

Copyright (C) 2011-2013 NEC Corporation

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Something went wrong with that request. Please try again.