bin/trema in trema-0.3.6 vs bin/trema in trema-0.3.7
- old
+ new
@@ -146,9 +146,26 @@
trema_send_packets options[ :source ], options[ :dest ], options
end
end
+desc "Brings a switch's specified port down"
+command :port_down do | c |
+ c.desc "switch name"
+ c.flag [ :s, :switch ]
+
+ c.desc "port"
+ c.flag [ :p, :port ]
+
+ c.action do | global_options, options, args |
+ raise "--switch option is mandatory" if options[ :switch ].nil?
+ raise "--port option is mandatory" if options[ :port ].nil?
+
+ trema_port_down options[ :switch ], options[ :port ]
+ end
+end
+
+
desc "Shows stats of packets"
arg_name "host"
command :show_stats do | c |
c.desc "Show stats of packets sent"
c.switch [ :t, :tx ], :negatable => false