Re: [Ryu-devel] Question: dpset vs topology and event handler questions

2013-06-01 Thread FUJITA Tomonori
Hi, On Fri, 31 May 2013 17:26:05 +0800 arne_goetje wrote: > 1. On your wiki, you mention that you plan to replace dpset with topology. > What's the status now? Is topology usable already? And if yes, how to > replace a line like: > >@handler.set_ev_cls(dpset.EventDP, dpset.DPSET_EV_DISPAT

[Ryu-devel] Help : how to change example simple_switch.py to support OpenFlow 1.3?

2013-06-01 Thread 遇惠君
Hi all, I am studying RYU recently and have tested RYU with mininet (OF1.0) with the example simple_switch.py. They work perfect. But when I change the mininet to physical switch which supports OF1.3 only, the example does not work anymore. Could anyone help me to point out what need to be don

Re: [Ryu-devel] [PATCH 5/6] Add support for ethernet padding.

2013-06-01 Thread FUJITA Tomonori
On Thu, 30 May 2013 11:04:48 +0900 Isaku Yamahata wrote: > > On Tue, May 28, 2013 at 04:54:17PM +, Shaun Crampton wrote: >> Hi, > > Hi. Now I understand the point. > Let's drop adding padding part and implement truncate padding in clean > way instead of ad-hoc enhance like checking total_le

Re: [Ryu-devel] [PATCH 4/6] Allow packet type to be specified when parsing packet

2013-06-01 Thread FUJITA Tomonori
On Fri, 24 May 2013 17:05:32 + Shaun Crampton wrote: > From: Shaun Crampton > > Allow packet type to be specified when parsing packet. > > Signed-off-by: Shaun Crampton > > --- > > Our application has a need to parse raw IP packets to determine > their destination. > > ryu/lib/packet/

Re: [Ryu-devel] [PATCH 2/6] Various minor fixes to OF1.3 parser

2013-06-01 Thread FUJITA Tomonori
On Tue, 28 May 2013 17:05:12 + Shaun Crampton wrote: >>> diff --git a/ryu/ofproto/ofproto_v1_3.py b/ryu/ofproto/ofproto_v1_3.py >>> index 3a40eef..39d7dff 100644 >>> --- a/ryu/ofproto/ofproto_v1_3.py >>> +++ b/ryu/ofproto/ofproto_v1_3.py >>> @@ -97,7 +97,8 @@ OFPP_FLOOD = 0xfffb #

Re: [Ryu-devel] [PATCH] of1.3: fix typo in OFPActionSetField

2013-06-01 Thread FUJITA Tomonori
On Sat, 01 Jun 2013 18:46:37 +0900 (JST) FUJITA Tomonori wrote: > > Signed-off-by: FUJITA Tomonori > --- > ryu/ofproto/ofproto_v1_3_parser.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I missed Shaun's patch. I dropped this. --

Re: [Ryu-devel] [PATCH 1/6] Make test_packet work stand-alone

2013-06-01 Thread FUJITA Tomonori
Sorry about the delay, On Fri, 24 May 2013 17:00:12 + Shaun Crampton wrote: > From: Shaun Crampton > mailto:shaun.cramp...@metaswitch.com>> > > Make test_packet work stand-alone. > > Prevent missing imports when running > ./run_tests.sh ryu.tests.unit.packet > > Signed-off-by: Shaun Cr

Re: [Ryu-devel] [PATCH 3/6] For convenience, make packet into a sequence type

2013-06-01 Thread FUJITA Tomonori
I really like improvement for Ryu packet library! However, like your other patches, it's mal-formed. Can you please resend? On Fri, 24 May 2013 17:03:26 + Shaun Crampton wrote: > From: Shaun Crampton > > For convenience, make packet into a sequence type. > > Enables accessing protocols w

[Ryu-devel] [PATCH] of1.3: fix typo in OFPActionSetField

2013-06-01 Thread FUJITA Tomonori
Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_3_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 80a777d..282fec7 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofpr

[Ryu-devel] [PATCH] fix 77effb29 regression

2013-06-01 Thread FUJITA Tomonori
The following commit broke ofp_attrs(): commit 77effb29a69eeb6d320dd9a7554924b2578c3c95 Author: Isaku Yamahata Date: Mon May 27 18:15:27 2013 +0900 ofproto/ofproto_parser: pylint Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_parser.py | 4 ++-- 1 file changed, 2 insertions(+),

Re: [Ryu-devel] How to use set field action in the flow mod

2013-06-01 Thread FUJITA Tomonori
On Sat, 1 Jun 2013 03:21:05 -0500 Gandhimathi Velusamy wrote: > Hi FUJITA, >I have used the match like this: > match = self.create_match(parser, > {ofproto.OXM_OF_IN_PORT: in_port, > ofproto.OXM_OF_ETH_SRC: eth_src, >

Re: [Ryu-devel] user isolation questions

2013-06-01 Thread FUJITA Tomonori
On Fri, 31 May 2013 13:33:55 +0400 Vasiliy Tolstov wrote: >>> As i understand ryu create gre tunnels for each user? >>> Can somebody explain to me what ryu doing with openvswitch to isolate >>> different users? >> >> The following would help you to understand how Ryu use GRE for tenant >> isolati

Re: [Ryu-devel] How to use set field action in the flow mod

2013-06-01 Thread FUJITA Tomonori
On Fri, 31 May 2013 00:35:21 -0500 Gandhimathi Velusamy wrote: > I want to add the action to set the fields eth_type and ipv4_src in the > flow mod message to handle icmpv4 messages. could you please, provide me > the syntax for it. You can do like the followings: f0 = dp.ofproto_parser.OFPMat