Skip to content

Instantly share code, notes, and snippets.

@yasuhito
Created January 1, 2013 07:39
Show Gist options
  • Save yasuhito/4425768 to your computer and use it in GitHub Desktop.
Save yasuhito/4425768 to your computer and use it in GitHub Desktop.
diff --git a/flow_dumper/flow-dumper.rb b/flow_dumper/flow-dumper.rbindex 40d677c..fdfe0e5 100644--- a/flow_dumper/flow-dumper.rb
+++ b/flow_dumper/flow-dumper.rb
@@ -27,7 +27,7 @@ module Trema
"cookie = #{ cookie }, " +
"idle_timeout = #{ idle_timeout }, " +
"hard_timeout = #{ hard_timeout }, " +
- "duration = #{ duration }, " +
+ "duration = #{ duration_sec }, " +
"packet_count = #{ packet_count }, " +
"byte_count = #{ byte_count }, " +
"match = [#{ match.to_s }], " +
@@ -42,7 +42,7 @@ class FlowDumper < Controller
send_list_switches_request
end
-
+ def list_switches_reply switches request = FlowStatsRequest.new( :match => Match.new )
switches.each do | each |
@@ -59,12 +59,12 @@ class FlowDumper < Controller end end
- if message.more?
- @num_switches -= 1- if @num_switches == 0- shutdown!
- end
- end
+ # if message.more?
+ # @num_switches -= 1
+ # if @num_switches == 0
+ # shutdown!
+ # end
+ # end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment