blob: 90670124eea595d1b8c9516856068cfd86e247d8 [file] [log] [blame]
Pavlin Radoslavov7175def2013-04-03 20:42:57 +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 ports=`sudo ovs-vsctl --pretty list-ports $s`
13 for p in $ports; do
14 sudo ifconfig $p up
15 done
16done