Re: [Ryu-devel] [PATCH v3 15/18] [RFC] Allow messages inside messages

2014-03-16 Thread Simon Horman
On Mon, Mar 17, 2014 at 03:10:17PM +0900, YAMAMOTO Takashi wrote: > > On Thu, Mar 13, 2014 at 02:46:43PM +0900, YAMAMOTO Takashi wrote: > >> > @@ -230,19 +230,24 @@ class StringifyMixin(object): > >> > return cls._get_default_decoder(decode_string) > >> > > >> > @classmethod > >> >

[Ryu-devel] Multiple application on Ryu and topo discovery service

2014-03-16 Thread Dong Mo
Dear list, I am very new to Ryu and here are two beginner questions: I have a full openflow network and want to get the topology information of this network, should I run ryu / ryu / topology / switches.py as an application? Are the Switches class in swithces.py a representation of the topo? Wha

Re: [Ryu-devel] [PATCH v3] ofctl_v1_2/3: IP arbitrary bitmask support

2014-03-16 Thread Wei-Li Tang
2014-03-17 13:32 GMT+08:00 FUJITA Tomonori : > On Mon, 17 Mar 2014 11:31:23 +0800 > Wei-Li Tang wrote: > > > Openflow 1.1 and later versions allow the use of IP address with > > arbitrary bitmask in match fields. This enables related fields > > to be interpreted in the following order: > > > > 1.

Re: [Ryu-devel] [PATCH v3 15/18] [RFC] Allow messages inside messages

2014-03-16 Thread YAMAMOTO Takashi
> On Thu, Mar 13, 2014 at 02:46:43PM +0900, YAMAMOTO Takashi wrote: >> > @@ -230,19 +230,24 @@ class StringifyMixin(object): >> > return cls._get_default_decoder(decode_string) >> > >> > @classmethod >> > -def _decode_value(cls, k, json_value, decode_string=base64.b64decode): >>

[Ryu-devel] [PATCH] topology/switches: duplicate datapath connections handling

2014-03-16 Thread Wei-Li Tang
The way to handle multiple connections from the same datapath I took is mostly the same as in dpset, but it's always good to reinstall the LDAP Packet-In flows even while switch tries to reconnect to us. Signed-off-by: Wei-Li Tang --- ryu/topology/switches.py | 27 +++

Re: [Ryu-devel] [PATCH v3] ofctl_v1_2/3: IP arbitrary bitmask support

2014-03-16 Thread FUJITA Tomonori
On Mon, 17 Mar 2014 11:31:23 +0800 Wei-Li Tang wrote: > Openflow 1.1 and later versions allow the use of IP address with > arbitrary bitmask in match fields. This enables related fields > to be interpreted in the following order: > > 1. Standard CIDR: > > 192.168.1.0/24 > fe80::/10 > >

Re: [Ryu-devel] [PATCH v3 15/18] [RFC] Allow messages inside messages

2014-03-16 Thread Simon Horman
On Thu, Mar 13, 2014 at 02:46:43PM +0900, YAMAMOTO Takashi wrote: > > @@ -230,19 +230,24 @@ class StringifyMixin(object): > > return cls._get_default_decoder(decode_string) > > > > @classmethod > > -def _decode_value(cls, k, json_value, decode_string=base64.b64decode): > > -

[Ryu-devel] [PATCH v3] ofctl_v1_2/3: IP arbitrary bitmask support

2014-03-16 Thread Wei-Li Tang
Openflow 1.1 and later versions allow the use of IP address with arbitrary bitmask in match fields. This enables related fields to be interpreted in the following order: 1. Standard CIDR: 192.168.1.0/24 fe80::/10 2. Hybrid CIDR format (IP address with dotted decimal or colon-hexadecim

Re: [Ryu-devel] [PATCH v2 3/3] ofctl_v1_2/3: IP arbitrary bitmask support

2014-03-16 Thread Wei-Li Tang
2014-03-16 19:24 GMT+08:00 FUJITA Tomonori : > On Tue, 11 Mar 2014 13:49:25 +0800 > Wei-Li Tang wrote: > > > Openflow 1.1 and later versions allow the use of IP address with > > arbitrary bitmask in match fields. This introduces new match fields > > for arbitrary bitmask support in REST API. > >

Re: [Ryu-devel] ryu exception

2014-03-16 Thread cheers
Thanks for the pointer. I will look into this direction. -Peter On Mar 16, 2014, at 5:38 AM, FUJITA Tomonori wrote: > On Fri, 14 Mar 2014 13:44:08 -0700 > cnm...@gmail.com wrote: > >> >> Hi, >> >> I am experiencing an runtime exception with Ryu, when i entered this REST >> request: >> >>

Re: [Ryu-devel] [PATCH] enable multistage @set_ev_cls or @set_ev_handler

2014-03-16 Thread FUJITA Tomonori
On Thu, 13 Mar 2014 14:13:16 + ISHIDA Wataru wrote: > > Signed-off-by: ISHIDA Wataru > --- > ryu/base/app_manager.py | 32 ++-- > ryu/controller/controller.py |3 ++- > ryu/controller/handler.py| 40 ++-- > 3 file

Re: [Ryu-devel] [PATCH] dpset: absorb *args, **kwargs passed to __init__

2014-03-16 Thread FUJITA Tomonori
On Fri, 14 Mar 2014 04:53:06 + ISHIDA Wataru wrote: > dpset might be initialied implicitly like OFPHandler. > In that case, _CONTEXTS are passed to dpset. so we should ignore them. > > Signed-off-by: ISHIDA Wataru > --- > ryu/controller/dpset.py |2 +- > 1 file changed, 1 insertion(+), 1

Re: [Ryu-devel] [PATCH] sw test tool: Fix a problem for disconnection

2014-03-16 Thread FUJITA Tomonori
On Mon, 10 Mar 2014 11:44:21 +0900 Yuichi Ito wrote: > Disconnection of switches has caused a RyuInternalError because > target_sw/tester_sw is set to NoneType. > This patch fixes the problem. > > Signed-off-by: Yuichi Ito > --- > ryu/tests/switch/tester.py | 35

Re: [Ryu-devel] SDNi : exchange message between ryu controllers

2014-03-16 Thread FUJITA Tomonori
On Thu, 6 Mar 2014 20:31:49 + benamrane fouad wrote: > I would implement a topology when each openflow controller exchange his > stat with other controllers, i found same documentation talk about SDNi in > draft but not standarize until now, i want same suggest to implement this > scenario, P

Re: [Ryu-devel] Setting Flows in a multi_switch topology

2014-03-16 Thread FUJITA Tomonori
On Mon, 10 Mar 2014 17:51:51 + Anna kos wrote: > Hi, > I will have to set up flows in multi-switch network, the flows are to be > set between particular host in switches. There is simple example for > floodlight controller but couldn't find similar for ryu-controller > > I am guessing that f

Re: [Ryu-devel] How to run multiple app and receive PacketIn event in order

2014-03-16 Thread FUJITA Tomonori
On Fri, 14 Mar 2014 20:23:00 +0800 "Vincent.Chao" wrote: > If I run two app like: ryu-manager My_app.py Simple_Switch.py > The result will be: > EVENT ofp_event-> My_app EventOFPPacketIn > EVENT ofp_event-> SimpleSwitch EventOFPPacketIn > [Debug msg] this is My_app get packetin > [Debug msg] this

Re: [Ryu-devel] [PATCH v3 00/18] of1.4: Increased message coverage

2014-03-16 Thread FUJITA Tomonori
On Tue, 11 Mar 2014 10:41:57 +0900 Simon Horman wrote: > > Hi, > > The aim of this series is to add an implementation of and > tests for the following messages: > > * Flow monitor request > + Now present in the v5 branch of of_protocol > + Was pull request 67 > https://github.com/FlowF

Re: [Ryu-devel] ryu exception

2014-03-16 Thread FUJITA Tomonori
On Fri, 14 Mar 2014 13:44:08 -0700 cnm...@gmail.com wrote: > > Hi, > > I am experiencing an runtime exception with Ryu, when i entered this REST > request: > > curl http://0.0.0.0:8080/stats/flow/272744406898180 > > The log is as below: > > (16470) accepted ('127.0.0.1', 46669) > Error in th

Re: [Ryu-devel] [PATCH v2 2/3] ofctl_v1_2/3: Convert IP fields to string with dotted decimal mask

2014-03-16 Thread FUJITA Tomonori
On Tue, 11 Mar 2014 13:49:24 +0800 Wei-Li Tang wrote: > This enables match_ip*_to_str() functions to output IP address with > dotted decimal subnet mask if the mask cannot be represented in CIDR > format. > > Reported-by: Yi-Ching Lee > Reported-by: Li-Der Chou > Signed-off-by: Wei-Li Tang >

Re: [Ryu-devel] [PATCH] sw test tool: avoid test termination in initialization

2014-03-16 Thread FUJITA Tomonori
On Fri, 14 Mar 2014 13:57:46 +0900 "watanabe.fumitaka" wrote: > The initialization error of the flow tables causes forced termination of the > test, > and has become the hindrance of execution of other tests. > This patch changes operation of the flow tables initialization error > to avoid for

Re: [Ryu-devel] [PATCH] pyang plugin to generate of_config.generated_classes

2014-03-16 Thread FUJITA Tomonori
On Wed, 12 Mar 2014 16:13:37 +0900 YAMAMOTO Takashi wrote: > the current version of generated_classes was written by hand. > this plugin allows it to be auto-generated from the yang module > of OF-Config if/when it's available. > > unfortunately, there seems to be no yang modules usable for this

Re: [Ryu-devel] [PATCH] fix NX_EXPERIMENTER_ID

2014-03-16 Thread FUJITA Tomonori
On Wed, 12 Mar 2014 14:24:00 +0900 YAMAMOTO Takashi wrote: > also, comment registry url. > > Signed-off-by: YAMAMOTO Takashi > --- > ryu/ofproto/ofproto_common.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Applied. --

Re: [Ryu-devel] [PATCH] library_packet.rst: fix an example code

2014-03-16 Thread FUJITA Tomonori
On Thu, 13 Mar 2014 15:05:43 +0900 YAMAMOTO Takashi wrote: > Reported by Sebastian Gebhard on ryu-devel@. > > Signed-off-by: YAMAMOTO Takashi > --- > doc/source/library_packet.rst | 14 ++ > 1 file changed, 10 insertions(+), 4 deletions(-) Applied, thanks. ---

Re: [Ryu-devel] [PATCH] ofctl_v1_3: Fix unsuitable log

2014-03-16 Thread FUJITA Tomonori
On Thu, 13 Mar 2014 07:04:50 + Satoshi Kobayashi wrote: > ofproto_v1_3.OFPGT_ALL is 0 and 0 is False on Python. When using type 'ALL', > the following is set to True. > > if not type_: > LOG.debug('Unknown type: %s', group.get('type')) > > Therefore, the log unsuitable is outputted: >

Re: [Ryu-devel] [PATCH] ofctl_v1_2: Fix unsuitable log

2014-03-16 Thread FUJITA Tomonori
On Fri, 14 Mar 2014 19:20:02 +0900 Satoshi Kobayashi wrote: > When using type 'ALL', the log unsuitable is outputted: > Unknown type: ALL > > Signed-off-by: Satoshi Kobayashi > --- > ryu/lib/ofctl_v1_2.py |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Thanks a lot! ---

Re: [Ryu-devel] [PATCH 1/3] add ryu.cfg

2014-03-16 Thread FUJITA Tomonori
On Wed, 12 Mar 2014 12:52:28 +0900 YAMAMOTO Takashi wrote: > also, make CONF accessible via RyuApp.CONF. > add a comment to explain the intention. > > Signed-off-by: YAMAMOTO Takashi > --- > ryu/base/app_manager.py | 2 ++ > ryu/cfg.py | 35 +++ >

Re: [Ryu-devel] Does ryu support OVSDB protocol?

2014-03-16 Thread FUJITA Tomonori
On Sat, 15 Mar 2014 11:37:38 -0500 Dong Mo wrote: > Is there any example to interact with ovsdb using ryu? https://github.com/osrg/ryu/blob/master/ryu/app/quantum_adapter.py Files importing stuff under lib/ovs. -- Lear

Re: [Ryu-devel] [PATCH] ryu.conf: obsoleted argument used in sample configuration

2014-03-16 Thread FUJITA Tomonori
On Tue, 11 Mar 2014 13:58:53 +0800 Wei-Li Tang wrote: > ofp_listen_port was obsoleted and users should use ofp_tcp_listen_port > (or ofp_ssl_listen_port if ssl enabled) instead. > > Signed-off-by: Wei-Li Tang > --- > etc/ryu/ryu.conf |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [Ryu-devel] [PATCH v2 3/3] ofctl_v1_2/3: IP arbitrary bitmask support

2014-03-16 Thread FUJITA Tomonori
On Tue, 11 Mar 2014 13:49:25 +0800 Wei-Li Tang wrote: > Openflow 1.1 and later versions allow the use of IP address with > arbitrary bitmask in match fields. This introduces new match fields > for arbitrary bitmask support in REST API. Something like the following doesn't work? The following ca

Re: [Ryu-devel] [PATCH v2 1/3] ofctl_v1_2/3: IPv4 dotted decimal subnet mask support

2014-03-16 Thread FUJITA Tomonori
Very sorry about the dealy, On Tue, 11 Mar 2014 13:49:23 +0800 Wei-Li Tang wrote: > This enables to_match_ip() to accept IPv4 address with dotted decimal > subnet mask or ACL hybrid CIDR. > > Given 3 match field values below: > > '192.168.1.0/24' > '192.168.1.0/255.255.255.0' > '19