On Fri, 30 May 2014 16:13:03 +0900
"takahashi.minoru" <[email protected]> wrote:
> ofctl_rest is now enabled to use MAC arbitrary bitmask as follows:
>
> curl -X POST -d '{"dpid": 1,
> "actions":[{"port":2, "type":"OUTPUT"}],
>
> "match":{"dl_dst":"01:02:03:ab:cd:ef/ff:ff:ff:ff:00:00"}}'
> http://localhost:8080/stats/flowentry/add
>
> And now enabled to display as follows:
>
> curl http://localhost:8080/stats/flow/1
> {
> "1": [
> {
> "actions": ["OUTPUT:2"],
> "idle_timeout": 0,
> "cookie": 0,
> "packet_count": 0,
> "hard_timeout": 0,
> "byte_count": 0,
> "duration_nsec": 951000000,
> "priority": 0,
> "duration_sec": 35,
> "table_id": 0,
> "match": {"dl_dst": "01:02:03:ab:00:00/ff:ff:ff:ff:00:00"}
> }
> ]
> }
>
> Signed-off-by: TAKAHASHI Minoru <[email protected]>
> ---
> ryu/lib/ofctl_v1_2.py | 65
> +++++++++++++++++++++++++++++++++++++------------
> ryu/lib/ofctl_v1_3.py | 65
> +++++++++++++++++++++++++++++++++++++------------
> 2 files changed, 100 insertions(+), 30 deletions(-)
Applied, thanks.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel