commit | fc4fe192c73111a6e59e7728032f75696c3bfec6 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Wed Apr 03 21:41:12 2013 +0000 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Wed Apr 03 21:41:12 2013 +0000 |
tree | fa85ea71c62f0d757ff476258b1395577ce40c2b | |
parent | 8df0244de22e8c297669919ced06fb69e946d1dd [diff] | |
parent | 082f3dfd650d08c2d3108c79b15e10ae89e7a9e1 [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