ruby/trema/ofctl.rb in trema-0.3.8 vs ruby/trema/ofctl.rb in trema-0.3.9

- old
+ new

@@ -51,9 +51,14 @@ def dump_flows switch `sudo #{ Executables.ovs_ofctl } dump-flows #{ switch.network_device } 2>&1` end + def bring_port_up switch, port_number + `sudo #{ Executables.ovs_ofctl } mod-port #{ switch.network_device } #{ port_number } up 2>&1` + end + + def bring_port_down switch, port_number `sudo #{ Executables.ovs_ofctl } mod-port #{ switch.network_device } #{ port_number } down 2>&1` end end end