src/examples/openflow_message/set-config.rb in trema-0.4.6 vs src/examples/openflow_message/set-config.rb in trema-0.4.7
- old
+ new
@@ -17,31 +17,31 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
-require "example"
+require 'example'
class SetConfigController < Controller
include Example
class << self
- def run args
+ def run(args)
usage unless Example.options_parse args
end
def usage
puts Example.cmd_usage
- puts "Send count number of set-config messages to datapath_id."
+ puts 'Send count number of set-config messages to datapath_id.'
exit false
end
end
- def switch_ready msg_datapath_id
+ def switch_ready(msg_datapath_id)
may_raise_error msg_datapath_id
send_nr_msgs SetConfig
end
end