[Ryu-devel] [PATCH 2/3] ofp_event: add a function to find Event class for given OFP class

2014-03-17 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/controller/ofp_event.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ryu/controller/ofp_event.py b/ryu/controller/ofp_event.py index 124a93e..d0b00e8 100644 --- a/ryu/controller/ofp_event.py +++ b/ryu/controller/ofp_event.py @

[Ryu-devel] [PATCH 1/3] RyuApp: add methods to listen/unlisten specific event

2014-03-17 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/base/app_manager.py | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index 669e58b..6aeb317 100644 --- a/ryu/base/app_manager.py +++ b/ryu/base/app_manager.py @

[Ryu-devel] [PATCH 3/3] ryu.app.ofctl: implement reception of reply message

2014-03-17 Thread YAMAMOTO Takashi
an example: msg = parser.OFPEchoRequest(datapath=datapath) result = ofctl.api.send_msg(self, msg, reply_cls=parser.OFPEchoReply) assert isinstance(result, parser.OFPEchoReply) Signed-off-by: YAMAMOTO Takashi --- ryu/app/ofctl/api.py | 5 +++-- ryu/app/ofctl/event.py | 3 ++-

[Ryu-devel] [PATCH] ofp_event: fix a typo

2014-03-17 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/controller/ofp_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/controller/ofp_event.py b/ryu/controller/ofp_event.py index 124a93e..2175e50 100644 --- a/ryu/controller/ofp_event.py +++ b/ryu/controller/ofp_event.py @@ -58,7

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

2014-03-17 Thread Wei-Li Tang
Openflow 1.1 and later versions allow the use of IP address with arbitrary bitmask in match fields. This adds arbitrary bitmask support to related functions. After applying this patch, it's no longer compatible with ACL hybrid CIDR format (Cisco-like ACL bitmasks) because such format exists only i

[Ryu-devel] [PATCH v4 4/5] Add request forward message support

2014-03-17 Thread Simon Horman
Signed-off-by: Simon Horman --- v4 * Inherit MsgInMsgBase instead of MsgBase - This is a new mechanism to allow messages inside messages v3 * No change v2 * First post --- ryu/ofproto/ofproto_v1_4_parser.py | 48 ++ 1 file changed, 48 insertions(+) diff -

[Ryu-devel] [PATCH v4 5/5] Add request forward message unit test

2014-03-17 Thread Simon Horman
Signed-off-by: Simon Horman --- v4 * No change v3 * Fix sequence number in filenames: Rename 5-70* => 5-71 v2 * First post --- .../of14/5-71-ofp_requestforward.packet| Bin 0 -> 56 bytes ryu/tests/packet_data_generator/src/x5.erl | 22 ++- .../json/of14/5-71-of

[Ryu-devel] [PATCH v4 2/5] of14: Add bundle add message support

2014-03-17 Thread Simon Horman
--- v4 * Inherit MsgInMsgBase instead of MsgBase - This is a new mechanism to allow messages inside messages v2 - v3 * No change --- ryu/ofproto/ofproto_v1_4.py| 5 ++- ryu/ofproto/ofproto_v1_4_parser.py | 63 +- 2 files changed, 66 insertions(+), 2

[Ryu-devel] [PATCH v4 1/5] Allow messages inside messages

2014-03-17 Thread Simon Horman
Bundle Add Message and Request Forward Message, which is part of OpenFlow 1.4, encapsulates an OpenFlow message in side an OpenFlow message. This patch prepares for this by adding a MsgInMsgBase class, a subclass of MsgBase which allows its subclasses to include subclasses of either MsgInMsgBase o

[Ryu-devel] [PATCH v4 3/5] of14: Add bundle add message unit test

2014-03-17 Thread Simon Horman
Signed-off-by: Simon Horman --- v4 * No change v3 * Update Data to use bytes rather than arrays of words * Correct sequence number in filenames: 5-69* => 5-70* v2 * Update JSON using normalize_json.py --- .../of14/5-70-ofp_bundle_add_msg.packet| Bin 0 -> 80 bytes ryu/tests/packet_

[Ryu-devel] [PATCH v4 0/5] of1.4: Increased message coverage

2014-03-17 Thread Simon Horman
Hi, The aim of this series is to add an implementation of and tests for the following messages: * Bundle add message + Now present in the v5 branch of of_protocol * Request forward message + Now present in the v5 branch of of_protocol + Was pull request 70 https://github.com/FlowForwar

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

2014-03-17 Thread Dong Mo
Thanks. Is there any good tutorial, docs or talks for the Ryu controller's software architecture? Thanks -Mo 2014-03-17 1:59 GMT-05:00 Wei-Li Tang : > 2014-03-17 14:53 GMT+08:00 Dong Mo : > > Dear list, >> >> I am very new to Ryu and here are two beginner questions: >> >> I have a full openflow

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

2014-03-17 Thread FUJITA Tomonori
On Mon, 17 Mar 2014 14:12:54 +0800 Wei-Li Tang wrote: > 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 relate

[Ryu-devel] [PATCH 6/7] add bin/ryu to PYLINT_INCLUDE

2014-03-17 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index e558f1d..50a4b02 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -90,7 +90,7 @@ run_tests() { run_pylint() { echo "Running pylint ..." PYLI

[Ryu-devel] [PATCH 7/7] document ryu command

2014-03-17 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- doc/source/conf.py | 2 ++ doc/source/man/ryu.rst | 20 2 files changed, 22 insertions(+) create mode 100644 doc/source/man/ryu.rst diff --git a/doc/source/conf.py b/doc/source/conf.py index fcec4c6..56eff88 100644 --- a/doc/source/c

[Ryu-devel] [PATCH 2/7] doc: remove a stale reference

2014-03-17 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- doc/source/man/ryu_manager.rst | 4 1 file changed, 4 deletions(-) diff --git a/doc/source/man/ryu_manager.rst b/doc/source/man/ryu_manager.rst index 7dabac4..298b9a3 100644 --- a/doc/source/man/ryu_manager.rst +++ b/doc/source/man/ryu_manager.rst @@ -15,

[Ryu-devel] [PATCH 5/7] add bin/ryu

2014-03-17 Thread YAMAMOTO Takashi
this new command takes a sub-command name as its first positional argument and passes the rest of arguments to the corresponding sub-module. for example, 'manager' sub-command is an equivalent to bin/ryu-manager. this commit does not replace the existing commands like ryu-manager. this merely adds

[Ryu-devel] [PATCH 3/7] ryu.cfg: re-export some more stuff for convenience

2014-03-17 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/cfg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ryu/cfg.py b/ryu/cfg.py index 62ce33a..2495961 100644 --- a/ryu/cfg.py +++ b/ryu/cfg.py @@ -36,10 +36,13 @@ CONF = oslo.config.cfg.CONF # re-export for convenience +from oslo.config.cfg impo

[Ryu-devel] [PATCH 4/7] allow overriding argv and progname

2014-03-17 Thread YAMAMOTO Takashi
this will be used by the comming 'ryu' command. Signed-off-by: YAMAMOTO Takashi --- ryu/cmd/manager.py | 8 +--- ryu/cmd/of_config_cli.py | 5 +++-- ryu/cmd/rpc_cli.py | 4 ++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ryu/cmd/manager.py b/ryu/cmd/manager.p

[Ryu-devel] [PATCH 1/7] add ryu-manager to PYLINT_INCLUDE

2014-03-17 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index e47b4c3..e558f1d 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -90,7 +90,7 @@ run_tests() { run_pylint() { echo "Running pylint ..." PYLI

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

2014-03-17 Thread Wei-Li Tang
2014-03-17 14:53 GMT+08:00 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? > insert `--observe-l