bin/trema in trema-0.3.8 vs bin/trema in trema-0.3.9
- old
+ new
@@ -146,9 +146,26 @@
trema_send_packets options[ :source ], options[ :dest ], options
end
end
+desc "Brings a switch's specified port up"
+command :port_up 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_up options[ :switch ], options[ :port ]
+ end
+end
+
+
desc "Brings a switch's specified port down"
command :port_down do | c |
c.desc "switch name"
c.flag [ :s, :switch ]