Re: [Ryu-devel] [PATCH 3/4] kill OFPStatsReply class' body_cls_size

2012-05-17 Thread Isaku Yamahata
On Fri, May 18, 2012 at 06:42:18AM +0900, FUJITA Tomonori wrote: > On Thu, 17 May 2012 23:28:37 +0900 > FUJITA Tomonori wrote: > > > body_cls_size assmes that a stats reply body has the fixed-size > > length. But it's not the case. So we can't use it and it's not used > > anymore so kill it. > >

[Ryu-devel] [PATCH 2/2] fix OFPPacketQueue class parser

2012-05-17 Thread FUJITA Tomonori
Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_0_parser.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index dd1bebf..c44117f 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py +++ b/ryu

[Ryu-devel] [PATCH 1/2] Fix OFPQueuePropMinRate class

2012-05-17 Thread FUJITA Tomonori
- __str__ method: needs to pass a tuple to msg_str_attr - parser method: rate shouldn't be a tuple. Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_0_parser.py |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofpro

Re: [Ryu-devel] [PATCH 4/4] Make OFPAggregate defines consistent with other stats defines

2012-05-17 Thread FUJITA Tomonori
On Fri, 18 May 2012 10:11:10 +0900 Isaku Yamahata wrote: > I chose this inconsistency because the spec is inconsistent. :-( > >>From the spec 1.0, > struct ofp_desc_stats > struct ofp_flow_stats > struct ofp_aggregate_stats_reply > struct ofp_table_stats > struct ofp_port_sta

Re: [Ryu-devel] [PATCH 1/4] fix StatsReply parser

2012-05-17 Thread FUJITA Tomonori
On Fri, 18 May 2012 10:02:33 +0900 Isaku Yamahata wrote: > Oops. The length value is class-wide constants. > > class OFPXXXStats(...) > length = ..._SIZE > def parser... I like to make the way all the OFPXXStats (include set the length consistent. But either is fine. --

Re: [Ryu-devel] [PATCH 2/4] Kill parser_stats_body_array method in OFPFlowStats class

2012-05-17 Thread FUJITA Tomonori
On Fri, 18 May 2012 10:01:21 +0900 Isaku Yamahata wrote: > On Thu, May 17, 2012 at 11:28:36PM +0900, FUJITA Tomonori wrote: >> OFPStatsReply needs to handle variable-length bodys (flow stats) so >> having two parsers (parser_stats_body_array and parser_stats_body) >> doesn't make sense. Just kill

Re: [Ryu-devel] [PATCH 4/4] Make OFPAggregate defines consistent with other stats defines

2012-05-17 Thread Isaku Yamahata
I chose this inconsistency because the spec is inconsistent. :-( >From the spec 1.0, struct ofp_desc_stats struct ofp_flow_stats struct ofp_aggregate_stats_reply struct ofp_table_stats struct ofp_port_stats struct ofp_queue_stats Later versions also keep this inconsistency

Re: [Ryu-devel] [PATCH 1/4] fix StatsReply parser

2012-05-17 Thread Isaku Yamahata
Oops. The length value is class-wide constants. class OFPXXXStats(...) length = ..._SIZE def parser... On Thu, May 17, 2012 at 11:28:35PM +0900, FUJITA Tomonori wrote: > OFPStatsReply parser_stats_body_array needs body classes to have > length field. > > Signed-off-by: FUJITA Tomon

Re: [Ryu-devel] [PATCH 2/4] Kill parser_stats_body_array method in OFPFlowStats class

2012-05-17 Thread Isaku Yamahata
On Thu, May 17, 2012 at 11:28:36PM +0900, FUJITA Tomonori wrote: > OFPStatsReply needs to handle variable-length bodys (flow stats) so > having two parsers (parser_stats_body_array and parser_stats_body) > doesn't make sense. Just kill parser_stats_body_array(). The returned type for struct ofp_st

Re: [Ryu-devel] [PATCH 3/4] kill OFPStatsReply class' body_cls_size

2012-05-17 Thread FUJITA Tomonori
On Thu, 17 May 2012 23:28:37 +0900 FUJITA Tomonori wrote: > body_cls_size assmes that a stats reply body has the fixed-size > length. But it's not the case. So we can't use it and it's not used > anymore so kill it. > > Signed-off-by: FUJITA Tomonori > --- > ryu/ofproto/ofproto_v1_0_parser.py

[Ryu-devel] [PATCH 3/4] kill OFPStatsReply class' body_cls_size

2012-05-17 Thread FUJITA Tomonori
body_cls_size assmes that a stats reply body has the fixed-size length. But it's not the case. So we can't use it and it's not used anymore so kill it. Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_0_parser.py | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) di

[Ryu-devel] [PATCH 2/4] Kill parser_stats_body_array method in OFPFlowStats class

2012-05-17 Thread FUJITA Tomonori
OFPStatsReply needs to handle variable-length bodys (flow stats) so having two parsers (parser_stats_body_array and parser_stats_body) doesn't make sense. Just kill parser_stats_body_array(). Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_0_parser.py | 14 -- 1 files cha

[Ryu-devel] [PATCH 4/4] Make OFPAggregate defines consistent with other stats defines

2012-05-17 Thread FUJITA Tomonori
Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_0.py|7 +++ ryu/ofproto/ofproto_v1_0_parser.py |4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_0.py b/ryu/ofproto/ofproto_v1_0.py index a757e13..a458b9b 100644 --- a/ryu/of

[Ryu-devel] [PATCH 1/4] fix StatsReply parser

2012-05-17 Thread FUJITA Tomonori
OFPStatsReply parser_stats_body_array needs body classes to have length field. Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_0_parser.py | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_

[Ryu-devel] pre-configured VM image file for OpenStack environment with Ryu

2012-05-17 Thread FUJITA Tomonori
Hi, We created a VM image file that enables you to easily set up multi-node Nova environment with Ryu in your desktop machine: https://github.com/osrg/ryu/wiki/RYU-OpenStack-environment-VM-image-file-HOWTO This might be useful for the MCL team that works on OpenStack L3. Please let us know if yo

Re: [Ryu-devel] Running quantum-server Error

2012-05-17 Thread FUJITA Tomonori
Sorry for the delay. On Fri, 11 May 2012 08:33:13 -0500 Salman Malik wrote: > Great! looking forward to test it with OpenStack :-) The VM image file is finally ready: https://github.com/osrg/ryu/wiki/RYU-OpenStack-environment-VM-image-file-HOWTO ---

[Ryu-devel] pre-configured VM image file for OpenStack environment with Ryu

2012-05-17 Thread FUJITA Tomonori
Hi, We created a VM image file that enables you to easily set up multi-node Nova environment with Ryu in your desktop machine: https://github.com/osrg/ryu/wiki/RYU-OpenStack-environment-VM-image-file-HOWTO Enjoy! -- Liv