[Ryu-devel] [PATCH v3 02/11] base/app_manager: pylint

2013-06-05 Thread Isaku Yamahata
W:225,24:AppManager.instantiate_apps: Redefining built-in 'list' Signed-off-by: Isaku Yamahata --- ryu/base/app_manager.py |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index 173e35c..9709657 100644 --- a/ryu/base/app

[Ryu-devel] [PATCH v3 01/11] ofproto/__init__: don't catch all exception

2013-06-05 Thread Isaku Yamahata
It's bad practise to catch all exception unconditionally. Use more specific exception. pylint > W: 39,4: No exception type(s) specified Signed-off-by: Isaku Yamahata --- ryu/ofproto/__init__.py |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/__init__.py b/ryu/

[Ryu-devel] [PATCH v3 11/11] bundle: add bundle for OpenStack tunnel apps

2013-06-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/bundle/os_gre.py | 37 + 1 file changed, 37 insertions(+) create mode 100644 ryu/bundle/os_gre.py diff --git a/ryu/bundle/os_gre.py b/ryu/bundle/os_gre.py new file mode 100644 index 000..4b3 --- /dev/null +++ b/

[Ryu-devel] [PATCH v3 03/11] ryu/app_manager: add a methods for waiting application loop

2013-06-05 Thread Isaku Yamahata
Later ryu-manager call this method to wait for app loop. Otherwise ryu-manager exits without waiting for apps. Signed-off-by: Isaku Yamahata Conflicts: ryu/base/app_manager.py --- ryu/base/app_manager.py |7 +++ 1 file changed, 7 insertions(+) diff --git a/ryu/base/app_manager.

[Ryu-devel] [PATCH v3 10/11] app/simple_switch: make it runnable

2013-06-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/app/simple_switch.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/ryu/app/simple_switch.py b/ryu/app/simple_switch.py index 0397bc4..7a49f28 100644 --- a/ryu/app/simple_switch.py +++ b/ryu/app/simple_switch.py @@ -13,6 +13,10 @@ # Se

[Ryu-devel] [PATCH v3 09/11] bin: simplify ryu-manager

2013-06-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- bin/ryu-manager | 55 +-- 1 file changed, 5 insertions(+), 50 deletions(-) diff --git a/bin/ryu-manager b/bin/ryu-manager index 62188de..7afbeec 100755 --- a/bin/ryu-manager +++ b/bin/ryu-manager @@ -16,70 +1

[Ryu-devel] [PATCH v3 06/11] ryu/flags: register cli options in flags.py

2013-06-05 Thread Isaku Yamahata
The flags.py is the centralized place to handle options. Register all cli options in flags.py. Later startup routine import flags.py to register cli options. Signed-off-by: Isaku Yamahata --- ryu/flags.py | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git

[Ryu-devel] [PATCH v3 08/11] base: add helper functions for main

2013-06-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata -- Change v2 -> v3: - accept positional argument --- ryu/base/main.py | 100 ++ 1 file changed, 100 insertions(+) create mode 100644 ryu/base/main.py diff --git a/ryu/base/main.py b/ryu/base/main.py new file mode

[Ryu-devel] [PATCH v3 05/11] app_manager: allow load_apps to accept class object and RyuBundle

2013-06-05 Thread Isaku Yamahata
Now RyuApp is able to load bundle, a collection of RyuApp, and accept class object directly. Later this feature will simplifies ryu start up. Signed-off-by: Isaku Yamahata --- ryu/base/app_manager.py | 106 +++ 1 file changed, 89 insertions(+), 17 del

[Ryu-devel] [PATCH v3 07/11] app/quantum_adapter: move specific options to quantum adapter module

2013-06-05 Thread Isaku Yamahata
move registration of quantum adapter into quantum adapter module. Good for modularization. Signed-off-by: Isaku Yamahata --- ryu/app/quantum_adapter.py | 23 +++ ryu/flags.py | 26 -- 2 files changed, 27 insertions(+), 22 deletions(-)

[Ryu-devel] [PATCH v3 04/11] ryu/utils: introduce import_class helper function

2013-06-05 Thread Isaku Yamahata
which will be used by later patch. Signed-off-by: Isaku Yamahata --- ryu/utils.py |6 ++ 1 file changed, 6 insertions(+) diff --git a/ryu/utils.py b/ryu/utils.py index d5b4479..323aa9e 100644 --- a/ryu/utils.py +++ b/ryu/utils.py @@ -37,6 +37,12 @@ def import_module(modname): retur

[Ryu-devel] [PATCH v3 00/11] introduce bundle, a group of RyuApp

2013-06-05 Thread Isaku Yamahata
This patch series introduce bundle, a group of RyuApp. It simplifies ryu startup. For example python ryu/bundle/os_gre.py ryu-manager ryu/bundle/os_gre.py python ryu/bundle/os_gre.py --verbose ryu/app/debug/console.py instead of ./bin/ryu-manager ryu/app/gre_tunnel.py \

[Ryu-devel] [PATCH] For convenience, make packet into a sequence type

2013-06-05 Thread Shaun Crampton
Protocols can mow be accesed as packet[n]. Signed-off-by: Shaun Crampton --- ryu/lib/packet/packet.py | 12 1 file changed, 12 insertions(+) diff --git a/ryu/lib/packet/packet.py b/ryu/lib/packet/packet.py index 84e5bf8..2ef08c1 100644 --- a/ryu/lib/packet/packet.py +++ b/ryu/li

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

2013-06-05 Thread Shaun Crampton
I resent the patch using "git send-email" and sendmail. Hopefully it will get through this time. -Shaun On 01/06/2013 05:17, "FUJITA Tomonori" wrote: >I really like improvement for Ryu packet library! > >However, like your other patches, it's mal-formed. Can you please >resend? > >On Fri, 24 Ma

Re: [Ryu-devel] Sending MeterMod messages

2013-06-05 Thread Philipp Aeschlimann
2013/6/5 Isaku Yamahata : > Looks good. Thank you for quick respin. > Can you please send the patch to ryu-devel? > > thanks, > I missed the answer-all-button...zzz > > For consistency and OF-wire stringify, please use cls_meter_band_xxx. > i.e. > cls.cls_meter_band_type = type_ >

Re: [Ryu-devel] [PATCH 1/3] lib/packet/packet_base: add tostring function

2013-06-05 Thread Isaku Yamahata
On Wed, Jun 05, 2013 at 01:57:34PM +0900, watanabe.fumitaka wrote: > > Signed-off-by: WATANABE Fumitaka > --- > ryu/lib/packet/packet_base.py | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/ryu/lib/packet/packet_base.py b/ryu/lib/packet/packet_base.py > index b0ae

Re: [Ryu-devel] [PATCH 3/3] lib/packet/ethernet and ipv4: add an individual conversion

2013-06-05 Thread Isaku Yamahata
Why not _STR_CONVERT be class attribute instead of instance attribute? thanks, On Wed, Jun 05, 2013 at 01:58:19PM +0900, watanabe.fumitaka wrote: > Add an individual conversion process to ethernet.py and ipv4.py > > Individual conversion is needed to the variable it cannot be > understood that d

Re: [Ryu-devel] Ryu OpenFlow 1.3 issue

2013-06-05 Thread Isaku Yamahata
Hi. It's already fixed by change set of 95963e3cedeb9b7371770414037654e675f325ff which is same to your proposal. Please switch to Ryu 2.0 release or use the git repository. thanks, On Wed, Jun 05, 2013 at 03:25:45PM +0300, Oren Spector wrote: > Hi, > > > > Thanks for the fix. It works fine.

Re: [Ryu-devel] Sending MeterMod messages

2013-06-05 Thread Isaku Yamahata
Thank you for update. Basically looks good except some comments inlined. On Wed, Jun 05, 2013 at 03:25:41PM +0200, Philipp Aeschlimann wrote: > Hey > > Here we go with the MeterMod messages, still todo is: > > - parsers methods for DSCP and experimenter > - OFPMeterConfigStats should parse all

[Ryu-devel] Sending MeterMod messages

2013-06-05 Thread Philipp Aeschlimann
Hey Here we go with the MeterMod messages, still todo is: - parsers methods for DSCP and experimenter - OFPMeterConfigStats should parse all MeterBandTypes, not only common header - THX for all comments in advance >From 3fca86530024f3b7d2429a72609981e606398085 Mon Sep 17 00:00:00 2001 From: Aesc

Re: [Ryu-devel] Ryu OpenFlow 1.3 issue

2013-06-05 Thread Oren Spector
Hi, Thanks for the fix. It works fine. I encountered another problem related to OpenFlow 1.3. My application waits for the PORT_STATUS event. When connecting to an OpenFlow 1.0 client it works fine, but when connecting to an OpenFlow 1.3 client the following error occurs: Traceback (mos

[Ryu-devel] [PATCH v2 9/9] bundle: add bundle for OpenStack tunnel apps

2013-06-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/bundle/os_gre.py | 37 + 1 file changed, 37 insertions(+) create mode 100644 ryu/bundle/os_gre.py diff --git a/ryu/bundle/os_gre.py b/ryu/bundle/os_gre.py new file mode 100644 index 000..4b3 --- /dev/null +++ b/

[Ryu-devel] [PATCH v2 5/9] app_manager: allow load_apps to accept class object and RyuBundle

2013-06-05 Thread Isaku Yamahata
Now RyuApp is able to load bundle, a collection of RyuApp, and accept class object directly. Later this feature will simplifies ryu start up. Signed-off-by: Isaku Yamahata --- ryu/base/app_manager.py | 106 +++ 1 file changed, 89 insertions(+), 17 del

[Ryu-devel] [PATCH v2 7/9] bin: simplify ryu-manager

2013-06-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- bin/ryu-manager | 51 --- 1 file changed, 4 insertions(+), 47 deletions(-) diff --git a/bin/ryu-manager b/bin/ryu-manager index 62188de..7ea0193 100755 --- a/bin/ryu-manager +++ b/bin/ryu-manager @@ -16,31 +16,10

[Ryu-devel] [PATCH v2 6/9] base: add helper functions for main

2013-06-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/base/main.py | 91 ++ 1 file changed, 91 insertions(+) create mode 100644 ryu/base/main.py diff --git a/ryu/base/main.py b/ryu/base/main.py new file mode 100644 index 000..a414d01 --- /dev/null +++ b

[Ryu-devel] [PATCH v2 2/9] base/app_manager: pylint

2013-06-05 Thread Isaku Yamahata
W:225,24:AppManager.instantiate_apps: Redefining built-in 'list' Signed-off-by: Isaku Yamahata --- ryu/base/app_manager.py |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index 173e35c..9709657 100644 --- a/ryu/base/app

[Ryu-devel] [PATCH v2 1/9] ofproto/__init__: don't catch all exception

2013-06-05 Thread Isaku Yamahata
It's bad practise to catch all exception unconditionally. Use more specific exception. pylint > W: 39,4: No exception type(s) specified Signed-off-by: Isaku Yamahata --- ryu/ofproto/__init__.py |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/__init__.py b/ryu/

[Ryu-devel] [PATCH v2 3/9] ryu/app_manager: add a methods for waiting application loop

2013-06-05 Thread Isaku Yamahata
Later ryu-manager call this method to wait for app loop. Otherwise ryu-manager exits without waiting for apps. Signed-off-by: Isaku Yamahata Conflicts: ryu/base/app_manager.py --- ryu/base/app_manager.py |7 +++ 1 file changed, 7 insertions(+) diff --git a/ryu/base/app_manager.

[Ryu-devel] [PATCH v2 0/9] introduce bundle, a group of RyuApp

2013-06-05 Thread Isaku Yamahata
This patch series introduce bundle, a group of RyuApp. It simplifies ryu startup. For example python ryu/bundle/os_gre.py or ryu-manager ryu/bundle/os_gre.py instead of ./bin/ryu-manager ryu/app/gre_tunnel.py \ ryu/app/quantum_adapter.py \ ryu/app/r

[Ryu-devel] [PATCH v2 8/9] app/simple_switch: make it runnable

2013-06-05 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/app/simple_switch.py | 14 ++ 1 file changed, 14 insertions(+) diff --git a/ryu/app/simple_switch.py b/ryu/app/simple_switch.py index 0397bc4..7a49f28 100644 --- a/ryu/app/simple_switch.py +++ b/ryu/app/simple_switch.py @@ -13,6 +13,10 @@ # Se

[Ryu-devel] [PATCH v2 4/9] ryu/utils: introduce import_class helper function

2013-06-05 Thread Isaku Yamahata
which will be used by later patch. Signed-off-by: Isaku Yamahata --- ryu/utils.py |6 ++ 1 file changed, 6 insertions(+) diff --git a/ryu/utils.py b/ryu/utils.py index d5b4479..323aa9e 100644 --- a/ryu/utils.py +++ b/ryu/utils.py @@ -37,6 +37,12 @@ def import_module(modname): retur

[Ryu-devel] [PATCH 2/2] of13: prefix private attributes of OFPMatch with _

2013-06-05 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_3_parser.py | 452 +++-- 1 file changed, 230 insertions(+), 222 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 86991d7..4150307 100644 --- a/ryu/o

[Ryu-devel] [PATCH 1/2] of12: prefix private attributes of OFPMatch with _

2013-06-05 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_2_parser.py| 390 +++--- ryu/tests/unit/ofproto/test_parser_v12.py | 108 - 2 files changed, 253 insertions(+), 245 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofpr

[Ryu-devel] [PATCH] of13: add missing itertools import

2013-06-05 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_3_parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 524994d..86991d7 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_

[Ryu-devel] [PATCH] nx_match: some comments

2013-06-05 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/nx_match.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py index be65eb5..40c98df 100644 --- a/ryu/ofproto/nx_match.py +++ b/ryu/ofproto/nx_match.py @@ -114,6 +114,8 @@ class FlowWildcard