Welcome to "Hello Trema!"
The "Hello Trema!" example is one of the simplest OpenFlow controller
implementations. The basic functionality of this controller is to
establish an OpenFlow channel connection with an OpenFlow switch and
output the "Hello 0xabc! (switch's datapath ID)"
message.
This example demonstrates a minimum template for Trema applications written in Ruby. Hence, it's a good starting point to learn about Trema programming.
- Ruby 2.2.5 or higher (RVM).
- Open vSwitch (
apt-get install openvswitch-switch
).
git clone https://github.com/trema/hello_trema.git
cd hello_trema
bundle install --binstubs
./bin/trema run lib/hello_trema.rb -c trema.conf