commit | 1dd8de481ff9caa0e90c8afd90d4c0e167d8ccda | [log] [tgz] |
---|---|---|
author | Masayoshi Kobayashi <masayoshi@onlab.us> | Tue Mar 26 23:59:33 2013 +0000 |
committer | Masayoshi Kobayashi <masayoshi@onlab.us> | Tue Mar 26 23:59:33 2013 +0000 |
tree | 7e2164a86cdb1bc9c76e12b361c2bcfacd7bf2a5 | |
parent | 2da09f5d8d8e712691e62ae0f106334b5393dfa5 [diff] [blame] |
added switch controlling script for gui
diff --git a/scripts/switch.sh b/scripts/switch.sh index 648b5cd..eba0f34 100755 --- a/scripts/switch.sh +++ b/scripts/switch.sh
@@ -17,9 +17,12 @@ if [ "x$dpid" == "x$1" ]; then if [ x$2 == "xup" ]; then sudo ovs-vsctl set-controller $s $url + echo "$s up" elif [ x$2 == "xdown" ]; then sudo ovs-vsctl set-controller $s + echo "$s down" else + echo -n "$s controller: " sudo ovs-vsctl get-controller $s fi fi