Shinpei,
Great - it worked.
Thank you for the help.
Regards,
Scott
Hi,
GROUP of action type can set the group_id to parameter.
Please try to set the action as follows:
"actions":[
{
"type":"GROUP",
"group_id": 1
}
]
Setting an example of action, please refer to the following.
http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#description-of-actions-on-request-messages
Thanks,
On 2016å¹´07æ14æ¥ 23:22, Scott Reeve wrote:
> Hi,
>
> Not so much of a python question, but a question about the JSON sent to
> the app.
>
> I'm running the standard RYU pre-built app as follows:
>
> ryu-manager --verbose --ofp-listen-host 15.234.166.21 *ofctl_rest.py*
>
> I use the CURL command from another ubuntu host and it all works fine.
> I can create flows, look at stats, etc.
> I can create a group no problem.
>
> However, when I want to create a flow that outputs to that group, my
> switch rejects it.
> I can see in wireshark that it's not formatted correct, so it's pretty
> clear that my JSON is incorrect.
>
> Here's the JSON:
>
> curl -X POST -d '{
> "dpid": 2,
> "cookie": 1,
> "cookie_mask": 1,
> "table_id": 0,
> "idle_timeout": 0,
> "hard_timeout": 0,
> "priority": 30000,
> "match":{"ipv6_dst": "ff02::1/64", "eth_type": 34525},
> "actions":[
> {
> "type":"GROUP",
> "out_group": 1
> }
> ]
> }' http://15.234.166.21:8080/stats/flowentry/add
>
>
>
> I've tried a bunch of things.
> I've also tried with an "actions" like this:
>
> "actions":[
> {
> "type":"OUTPUT",
> "out_group": 1
> }
> ]
>
> Any idea what the "actions" section should look like?
>
> I saw no examples here:
>
> http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#add-a-flow-entry
>
> Thanks,
>
> Scott
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity planning
> reports.http://sdm.link/zohodev2dev
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
GROUP of action type can set the group_id to parameter.
Please try to set the action as follows:
"actions":[
{
"type":"GROUP",
"group_id": 1
}
]
Setting an example of action, please refer to the following.
http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#description-of-actions-on-request-messages
Thanks,
On 2016å¹´07æ14æ¥ 23:22, Scott Reeve wrote:
> Hi,
>
> Not so much of a python question, but a question about the JSON sent to
> the app.
>
> I'm running the standard RYU pre-built app as follows:
>
> ryu-manager --verbose --ofp-listen-host 15.234.166.21 *ofctl_rest.py*
>
> I use the CURL command from another ubuntu host and it all works fine.
> I can create flows, look at stats, etc.
> I can create a group no problem.
>
> However, when I want to create a flow that outputs to that group, my
> switch rejects it.
> I can see in wireshark that it's not formatted correct, so it's pretty
> clear that my JSON is incorrect.
>
> Here's the JSON:
>
> curl -X POST -d '{
> "dpid": 2,
> "cookie": 1,
> "cookie_mask": 1,
> "table_id": 0,
> "idle_timeout": 0,
> "hard_timeout": 0,
> "priority": 30000,
> "match":{"ipv6_dst": "ff02::1/64", "eth_type": 34525},
> "actions":[
> {
> "type":"GROUP",
> "out_group": 1
> }
> ]
> }' http://15.234.166.21:8080/stats/flowentry/add
>
>
>
> I've tried a bunch of things.
> I've also tried with an "actions" like this:
>
> "actions":[
> {
> "type":"OUTPUT",
> "out_group": 1
> }
> ]
>
> Any idea what the "actions" section should look like?
>
> I saw no examples here:
>
> http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#add-a-flow-entry
>
> Thanks,
>
> Scott
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity planning
> reports.http://sdm.link/zohodev2dev
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel