Code Review
/
groupbasedpolicy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
added demos to the repo
[groupbasedpolicy.git]
/
demos
/
gbpsfc-env
/
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