On Wed, 20 Aug 2014 14:27:19 +0900
Yusuke Iwase <[email protected]> wrote:
> this patch enables ofctl_rest to get OFPFlowStats messages
> filtered by the OFPFlowStatsRequest fields in OpenFlow specification.
>
> usage)
>
> URI: /stats/flow/<dpid>
> method: POST
>
> the message body is as follows:
>
> table_id ID of table.
> out_port Require matching entries to include this as an output port.
> out_group Require matching entries to include this as an output group.
> (Not supported in of1.0)
> cookie Require matching entries to contain this cookie value.
> (Not supported in of1.0)
> cookie_mask Mask used to restrict the cookie bits that must match.
> (Not supported in of1.0)
> match Fields to match.
>
> e.g.)
>
> curl -X POST -d '{"table_id": 0,
> "out_port": 2,
> "cookie": 1,
> "cookie_mask": 1,
> "match":{"in_port":1}}'
> http://localhost:8080/stats/flow/1
>
> Signed-off-by: IWASE Yusuke <[email protected]>
> ---
> ryu/app/ofctl_rest.py | 20 ++++++++++++++++----
> ryu/lib/ofctl_v1_0.py | 11 +++++++----
> ryu/lib/ofctl_v1_2.py | 14 +++++++-------
> ryu/lib/ofctl_v1_3.py | 16 ++++++++--------
> 4 files changed, 38 insertions(+), 23 deletions(-)
Applied, thanks.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel