Skip to content

ccodreanu/hello_trema

 
 

Repository files navigation

hello_trema

Build Status Coverage Status Code Climate Dependency Status Inline docs

The "Hello Trema!" example is one of the simplest OpenFlow controller implementation. 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.0.0 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

Packages

No packages published

Languages

  • Ruby 90.8%
  • Gherkin 9.2%