fixing pep8 problems for test verify tox job
[integration/test.git] / csit / suites / groupbasedpolicy / common_scripts / resetcontroller.sh
1 hostnum=${HOSTNAME#"gbpsfc"}
2 sw="sw$hostnum"
3 echo "Deleting controller for $sw"
4 ovs-vsctl del-controller $sw;
5 if [[ $? -ne 0 ]] ; then
6     exit 1
7 fi
8 echo "Sleeping for 6sec..."
9 sleep 6
10 echo "Setting controller to $ODL"
11 ovs-vsctl set-controller $sw tcp:$ODL:6653