Skip to content

Commit

Permalink
add Virtual Openflow Switch Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
kohoumas committed Feb 13, 2013
1 parent bc79180 commit 57372c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/omf_rc_virtual_openflow_switch_factory
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ require "optparse"
require 'omf_rc'
require 'omf_rc/resource_factory'
require 'omf_rc_openflow'

$stdout.sync = true

options = {
Expand Down Expand Up @@ -75,7 +76,7 @@ end

EM.run do
virtual_openflow_switch_factory = OmfRc::ResourceFactory.new(:virtual_openflow_switch_factory, options)
virtual_openflow_switch_factory
virtual_openflow_switch_factory.connect

trap(:INT) { virtual_openflow_switch_factory.disconnect }
trap(:TERM) { virtual_openflow_switch_factory.disconnect }
Expand Down

0 comments on commit 57372c9

Please sign in to comment.