From f8dd50d6e1eb404c4f6e2dad5ef4ae502ab3d33d Mon Sep 17 00:00:00 2001 From: Nick Karanatsios Date: Wed, 10 Apr 2013 13:07:19 +0900 Subject: [PATCH] change SWITCH_HOME environment variable to TREMA_HOME --- ruby/trema/trema-switch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby/trema/trema-switch.rb b/ruby/trema/trema-switch.rb index 21bca94a..b6b4029b 100644 --- a/ruby/trema/trema-switch.rb +++ b/ruby/trema/trema-switch.rb @@ -54,7 +54,7 @@ def method_missing message, *args def command ports = @stanza[ :ports ] ports = Trema::Link.instances.values.map.with_index { | each, i | "#{ each.name }/#{ i + 1 }" }.join( ',' ) if @stanza[ :ports ].nil? - "export SWITCH_HOME=`pwd`; sudo -E #{ Executables.switch } -i #{ dpid_short } -e #{ ports } > #{ log_file } &" + "export TREMA_HOME=`pwd`; sudo -E #{ Executables.switch } -i #{ dpid_short } -e #{ ports } > #{ log_file } &" end end end