commit | 831d48280818f6fd07e14f68d67567c43c3319cc | [log] [tgz] |
---|---|---|
author | Masayoshi Kobayashi <masayoshi@onlab.us> | Wed Apr 03 23:00:09 2013 +0000 |
committer | Masayoshi Kobayashi <masayoshi@onlab.us> | Wed Apr 03 23:00:09 2013 +0000 |
tree | 808da53a401041ca19df6e75f7cb1f46eec22419 | |
parent | bd3d00e59827fa02a4a763641db8a2f474524068 [diff] | |
parent | fc4fe192c73111a6e59e7728032f75696c3bfec6 [diff] |
Merge branch 'master' of github.com:OPENNETWORKINGLAB/ONOS
diff --git a/scripts/listports.sh b/scripts/listports.sh new file mode 100755 index 0000000..792ea37 --- /dev/null +++ b/scripts/listports.sh
@@ -0,0 +1,13 @@ +#! /bin/bash + +controller=`hostname` +switches=`sudo ovs-vsctl list-br` + +function host2ip (){ + ip=`grep $1 /etc/hosts |grep -v "ip6"| awk '{print $1}'` + echo $ip +} + +for s in $switches; do + sudo ovs-vsctl --pretty list-ports $s +done