Re: [Ryu-devel] RYU controller enhancements required

2014-02-03 Thread Yuichi Ito
hi. the interface of ofctl_rest treats instructions and actions similarly. please try this: curl -X POST -d '{"dpid": 1, "match": {"in_port": 9900, "dl_vlan": 100}, "actions": [{"type": "METER", "meter_id": 1},

[Ryu-devel] [PATCH 04/15] of14: Add _ordered_fields to .4 OFPMatch

2014-02-03 Thread Simon Horman
This appears to be necessary for wire tests to pass if matches are in an order different from that defined by Ryu. Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/ryu/ofproto/ofprot

[Ryu-devel] [PATCH 08/15] of14: Add meter mod message support

2014-02-03 Thread Simon Horman
Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 44 ++ 1 file changed, 44 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index e617446..5c289a8 100644 --- a/ryu/ofproto/ofproto_v1_4_pars

[Ryu-devel] [PATCH 00/15] OF1.4 Message Support: Round Two

2014-02-03 Thread Simon Horman
Hi, The aim of this patchset is threefold: * cross-port recent changes to the OpenFlow 1.3 implementation to the Open Flow 1.4 implementation. * Increase OpenFlow 1.4 message and property coverage - All messages, actions and properties that are art of both OpenFlow 1.3 and 1.4, and covere

[Ryu-devel] [PATCH 02/15] of14: set default attributes for OFPMultipartRequest subclasses

2014-02-03 Thread Simon Horman
This is in keeping with 1368fd6899722a9c ("of13: set default attributes for OFPMultipartRequest subclasses"). Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_4_parse

[Ryu-devel] [PATCH 06/15] of14: Move OFPMeterBand* to above OFPMeterConfigStats

2014-02-03 Thread Simon Horman
This is a purely cosmetic change to move some code to the same location it is found in the of1.3 implementation, aiding comparison between the two codebases. It also move the code closer to where it is used. Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 108 +++

[Ryu-devel] [PATCH 01/15] of14: add some assertions

2014-02-03 Thread Simon Horman
This is in keeping with e08ac471d44db846 ("ofproto_v1_3_parser: put some assertions"). Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto

[Ryu-devel] [PATCH 12/15] of14: Add port stats request and reply message support

2014-02-03 Thread Simon Horman
Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 132 + 1 file changed, 132 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index 4077f20..a830d66 100644 --- a/ryu/ofproto/ofproto_v1_4_par

[Ryu-devel] [PATCH 05/15] of14: Add table features stats request and reply message support

2014-02-03 Thread Simon Horman
Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 346 + 1 file changed, 346 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index 567051c..52ff6d8 100644 --- a/ryu/ofproto/ofproto_v1_4_par

[Ryu-devel] [PATCH 10/15] of14: Rename OFPPortDescPropUnknown as OFPPortPropUnknown

2014-02-03 Thread Simon Horman
This corrects what appears to be a typo as OFPPortDescPropUnknown is never called but OFPPortPropUnknown, which does not exist, is called. Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1

[Ryu-devel] [PATCH 03/15] of14: Fix OFPInstructionWriteMetadata JSON decode

2014-02-03 Thread Simon Horman
This is in line with 4a394aae2f1a3b82 ("Fix OFPInstructionWriteMetadata JSON decode") which fixes the following for OF1.3: CLS ARG {u'metadata_mask': 18446744073709551615L, u'type': 2, u'len': 24, u'metadata': 18446744069414584320L} KWARG {u'type_': 2, u'metadata_mask': 18446744073709551615L, u'

[Ryu-devel] [PATCH 07/15] of14: Add OFPMeterBandDscpRemark and OFPMeterBandExperimenter

2014-02-03 Thread Simon Horman
These will be used my meter mod message support which is added by a subsequent patch. Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 48 ++ 1 file changed, 48 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/o

[Ryu-devel] [PATCH 13/15] of14: Add queue stats request and reply message support

2014-02-03 Thread Simon Horman
Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 108 + 1 file changed, 108 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index a830d66..05dc115 100644 --- a/ryu/ofproto/ofproto_v1_4_par

[Ryu-devel] [PATCH 09/15] of14: Add port status message support

2014-02-03 Thread Simon Horman
Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4.py| 7 + ryu/ofproto/ofproto_v1_4_parser.py | 54 ++ 2 files changed, 61 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_4.py b/ryu/ofproto/ofproto_v1_4.py index b5139c6..c9316ce 100644 --

[Ryu-devel] [PATCH 14/15] of14: Add port mod message support

2014-02-03 Thread Simon Horman
Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 87 ++ 1 file changed, 87 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index 05dc115..50b08aa 100644 --- a/ryu/ofproto/ofproto_v1_4_pars

[Ryu-devel] [PATCH 11/15] of14: Add generic OFPropBase class

2014-02-03 Thread Simon Horman
Add generic OFPropBase class and make OFPPortProp a subclass of it. This is to allow other properties classes to be implemented as subclasses of OFPPropBase, simplifying their implementation. Signed-off-by: Simon Horman --- ryu/ofproto/ofproto_v1_4_parser.py | 12 1 file changed, 8

Re: [Ryu-devel] Pre Installed OVA

2014-02-03 Thread FUJITA Tomonori
On Mon, 3 Feb 2014 16:23:49 -0800 vinay pai wrote: > In the initial days of Ryu, I was able to see a pre installed Ryu OVA on > the website but now it seems to have disappeared. > > Is there a link where I can get it? http://sourceforge.net/projects/ryu/files/vmimages/OpenFlowTutorial/ This is

[Ryu-devel] Pre Installed OVA

2014-02-03 Thread vinay pai
Hi All, In the initial days of Ryu, I was able to see a pre installed Ryu OVA on the website but now it seems to have disappeared. Is there a link where I can get it? Regards, Vinay Pai B.H. -- Vinay Pai B.H. Grad Student - Computer Science Viterbi School of Engineering University of Southern

Re: [Ryu-devel] RYU controller enhancements required

2014-02-03 Thread Wei Liao
Hi Tomonori-san, I am happy that I saw item 1 and 2 in R3.5. But after download the R3.5 and do some test. I found following problem, I need some clarifications on that. In flow_mod command if I specify instructions with meter, meter_id curl -X POST http://localhost:8080/stats/flowentry/add -d