projects
/
vsorcdistro
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update and rename MantenerFIFO to MantenerFIFO.md
[vsorcdistro/.git]
/
scripts
/
basicflow.sh
diff --git
a/scripts/basicflow.sh
b/scripts/basicflow.sh
index 4c5caed69a99ab98b055b1f93dc2e49bb6e16810..99fdf7b91c74b18b2afe7503e0f0038bec76e37f 100755
(executable)
--- a/
scripts/basicflow.sh
+++ b/
scripts/basicflow.sh
@@
-4,12
+4,9
@@
Written by: Felix G. Tejada
This script is applied to a linear 3 topo, just for show the example
'
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/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"
echo "adding new flows entry to switches 1 and 2"
-
curl -X POST -d '{
"dpid": 1,
"cookie": 0,
curl -X POST -d '{
"dpid": 1,
"cookie": 0,
@@
-17,10
+14,10
@@
curl -X POST -d '{
"table_id": 0,
"idle_timeout": 0,
"hard_timeout": 0,
"table_id": 0,
"idle_timeout": 0,
"hard_timeout": 0,
- "priority": 1,
+ "priority": 1
00
,
"flags": 0,
"match":{
"flags": 0,
"match":{
-
"in_port":1
+ "in_port":1
},
"actions":[
{
},
"actions":[
{
@@
-29,7
+26,7
@@
curl -X POST -d '{
}
]
}' http://localhost:8080/stats/flowentry/add
}
]
}' http://localhost:8080/stats/flowentry/add
-
+sleep 1
curl -X POST -d '{
"dpid": 1,
"cookie": 0,
curl -X POST -d '{
"dpid": 1,
"cookie": 0,
@@
-37,10
+34,10
@@
curl -X POST -d '{
"table_id": 0,
"idle_timeout": 0,
"hard_timeout": 0,
"table_id": 0,
"idle_timeout": 0,
"hard_timeout": 0,
- "priority": 1,
+ "priority": 1
01
,
"flags": 0,
"match":{
"flags": 0,
"match":{
-
"in_port":2
+ "in_port":2
},
"actions":[
{
},
"actions":[
{
@@
-49,6
+46,7
@@
curl -X POST -d '{
}
]
}' http://localhost:8080/stats/flowentry/add
}
]
}' http://localhost:8080/stats/flowentry/add
+sleep 1
curl -X POST -d '{
"dpid": 2,
"cookie": 0,
curl -X POST -d '{
"dpid": 2,
"cookie": 0,
@@
-56,19
+54,19
@@
curl -X POST -d '{
"table_id": 0,
"idle_timeout": 0,
"hard_timeout": 0,
"table_id": 0,
"idle_timeout": 0,
"hard_timeout": 0,
- "priority":
1
,
+ "priority":
200
,
"flags": 0,
"match":{
"flags": 0,
"match":{
- "in_port":
2
+ "in_port":
1
},
"actions":[
{
"type":"OUTPUT",
},
"actions":[
{
"type":"OUTPUT",
- "port":
1
+ "port":
2
}
]
}' http://localhost:8080/stats/flowentry/add
}
]
}' http://localhost:8080/stats/flowentry/add
-
+sleep 1
curl -X POST -d '{
"dpid": 2,
"cookie": 0,
curl -X POST -d '{
"dpid": 2,
"cookie": 0,
@@
-76,18
+74,19
@@
curl -X POST -d '{
"table_id": 0,
"idle_timeout": 0,
"hard_timeout": 0,
"table_id": 0,
"idle_timeout": 0,
"hard_timeout": 0,
- "priority": 1,
+ "priority":
20
1,
"flags": 0,
"match":{
"flags": 0,
"match":{
- "in_port":
1
+ "in_port":
2
},
"actions":[
{
"type":"OUTPUT",
},
"actions":[
{
"type":"OUTPUT",
- "port":
2
+ "port":
1
}
]
}' http://localhost:8080/stats/flowentry/add
}
]
}' http://localhost:8080/stats/flowentry/add
+
echo "Connectivity from h1 to h2"
echo "Done"
echo "Connectivity from h1 to h2"
echo "Done"