projects
/
vsorcdistro
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pervio a la presentacion
[vsorcdistro/.git]
/
scripts
/
resetflows.sh
diff --git
a/scripts/resetflows.sh
b/scripts/resetflows.sh
index 174683b26819559f21d13726428594314955c8a7..c380479c827d4ba84b2a537d6b302b588bdd867f 100755
(executable)
--- a/
scripts/resetflows.sh
+++ b/
scripts/resetflows.sh
@@
-5,10
+5,7
@@
Written by: Felix G. Tejada
This script is applied to a linear 3 topo, just for show the example
'
dpid=$1
This script is applied to a linear 3 topo, just for show the example
'
dpid=$1
-echo "Cleaning all flows entrys"
curl -X DELETE http://localhost:8080/stats/flowentry/clear/$dpid
curl -X DELETE http://localhost:8080/stats/flowentry/clear/$dpid
-echo "adding default flows entry to all switches"
-sleep 1
curl -X POST -d '{
"dpid": "'"$dpid"'",
"cookie": 0,
curl -X POST -d '{
"dpid": "'"$dpid"'",
"cookie": 0,
@@
-26,4
+23,4
@@
curl -X POST -d '{
}
]
}' http://localhost:8080/stats/flowentry/add
}
]
}' http://localhost:8080/stats/flowentry/add
-echo "
Done
"
+echo "
Flows was reseted
"