pervio a la presentacion
[vsorcdistro/.git] / scripts / basicflow.sh
index b7f251c4590c9100dbd3206eac979b523c6034c0..4c5caed69a99ab98b055b1f93dc2e49bb6e16810 100755 (executable)
@@ -7,17 +7,18 @@ This script is applied to a linear 3 topo, just for show the example
 echo "Cleaning all flows entry switch dpid 1 and 2"
 curl -X DELETE http://localhost:8080/stats/flowentry/clear/1
 curl -X DELETE http://localhost:8080/stats/flowentry/clear/2
+curl -X DELETE http://localhost:8080/stats/flowentry/clear/3
 echo "adding new flows entry to switches 1 and 2"
 
 curl -X POST -d '{
     "dpid": 1,
-    "cookie": 1,
-    "cookie_mask": 1,
+    "cookie": 0,
+    "cookie_mask": 0,
     "table_id": 0,
     "idle_timeout": 0,
     "hard_timeout": 0,
-    "priority": 11111,
-    "flags": 1,
+    "priority": 1,
+    "flags": 0,
     "match":{
         "in_port":1
     },
@@ -31,13 +32,13 @@ curl -X POST -d '{
 
 curl -X POST -d '{
     "dpid": 1,
-    "cookie": 1,
-    "cookie_mask": 1,
+    "cookie": 0,
+    "cookie_mask": 0,
     "table_id": 0,
     "idle_timeout": 0,
     "hard_timeout": 0,
-    "priority": 22222,
-    "flags": 1,
+    "priority": 1,
+    "flags": 0,
     "match":{
         "in_port":2
     },
@@ -50,13 +51,13 @@ curl -X POST -d '{
  }' http://localhost:8080/stats/flowentry/add
 curl -X POST -d '{
     "dpid": 2,
-    "cookie": 1,
-    "cookie_mask": 1,
+    "cookie": 0,
+    "cookie_mask": 0,
     "table_id": 0,
     "idle_timeout": 0,
     "hard_timeout": 0,
-    "priority": 11111,
-    "flags": 1,
+    "priority": 1,
+    "flags": 0,
     "match":{
         "in_port":2
     },
@@ -70,13 +71,13 @@ curl -X POST -d '{
 
 curl -X POST -d '{
     "dpid": 2,
-    "cookie": 1,
-    "cookie_mask": 1,
+    "cookie": 0,
+    "cookie_mask": 0,
     "table_id": 0,
     "idle_timeout": 0,
     "hard_timeout": 0,
-    "priority": 22222,
-    "flags": 1,
+    "priority": 1,
+    "flags": 0,
     "match":{
         "in_port":1
     },