Structure of your API is a bit different than what I am using. I have to use as
below
{
"type":"OUTPORT",
"port": "CONTROLLER"
}
problem is : when I use a physical port number, i.e 1, 2,3 ... flow gets added
in the table. When I use "CONTROLLER" as above. API execution throws an error.
Thanks
Muneem
________________________________
From: Munim Shabir <[email protected]>
Sent: Friday, April 26, 2019 10:42 PM
To: Maen Artimy
Cc: [email protected]
Subject: Re: [Ryu-devel] ADDING FLOW IN SWITCH | NEED HELP
Maen,
Which openflow version is it for?
Sent from my Huawei phone
-------- Original Message --------
Subject: Re: [Ryu-devel] ADDING FLOW IN SWITCH | NEED HELP
From: Maen Artimy
To: Munim Shabir
CC: [email protected]
Here are two examples that may be useful (you will need to modify):
{
"actions": [
"OUTPUT:FLOOD"
],
"idle_timeout": 0,
"cookie": 1428160512,
"packet_count": 0,
"hard_timeout": 0,
"byte_count": 0,
"duration_sec": 2842871,
"duration_nsec": 767000000,
"priority": 1000,
"length": 88,
"flags": 0,
"table_id": 7,
"match": {
"eth_dst": "ff:ff:ff:ff:ff:ff"
}
},
{
"actions": [
"OUTPUT:3"
],
"idle_timeout": 300,
"cookie": 1428160512,
"packet_count": 277,
"hard_timeout": 0,
"byte_count": 13124,
"duration_sec": 257,
"duration_nsec": 640000000,
"priority": 900,
"length": 88,
"flags": 0,
"table_id": 7,
"match": {
"eth_dst": "8c:e2:da:a0:82:47"
}
},
Regards,
On Fri, Apr 26, 2019 at 2:02 PM Munim Shabir
<[email protected]<mailto:[email protected]>> wrote:
Anyone here please?
Thanks
Munim
-------- Original Message --------
Subject: [Ryu-devel] ADDING FLOW IN SWITCH | NEED HELP
From: Munim Shabir
To: [email protected]<mailto:[email protected]>
CC:
Guys,
I have added flow with priority=100 to drop all packets and it is working fine.
Now I want to add another flow with higher priority for 10.0.0.1 to 10.0.0.2 to
match and send packets to controller, in short allow the access. when I use
below combination on API it adds the flow but flow table shows actions=drop for
the flow added. Could you guys help me here please ?
$ curl -X POST -d '{
"dpid": 1,
"cookie": 1,
"cookie_mask": 1,
"table_id": 0,
"idle_timeout": 30,
"hard_timeout": 30,
"priority":200 ,
"flags": 1,
"match":{
"nw_src":10:0.0.1",
"nw_dst=10.0.0.2"
},
"actions":[
{
"type":"CONTROLLER",
"port": 65535
}
]
}' http://localhost:8080/stats/flowentry/add
Thanks
Munim
_______________________________________________
Ryu-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel