Update and rename MantenerFIFO to MantenerFIFO.md
[vsorcdistro/.git] / scripts / resetflows.sh
index 174683b26819559f21d13726428594314955c8a7..a607b366a1e7389362bbcc4228ad9e5d235a882b 100755 (executable)
@@ -2,13 +2,10 @@
 : '
 Written by: Felix G. Tejada
 
-This script is applied to a linear 3 topo, just for show the example
+This is for clean all flows and set a default one on any switch.
 '
 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,
@@ -26,4 +23,4 @@ curl -X POST -d '{
         }
     ]
  }' http://localhost:8080/stats/flowentry/add
-echo "Done"
+echo "Flows was reseted"