Re: [Ryu-devel] [PATCH 3/4] ofproto tests: add expected json outputs

2013-10-14 Thread YAMAMOTO Takashi
> On Tue, 15 Oct 2013 13:58:52 +0900 > YAMAMOTO Takashi wrote: > >> Signed-off-by: YAMAMOTO Takashi >> --- >> .../of13/4-57-ofp_group_stats_request.packet.json | 7 +++ >> .../json/of13/4-58-ofp_group_stats_reply.packet.json | 19 >> +++ >> 2 files changed, 26 inserti

Re: [Ryu-devel] [PATCH 3/4] ofproto tests: add expected json outputs

2013-10-14 Thread FUJITA Tomonori
On Tue, 15 Oct 2013 13:58:52 +0900 YAMAMOTO Takashi wrote: > Signed-off-by: YAMAMOTO Takashi > --- > .../of13/4-57-ofp_group_stats_request.packet.json | 7 +++ > .../json/of13/4-58-ofp_group_stats_reply.packet.json | 19 > +++ > 2 files changed, 26 insertions(+) > cr

Re: [Ryu-devel] Help with pushing rules on the switch using RYU controller

2013-10-14 Thread sachin kulkarni
Thank you for the reply. I am using a hardware switch, not OVS. But I do understand now that I should use a set_field and not ethertype. In this case, would you be able to tell me what the correct command is? Also, I tried hard but could not find a wiki or a tutorial that can tell me the differen

Re: [Ryu-devel] [PATCH] simple_switch_13: using table-miss flow

2013-10-14 Thread Yoshihiro Kaneko
2013/10/15 FUJITA Tomonori : > On Thu, 10 Oct 2013 18:59:27 +0900 > Yoshihiro Kaneko wrote: > >> OVS has not yet supported table-miss flow, but this patch changes >> simple_switch_13 to install table-miss flow entry in accordance >> with OF1.3 spec. >> >> Signed-off-by: Yoshihiro Kaneko >> --- >>

Re: [Ryu-devel] [PATCH] simple_switch_13: using table-miss flow

2013-10-14 Thread Yoshihiro Kaneko
2013/10/15 YAMAMOTO Takashi : >> 2013/10/10 YAMAMOTO Takashi : OVS has not yet supported table-miss flow, but this patch changes simple_switch_13 to install table-miss flow entry in accordance with OF1.3 spec. Signed-off-by: Yoshihiro Kaneko --- ryu/app/simple_s

[Ryu-devel] [PATCH 1/4] packet_data_generator: add of1.3 group_stats_request/reply

2013-10-14 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/tests/packet_data_generator/src/x4.erl | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ryu/tests/packet_data_generator/src/x4.erl b/ryu/tests/packet_data_generator/src/x4.erl index b389171..21b14db 100644 --- a/ryu/tests

[Ryu-devel] [PATCH 2/4] packet_data: regen

2013-10-14 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- .../packet_data/of13/4-57-ofp_group_stats_request.packet | Bin 0 -> 24 bytes .../packet_data/of13/4-58-ofp_group_stats_reply.packet | Bin 0 -> 72 bytes 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 ryu/tests/packet_data/of13/4-57

[Ryu-devel] [PATCH 4/4] of1.3: fix OFPGroupStats parser

2013-10-14 Thread YAMAMOTO Takashi
fix the following crash reported by Adam Humphreys on ryu-devel. Error in the datapath 399885270008 from ('127.0.0.1', 5) hub: uncaught exception: Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/ryu/lib/hub.py", line 48, in _launch func(*args, **kwarg

[Ryu-devel] [PATCH 3/4] ofproto tests: add expected json outputs

2013-10-14 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- .../of13/4-57-ofp_group_stats_request.packet.json | 7 +++ .../json/of13/4-58-ofp_group_stats_reply.packet.json | 19 +++ 2 files changed, 26 insertions(+) create mode 100644 ryu/tests/unit/ofproto/json/of13/4-57-ofp_group_stats_requ

Re: [Ryu-devel] [PATCH] To specify a logging configuration file

2013-10-14 Thread FUJITA Tomonori
On Fri, 11 Oct 2013 17:12:19 +0900 Satoshi Kobayashi wrote: > Setup of logging from a configuration file. > Refer to the following for the details of a configuration file. > http://docs.python.org/2/library/logging.config.html > > Signed-off-by: Satoshi Kobayashi > --- > ryu/log.py | 12

Re: [Ryu-devel] Question regarding --cacert input argument

2013-10-14 Thread FUJITA Tomonori
On Wed, 9 Oct 2013 18:21:55 +0300 "David Ganor" wrote: > I'm using latest ryu on Ubuntu12.04. > > I've followed the documentation and managed to connect securely an > OpenVSwitch1.4 to the ryu, > > using the controller's privkey and cert files and the switch's cacert file. > > > > Now I wis

Re: [Ryu-devel] [PATCH] simple_switch_13: using table-miss flow

2013-10-14 Thread FUJITA Tomonori
On Thu, 10 Oct 2013 18:59:27 +0900 Yoshihiro Kaneko wrote: > OVS has not yet supported table-miss flow, but this patch changes > simple_switch_13 to install table-miss flow entry in accordance > with OF1.3 spec. > > Signed-off-by: Yoshihiro Kaneko > --- > ryu/app/simple_switch_13.py | 42 +++

Re: [Ryu-devel] Attribute Error on receiving GroupStatsReply message

2013-10-14 Thread YAMAMOTO Takashi
i'll take a look. YAMAMOTO Takashi > Hi, > > When sending a multipart message of type OFPMP_GROUP, the expected reply is > not processed correctly. The openflow stack sends back a Group reply, but on > the Ryu side this leads to an AttributeError. Commenting out the offending > line gives pro

Re: [Ryu-devel] Help with pushing rules on the switch using RYU controller

2013-10-14 Thread YAMAMOTO Takashi
> Hi, > > This is a beginner question, I think. > > I want to do this - > > match: {VLAN none, in-port 1} --> action: {change VLAN to 5, fwd port 3} > // pkts from native link > > i.e. for a when a packet with no vlan comes in on port 1, I want to add a > vlan tag of 5 to it and send it out

Re: [Ryu-devel] [PATCH] simple_switch_13: using table-miss flow

2013-10-14 Thread YAMAMOTO Takashi
> 2013/10/10 YAMAMOTO Takashi : >>> OVS has not yet supported table-miss flow, but this patch changes >>> simple_switch_13 to install table-miss flow entry in accordance >>> with OF1.3 spec. >>> >>> Signed-off-by: Yoshihiro Kaneko >>> --- >>> ryu/app/simple_switch_13.py | 42 >>> ++

Re: [Ryu-devel] IP packet handler

2013-10-14 Thread FUJITA Tomonori
Hi, On Sun, 13 Oct 2013 15:58:14 +0200 Gabriele Gerbino wrote: > Hi there, I'm new to this ML and to OF in general. I was trying to gain > confidence with ryu but I found myself stucked so soon. I wanted to modify > the "simple_switch.py" example in order to make it able to learn IP > addresses

Re: [Ryu-devel] Error regarding PACKET_IN event

2013-10-14 Thread FUJITA Tomonori
Hi, On Sat, 12 Oct 2013 15:26:01 -0400 Chen Chen wrote: > Here I attach our flow table configuration. It seems quite normal to me. > Maybe you can find something out there. 'actions=CONTROLLER:0' means that no data is sent. As Yamamoto expected, you set the max_len to zero for an output action

Re: [Ryu-devel] [PATCH] Register TCP_DST and UDP_DST headers in NXM

2013-10-14 Thread FUJITA Tomonori
On Tue, 15 Oct 2013 05:54:01 +0900 FUJITA Tomonori wrote: > On Tue, 8 Oct 2013 21:54:25 +0800 > Can Zhang wrote: > > > Signed-off-by: Can Zhang > > --- > > ryu/ofproto/nx_match.py | 10 ++ > > 1 file changed, 10 insertions(+) > > Applied, thanks. Duh, I applied the following pep8 wa

Re: [Ryu-devel] [PATCH] of13: correct parser() in several OFPActions

2013-10-14 Thread FUJITA Tomonori
On Wed, 09 Oct 2013 17:02:43 +0900 Yuichi Ito wrote: > before applying this patch: > - parser() of OFPActionDecMplsTtl calls itself recursively. > - parser() of OFPActionDecNwTtl, OFPActionCopyTtlOut, OFPActionCopyTtlIn > and OFPActionPopVlan fail by shortage of arguments. > > after applyin

Re: [Ryu-devel] [PATCH] Register TCP_DST and UDP_DST headers in NXM

2013-10-14 Thread FUJITA Tomonori
On Tue, 8 Oct 2013 21:54:25 +0800 Can Zhang wrote: > Signed-off-by: Can Zhang > --- > ryu/ofproto/nx_match.py | 10 ++ > 1 file changed, 10 insertions(+) Applied, thanks. -- October Webinars: Code for Perfor

Re: [Ryu-devel] [PATCH] simple_switch: use packet library

2013-10-14 Thread FUJITA Tomonori
On Tue, 8 Oct 2013 07:19:38 +0900 FUJITA Tomonori wrote: > Also remove obsolete comments. > > Signed-off-by: FUJITA Tomonori > --- > ryu/app/simple_switch.py | 24 ++-- > 1 file changed, 10 insertions(+), 14 deletions(-) Applied. -

[Ryu-devel] Help with pushing rules on the switch using RYU controller

2013-10-14 Thread sachin kulkarni
Hi, This is a beginner question, I think. I want to do this - > match: {VLAN none, in-port 1} --> action: {change VLAN to 5, fwd port 3} // pkts from native link i.e. for a when a packet with no vlan comes in on port 1, I want to add a vlan tag of 5 to it and send it out on port 3. So I am