Virtual network in seconds
$ git clone https://github.com/trema/phut.git
$ cd phut
$ bundle install
With Phut network DSL, you can describe the network topology in which your OpenFlow controller is executed.
# phut.conf
# One virtual switch + two virtual hosts.
vswitch { dpid 0xabc }
vhost 'host1'
vhost 'host2'
link '0xabc', 'host1'
link '0xabc', 'host2'
Then you can pass the network configuration to phut run
.
$ bundle exec phut run phut.conf
Phut is released under the GNU General Public License version 2.0 or MIT License: