Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Full-Stack OpenFlow Framework in Ruby
Ruby Cucumber

Merge pull request #405 from trema/feature/switch_disconnected_handler

Add feature/switch_disconnected_handler.feature
latest commit 94c005f64a
@yasuhito yasuhito authored

Welcome to Trema

Build Status Code Climate Coverage Status Dependency Status

Trema is an OpenFlow controller programming framework that provides everything needed to create OpenFlow controllers in Ruby. It provides a high-level OpenFlow library and also a network emulator that can create OpenFlow-based networks for testing on your PC. This self-contained environment helps streamlines the entire process of development and testing.


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

Sample Code

Study sample code for implementation examples of Trema features. Each sample code project is executable source example of how to write a OpenFlow controller using Trema Ruby API.


Special thanks to all contributors for submitting patches. A full list of contributors including their patches can be found at:


Trema is released under the GNU General Public License version 2.0:

Something went wrong with that request. Please try again.