blob: 757c69de1cdef7619f0926f06d3abe8ef2a73026 [file] [log] [blame]
Masayoshi Kobayashice249712013-03-15 02:29:38 +00001#! /bin/bash
2controller=""
3switches=`ifconfig -a | grep sw |grep -v eth | awk '{print $1}'`
4
5function host2ip (){
6 ip=`grep $1 /etc/hosts |grep -v "ip6"| awk '{print $1}'`
7 echo $ip
8}
9
10url=""
11for c in $controller; do
12 url="$url tcp:`host2ip $c`:6633"
13done
14echo $url
15for s in $switches; do
16 sudo ovs-ofctl dump-flows $s
17done