On Fri, 20 Dec 2013 16:10:40 +0900
Yuichi Ito <[email protected]> wrote:
> Changes v2 -> v3:
>
> - correct the following description
>
>
> this patch implements a REST API for OFPMeterConfigStats.
>
> e.g., when you send a MeterMod message as:
>
> curl -X POST -d '{"dpid": 1,
> "meter_id": 1,
> "flags": "KBPS",
> "bands": [{"type": "DROP", "rate": 1000},
> {"type": "REMARK", "rate": 2000},
> {"type": "EXPERIMENTER", "rate": 3000}
> ]}' http://localhost:8080/stats/meterentry/add
>
> and you do the following command:
>
> curl http://localhost:8080/stats/meterconfig/1
>
> then you will get the configuration as:
>
> {"1": [{"bands": [{"burst_size": 0, "rate": 1000, "type": "DROP"},
> {"prec_level": 0, "burst_size": 0, "rate": 2000,
> "type": "REMARK"},
> {"burst_size": 0, "rate": 3000, "experimenter": 0,
> "type": "EXPERIMENTER"}],
> "flags": "KBPS",
> "meter_id": 1}]}
>
> Signed-off-by: Yuichi Ito <[email protected]>
> ---
> ryu/app/ofctl_rest.py | 28 ++++++++++++++++++++++++++--
> ryu/lib/ofctl_v1_3.py | 36 ++++++++++++++++++++++++++++++++++++
> 2 files changed, 62 insertions(+), 2 deletions(-)
Applied, thanks
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel