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
-echo "adding default flows entry to all switches"
-sleep 1
curl -X POST -d '{
"dpid": "'"$dpid"'",
"cookie": 0,
}
]
}' http://localhost:8080/stats/flowentry/add
-echo "Done"
+echo "Flows was reseted"