blob: 757c69de1cdef7619f0926f06d3abe8ef2a73026 [file] [log] [blame]
#! /bin/bash
controller=""
switches=`ifconfig -a | grep sw |grep -v eth | awk '{print $1}'`
function host2ip (){
ip=`grep $1 /etc/hosts |grep -v "ip6"| awk '{print $1}'`
echo $ip
}
url=""
for c in $controller; do
url="$url tcp:`host2ip $c`:6633"
done
echo $url
for s in $switches; do
sudo ovs-ofctl dump-flows $s
done