[Ryu-devel] [PATCH 3/3] test_parser: Add test case for OFP15 table_features_request

2015-08-02 Thread Yusuke Iwase
TODO: Because Open vSwitch (lib/ofp-util) does not support Egress Tables [EXT-306] yet, re-generate the packet data by using packet_data_generator2 when Open vSwitch supports it. Reference: OpenFlow 1.1+ support status of Open vSwitch https://github.com/openvswitch/ovs/blob/master/OPENFLOW-1.1%2B.

[Ryu-devel] [PATCH 2/3] ofproto_v1_5_parser: Support new OFPTableFeaturesStats structure

2015-08-02 Thread Yusuke Iwase
OpenFlow Spec 1.5 introduces a new ofp_table_features structures in accordance with table feature request commands for simpler table features updates. This patch fixes OFPTableFeaturesStats class to support the new structure of ofp_table_features. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofp

[Ryu-devel] [PATCH 1/3] ofproto_v1_5_parser: Add new table feature properties support

2015-08-02 Thread Yusuke Iwase
OpenFlow Spec 1.5 introduces new table feature properties as following. enum ofp_table_feature_prop_type { ... OFPTFPT_WRITE_COPYFIELD = 18, /* Write Copy-Field property. */ OFPTFPT_WRITE_COPYFIELD_MISS = 19, /* Write Copy-Field for table-miss. */ OFPTFPT_APPLY_COPYFIELD = 20, /*

[Ryu-devel] [PATCH 0/3] Related to 'B.18.1 Egress Tables' in OpenFlow 1.5

2015-08-02 Thread Yusuke Iwase
These patches are related to the updates of 'B.18.1 Egress Tables' EXT-306 and EXT-233 in OpenFlow 1.5. IWASE Yusuke (3): ofproto_v1_5_parser: Add new table feature properties support ofproto_v1_5_parser: Support new OFPTableFeaturesStats structure test_parser: Add test case for OFP15 table_

[Ryu-devel] [PATCH 12/12] ofproto_v1_5_parser: Use b'str' for binary data

2015-08-02 Thread Yusuke Iwase
Note: ofproto_v1_[034]_parser was done in previous commits. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5_parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_5_parser.py b/ryu/ofproto/ofproto_v1_5_parser.py index 4b6b235..02f980c

[Ryu-devel] [PATCH 11/12] ofproto_v1_5_parser: Use six.binary_type instead of buffer

2015-08-02 Thread Yusuke Iwase
To support Python3, buffer() type need to be replaced with six.binary_type(). Note: ofproto_v1_[0234]_parser was done in previous commits. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5_parser.py | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/ryu

[Ryu-devel] [PATCH 10/12] test_parser: Add test case for OFP15 group_desc reply

2015-08-02 Thread Yusuke Iwase
TODO: Because Open vSwitch (lib/ofp-util) does not support OF1.5 group_desc structure [EXT-350] yet, re-generate the packet data by using packet_data_generator2 when Open vSwitch supports it. Reference: OpenFlow 1.1+ support status of Open vSwitch https://github.com/openvswitch/ovs/blob/master/OPE

[Ryu-devel] [PATCH 09/12] test_parser: Add expected json representations of OF1.5 GroupMod

2015-08-02 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- .../of15/libofproto-OFP15-group_mod.packet.json| 61 ++ 1 file changed, 61 insertions(+) create mode 100644 ryu/tests/unit/ofproto/json/of15/libofproto-OFP15-group_mod.packet.json diff --git a/ryu/tests/unit/ofproto/json/of15/libofproto-

[Ryu-devel] [PATCH 08/12] packet_data: Regen

2015-08-02 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- .../packet_data/of15/libofproto-OFP15-group_mod.packet | Bin 0 -> 80 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 ryu/tests/packet_data/of15/libofproto-OFP15-group_mod.packet diff --git a/ryu/tests/packet_data/of15/libofproto-OFP1

[Ryu-devel] [PATCH 06/12] ofproto_v1_5_parser: Support OF1.5 OFPGroupDescStats structure

2015-08-02 Thread Yusuke Iwase
OpenFlow Spec 1.5 adds properties field which is a list of group properties. This patch adds properties field support in group description multipart reply message. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5_parser.py | 29 +++-- 1 file changed, 19 insertion

[Ryu-devel] [PATCH 07/12] packet_data_generator2: Generate OF1.5 GroupMod packets

2015-08-02 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- ryu/tests/packet_data_generator2/gen.c | 37 ++ 1 file changed, 37 insertions(+) diff --git a/ryu/tests/packet_data_generator2/gen.c b/ryu/tests/packet_data_generator2/gen.c index 11d4c49..db16391 100644 --- a/ryu/tests/packet_data

[Ryu-devel] [PATCH 05/12] ofproto_v1_[345]: Fix backward compatibility for OFPGroupDescStats

2015-08-02 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_3.py | 9 +++-- ryu/ofproto/ofproto_v1_4.py | 11 ++- ryu/ofproto/ofproto_v1_5.py | 11 ++- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_3.py b/ryu/ofproto/ofproto_v1_3.py index

[Ryu-devel] [PATCH 04/12] ofproto_v1_5_parser: Support OF1.5 OFPGroupMod structure

2015-08-02 Thread Yusuke Iwase
OpenFlow Spec 1.5 adds bucket_id and properties fields. And also introduces command_bucket_id field which indicates Bucket Id used as part of the new commands, OFPGC_INSERT_BUCKET and OFPGC_REMOVE_BUCKET. This patch adds these fields support and fixes the example of usage according to this changes

[Ryu-devel] [PATCH 03/12] ofproto_v1_5_parser: Add OFPGroupProp support

2015-08-02 Thread Yusuke Iwase
OpenFlow Spec 1.5 introduces group property to extend groups. This patch add group property support. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5_parser.py | 9 + 1 file changed, 9 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_5_parser.py b/ryu/ofproto/ofproto_v1_5_par

[Ryu-devel] [PATCH 02/12] ofproto_v1_5_parser: Add OFPGroupBucketProp support

2015-08-02 Thread Yusuke Iwase
OpenFlow Spec 1.5 introduces group bucket properties to extend group buckets and redefine bucket fields weight, watch_port and watch_group as group bucket properties. This patch adds group bucket properties support and restructures bucket fields. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofpr

[Ryu-devel] [PATCH 01/12] ofproto_v1_5: Fix a typo

2015-08-02 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_5.py b/ryu/ofproto/ofproto_v1_5.py index 753b951..0740884 100644 --- a/ryu/ofproto/ofproto_v1_5.py +++ b/ryu/ofproto/ofproto_v1_5.py @@ -666

[Ryu-devel] [PATCH 00/12] Related to 'B.18.8 (EXT-350)' in OpenFlow 1.5 (Repost)

2015-08-02 Thread Yusuke Iwase
The previous patches are missing the compatibility with Python3. The following are the additional patches to support Python3 in ofproto_v1_5_parser.py. + ofproto_v1_5_parser: Use six.binary_type instead of buffer + ofproto_v1_5_parser: Use b'str' for binary data (Previous Post) This patches ar

[Ryu-devel] Ryu 3.24 released

2015-08-02 Thread FUJITA Tomonori
Hi, Here's a new release including lots of stuff: - Python3 support - OF1.5 support improvement - NX support improvement - New OVSDB manager protocol application - Topology app improvement Another big news is that Ryu became one of Python libraries that OpenStack officially depends on: https://

Re: [Ryu-devel] Error during installation through setup.py script

2015-08-02 Thread FUJITA Tomonori
On Sat, 1 Aug 2015 07:49:08 + (UTC) Saurabh Jain wrote: > I have tried setup.py script to install Ryu Controller, but it seems > that some packages should be installed before using this script.May > be Ryu can install dependencies through script. Unfortunately, that's Python limit. Python ca

Re: [Ryu-devel] [PATCH 00/10] Related to 'B.18.8 (EXT-350)' in OpenFlow 1.5

2015-08-02 Thread Yusuke Iwase
Hi Fujita-San, On 2015年07月31日 16:42, FUJITA Tomonori wrote: > On Fri, 31 Jul 2015 10:28:19 +0900 > Yusuke Iwase wrote: > >> This patches are related to the updates of 'B.18.8 Group command >> for selective bucket operation' in OpenFlow 1.5. >> >> IWASE Yusuke (10): >> ofproto_v1_5: Fix a typo