/hello_trema

Hello World!

Primary LanguageRubyGNU General Public License v3.0GPL-3.0

hello_trema

Build Status Coverage Status Code Climate Dependency Status Inline docs

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.

Prerequisites

  • Ruby 2.2.5 or higher (RVM).
  • Open vSwitch (apt-get install openvswitch-switch).

Install

git clone https://github.com/trema/hello_trema.git
cd hello_trema
bundle install --binstubs

Play

./bin/trema run lib/hello_trema.rb -c trema.conf