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]> wrote:
>
>
> Anyone here please?
>
> Thanks
> Munim
>
>
> -------- Original Message --------
> Subject: [Ryu-devel] ADDING FLOW IN SWITCH | NEED HELP
> From: Munim Shabir
> To: [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]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel