OpenFlow controller that emulates a software patch panel.
- Ruby 2.0.0 or higher (RVM).
- Open vSwitch (
apt-get install openvswitch-switch).
$ git clone https://github.com/trema/patch_panel.git
$ cd patch_panel
$ bundle install
% bundle exec trema run lib/patch_panel.rb -c trema.conf
When patch_panel.rb starts up, it will search for its configuration
file named patch_panel.conf in the current working directory. If you
want to specify a path to a configuration file, pass it to
patch_panel.rb as its argument:
% bundle exec trema run lib/patch_panel.rb -c trema.conf -- foobar.conf
A configuration file contains patching information. Each line has a pair of port numbers like so:
1 2
3 4
The first line means that switch port #1 is connected to port #2.
