Re: [Ryu-devel] CLI arguments for an app

2014-05-27 Thread Wei-Li Tang
Hello Tom, CLI option should be registered before CONF being initialized in cmd/manager.py. You can simply import your app in cmd/manager.py in advance as below: diff --git a/ryu/cmd/manager.py b/ryu/cmd/manager.py index 4710547..a9d5101 100755 --- a/ryu/cmd/manager.py +++ b/ryu/cmd/manager.py @@

[Ryu-devel] CLI arguments for an app

2014-05-27 Thread Thomas F Herbert
Ryu experts, I have a question, I am writing a ryu app. Is there a way to add command line configuration arguments when writing an app? I tried the following also used in wsgi.py app but it didn't work. from ryu import cfg CONF = cfg.CONF CONF.register_cli_opts([ cfg.StrOpt('policy', def

Re: [Ryu-devel] [PATCH 6/8] bgp: import lacking constants

2014-05-27 Thread FUJITA Tomonori
On Wed, 7 May 2014 09:48:02 + ISHIDA Wataru wrote: > > Signed-off-by: ISHIDA Wataru > --- > ryu/services/protocols/bgp/speaker.py |2 ++ > 1 file changed, 2 insertions(+) Somehow, I overlooked this. Applied, thanks. --

[Ryu-devel] [PATCH 2/3] bgp: set bgp-config-file default None

2014-05-27 Thread FUJITA Tomonori
allowing not use a config file. Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/bgp/application.py | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ryu/services/protocols/bgp/application.py b/ryu/services/protocols/bgp/application.py index 0164926..d9e3ebf 10064

[Ryu-devel] [PATCH 3/3] bgp: add JSON RPC API

2014-05-27 Thread FUJITA Tomonori
Adds JSON RPC API on web socket to dynamically configure bgp. This is the initial support (there are still tons of APIs that are not exported via JSON RPC API). $ sudo PYTHONPATH=.:$PYTHONPATH ryu-manager ryu/services/protocols/bgp/api/jsonrpc.py ryu/services/protocols/bgp/application.py then y

[Ryu-devel] [PATCH 1/3] bgp: fix non configured peer exception

2014-05-27 Thread FUJITA Tomonori
peer is None if the connection comes from non configured bgp peer. Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/bgp/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/services/protocols/bgp/core.py b/ryu/services/protocols/bgp/core.py index 06557c

[Ryu-devel] DOT: A Distributed OpenFlow Testbed

2014-05-27 Thread Faizul Bari
Dear Ryu fellows, We would like to announce the availability of DOT, a Distributed OpenFlow Testbed that can emulate large scale SDNs (http://dothub.org/). DOT distributes the emulated network across several physical machines to provide guaranteed CPU time, bandwidth, and network latency for the

[Ryu-devel] bad hardware port error

2014-05-27 Thread Ricardo Schmidt
Hi all, We couldn't find supporting material about the following problem on google. Maybe some in the list is able to help us. We are using Ryu with OpenFlow 1.3 and OVS 2.1.2. We are not really sure why we received the following message: - error type: OFPET_PORT_MOD_FAILED - error code: OFPPMFC_

Re: [Ryu-devel] help with ryu config

2014-05-27 Thread Yoshihiro Kaneko
Hi, 2014-05-27 14:08 GMT+09:00 马超 : (snip) >/etc/ryu/ryu.conf > > [DEFAULT] > # app_lists = $RYU_APPS > # mac address based isolation > # app_lists = ryu.app.simple_isolation,ryu.app.rest > # vlan > #app_lists=ryu.app.quantum_adapter,ryu.app.rest,ryu.app.rest_conf_switch,ryu.app.rest_quantum,r

Re: [Ryu-devel] [PATCH] doc: add components page

2014-05-27 Thread FUJITA Tomonori
On Tue, 27 May 2014 19:07:47 +0900 Yoshihiro Kaneko wrote: > port from wiki. > > dummy quantumclient is necessary to import ryu.app.quantum_adapter by > sphinx.ext.autodoc. > > Signed-off-by: Yoshihiro Kaneko > --- > doc/source/api_ref.rst|2 +- > doc/source/compon

Re: [Ryu-devel] [PATCH] bgp: use host's ssh host key if not specified

2014-05-27 Thread FUJITA Tomonori
On Tue, 27 May 2014 11:04:54 +0900 FUJITA Tomonori wrote: > Signed-off-by: FUJITA Tomonori > --- > ryu/services/protocols/bgp/operator/ssh.py | 17 - > 1 file changed, 16 insertions(+), 1 deletion(-) Applied.

Re: [Ryu-devel] [PATCH 0/7] sw test tool: Enable using group tables

2014-05-27 Thread FUJITA Tomonori
On Tue, 27 May 2014 10:02:17 +0900 Yuichi Ito wrote: > The switch test tool is now enabled to install and use group entries as > follows: > > "prerequisite":[ > { > "OFPGroupMod":{ > "group_id":0, > "type":1, >

[Ryu-devel] [PATCH] doc: add components page

2014-05-27 Thread Yoshihiro Kaneko
port from wiki. dummy quantumclient is necessary to import ryu.app.quantum_adapter by sphinx.ext.autodoc. Signed-off-by: Yoshihiro Kaneko --- doc/source/api_ref.rst|2 +- doc/source/components.rst | 172 + doc/source/conf.