blob: 792ea37467aff46d9a40b8a336f705558502054b [file] [log] [blame]
Pavlin Radoslavov8df02442013-04-03 21:41:05 +00001#! /bin/bash
2
3controller=`hostname`
4switches=`sudo ovs-vsctl list-br`
5
6function host2ip (){
7 ip=`grep $1 /etc/hosts |grep -v "ip6"| awk '{print $1}'`
8 echo $ip
9}
10
11for s in $switches; do
12 sudo ovs-vsctl --pretty list-ports $s
13done