Re: [Ryu-devel] [PATCH] add interactive command line interface

2012-11-08 Thread OHMURA Kei
Hi, 2012/11/7 FUJITA Tomonori : > This adds the feature to configure the log levels dynamically via CLI > (like a commercial switch). > > - I don't like to access the internal of logging module. However, > seems that there is no way to know the list of used Loggers. Should > we add a wrapper f

Re: [Ryu-devel] how to configure openflow connection to openflow switch

2012-11-08 Thread david liu
Hi Fujita San, Thank you very much for the advise, I configured my switch & the RYU-manager is connected with hello handshake, I will move on to the next step to run the application. I will keep you updated. Best Regards David On 11/07/2012 08:52 PM, FUJITA Tomonori wrote: > Hi, thanks for tr

Re: [Ryu-devel] [PATCH] ryu/controller/controller: add SSL/TLS support

2012-11-08 Thread Simon Horman
On Thu, Nov 08, 2012 at 05:02:04PM +0900, OHMURA Kei wrote: > 2012/11/8 Simon Horman : > > On Thu, Nov 08, 2012 at 12:15:44PM +0900, OHMURA Kei wrote: > >> 2012/11/8 Simon Horman : > >> > On Thu, Nov 08, 2012 at 07:01:45AM +0900, OHMURA Kei wrote: > >> >> 2012/11/7 FUJITA Tomonori : > >> >> > On We

[Ryu-devel] [PATCH v5 26/26] docs: tunneling app

2012-11-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- Changes v3 -> v4: - clarification - some more devstack variables --- doc/source/openstack.rst|1 + doc/source/tunneling_with_openstack.rst | 324 +++ 2 files changed, 325 insertions(+) create mode 100644 doc/sourc

[Ryu-devel] [PATCH v5 17/26] ryu/app/client: support conf_switch

2012-11-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/app/client.py | 44 ++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/ryu/app/client.py b/ryu/app/client.py index de74357..04d5fec 100644 --- a/ryu/app/client.py +++ b/ryu/app/client.py @@ -15,6 +15,

[Ryu-devel] [PATCH v5 16/26] ryu/app: REST API to set per-switch configuration

2012-11-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/app/conf_switch_key.py | 18 + ryu/app/rest_conf_switch.py | 173 +++ 2 files changed, 191 insertions(+) create mode 100644 ryu/app/conf_switch_key.py create mode 100644 ryu/app/rest_conf_switch.py diff --git

[Ryu-devel] [PATCH v5 24/26] app/tunnel_port_updater: application that creates/deletes tunnel ports

2012-11-08 Thread Isaku Yamahata
This application dynamically creates/deletes tunnel ports for GRE tunnel app. Signed-off-by: Isaku Yamahata --- Changes v3 -> v4: - 'key=flow' option to tunnel port --- ryu/app/tunnel_port_updater.py | 470 1 file changed, 470 insertions(+) create mode

[Ryu-devel] [PATCH v5 11/26] app/rest_tunnel: REST API for tunnel

2012-11-08 Thread Isaku Yamahata
With this API, other component such as openstack quantum tells informations necessary for tunnel. - tunnel key corresponding to network id - tunnel port related information which tunnel port of a given datapath connected to which remote datapath Signed-off-by: Isaku Yamahata --- Changes v4 -> v

[Ryu-devel] [PATCH v5 25/26] app: Add quantum adapter

2012-11-08 Thread Isaku Yamahata
From: Yoshihiro Kaneko Signed-off-by: Yoshihiro Kaneko Signed-off-by: Isaku Yamahata --- ryu/app/quantum_adapter.py | 552 ryu/flags.py | 28 +++ 2 files changed, 580 insertions(+) create mode 100644 ryu/app/quantum_adapter.py dif

[Ryu-devel] [PATCH v5 14/26] app/gre_tunnel: implement GRETunnel app

2012-11-08 Thread Isaku Yamahata
- race masking layer - debug app: PortSetDebug - implement GRETunnel app: app/gre_tunnel Signed-off-by: Isaku Yamahata --- Changes v4 -> v5: - use tunnel specific exceptions Changes v3 -> v4: - duplicated output to tunnel port gre_tunnel: not to use controller.is_reserved_port Signed-off-by: I

[Ryu-devel] [PATCH v5 13/26] bin/ryu-client: support gre tunnel client

2012-11-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - de-GRE --- bin/ryu-client | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/bin/ryu-client b/bin/ryu-client index 20eeff6..e121f61 100755 --- a/bin/ryu-client +++ b/bin/ryu-client @@ -19,6 +19,7 @@ im

[Ryu-devel] [PATCH v5 20/26] lib/ovs: add constants for ovsdb Open_vSwitch db

2012-11-08 Thread Isaku Yamahata
Those constants are used to manipulate Open_vSwitch db of ovsdb. Signed-off-by: Isaku Yamahata --- ryu/lib/ovs/vswitch_idl.py | 175 1 file changed, 175 insertions(+) create mode 100644 ryu/lib/ovs/__init__.py create mode 100644 ryu/lib/ovs/vswitch

[Ryu-devel] [PATCH v5 23/26] lib/synchronized: introduce helper decorator for synchronization

2012-11-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/lib/synchronized.py | 29 + 1 file changed, 29 insertions(+) create mode 100644 ryu/lib/synchronized.py diff --git a/ryu/lib/synchronized.py b/ryu/lib/synchronized.py new file mode 100644 index 000..d1129db --- /dev/null ++

[Ryu-devel] [PATCH v5 05/26] dpset: add port{add, delete, modify} event for convenience and helper functions

2012-11-08 Thread Isaku Yamahata
It is sometimes commonly interesting to track datapath/port appearance/disappearance. The applications usually want to see that ports appear after datapath becomes ready, and ports disappear when datapath is dead. It requires to handle properly events, hand shaking, port_mod event, switch_feature_r

[Ryu-devel] [PATCH v5 19/26] ryu/controller/network.py: add helper functions for tunnel updater

2012-11-08 Thread Isaku Yamahata
This will be used by tunnel app. Signed-off-by: Isaku Yamahata --- ryu/controller/network.py | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/ryu/controller/network.py b/ryu/controller/network.py index abfd12c..08dcdbf 100644 --- a/ryu/controller/network.p

[Ryu-devel] [PATCH v5 07/26] app/rest: add requirements to path component

2012-11-08 Thread Isaku Yamahata
This patch adds requirements to path component so that URL is verified. And simplify with submapper. Signed-off-by: Isaku Yamahata --- ryu/app/rest.py | 36 ++-- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/ryu/app/rest.py b/ryu/app/rest.py in

[Ryu-devel] [PATCH v5 15/26] controller/switch_conf: introduce a class to manage per-switch configuration

2012-11-08 Thread Isaku Yamahata
For tunnel application and generally, it is necessary to associate configurations to each switches. Such as tunnel port ip address for each switches. So introduce a helper class to manage those configurations. Signed-off-by: Isaku Yamahata --- Changes v4 -> v5: - commit message Changes v1 -> v2:

[Ryu-devel] [PATCH v5 22/26] ovs/bridge: helper class to manipulate ovs bridge

2012-11-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- Changes: - drop unused code --- ryu/lib/ovs/bridge.py | 165 + 1 file changed, 165 insertions(+) create mode 100644 ryu/lib/ovs/bridge.py diff --git a/ryu/lib/ovs/bridge.py b/ryu/lib/ovs/bridge.py new file mode 1

[Ryu-devel] [PATCH v5 18/26] bin/ryu-client: support switch_conf

2012-11-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- bin/ryu-client | 10 ++ 1 file changed, 10 insertions(+) diff --git a/bin/ryu-client b/bin/ryu-client index e121f61..04fec26 100755 --- a/bin/ryu-client +++ b/bin/ryu-client @@ -21,6 +21,7 @@ from optparse import OptionParser from ryu.app.client imp

[Ryu-devel] [PATCH v5 21/26] lib/ovs/vsctl: python reimplementation of ovs-vsctl

2012-11-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- Changes v4 -> v5: - drop unused code - default argument to VSCtlCommand.__init__(args) - AttributeError ovs/vsctl: AttributeError commands = [vsctl.VSCtlCommand('add-br', ['br2']), vsctl.VSCtlCommand('list-br', [])] self.vsctl.run_command(commands)

[Ryu-devel] [PATCH v5 12/26] app/client: add tunnel client

2012-11-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - de-GRE --- ryu/app/client.py | 46 ++ 1 file changed, 46 insertions(+) diff --git a/ryu/app/client.py b/ryu/app/client.py index b8e5096..de74357 100644 --- a/ryu/app/client.py +++ b/ryu/app/client

[Ryu-devel] [PATCH v5 08/26] app/client: add mac support

2012-11-08 Thread Isaku Yamahata
- fix path to 'networks' - list_macs() must return string object, not implicit None Signed-off-by: Isaku Yamahata --- ryu/app/client.py | 31 +++ 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/ryu/app/client.py b/ryu/app/client.py index fcf1283..b8e5

[Ryu-devel] [PATCH v5 10/26] controller/tunnel: introduce new class that tracks infos related to tunneling

2012-11-08 Thread Isaku Yamahata
- helper functions and event generator for gre tunnel - plug events for gre tunnel app Signed-off-by: Isaku Yamahata --- Changes v4 -> v5: - use tunnel specific exceptions --- ryu/controller/tunnels.py | 210 + 1 file changed, 210 insertions(+) creat

[Ryu-devel] [PATCH v5 09/26] bin/ryu-client: support mac address tracking

2012-11-08 Thread Isaku Yamahata
Later ryu passes/drops packets from the port based on mac address. Signed-off-by: Isaku Yamahata --- bin/ryu-client |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/ryu-client b/bin/ryu-client index dc1f697..20eeff6 100755 --- a/bin/ryu-client +++ b/bin/ryu-client

[Ryu-devel] [PATCH v5 04/26] controller/network: factor out network.py and add event generator for gre tunnel and helper methods

2012-11-08 Thread Isaku Yamahata
- Factor out from network.py the logic to track network and dpid - introduce class Port to allow other info Later we'll track mac address associated to port. So allow intermediate layer to contain infos related to Port. - make network track mac address associated to port - generate events Sign

[Ryu-devel] [PATCH v5 03/26] app/client: add helper function to ignore NOT_FOUND, 404

2012-11-08 Thread Isaku Yamahata
Sometimes client code just wants to ignore 404 when deleting resources. So provide helper function for it. Signed-off-by: Isaku Yamahata --- ryu/app/client.py | 13 + 1 file changed, 13 insertions(+) diff --git a/ryu/app/client.py b/ryu/app/client.py index d54fe44..fcf1283 100644

[Ryu-devel] [PATCH v5 02/26] ryu/app/client: factor out rest client code

2012-11-08 Thread Isaku Yamahata
Now REST API is enhanced. So factor out reset client code such that it affords extension. Signed-off-by: Isaku Yamahata --- ryu/app/client.py | 53 +++-- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/ryu/app/client.py b/ryu/app/

[Ryu-devel] [PATCH v5 01/26] app/rest_nw_id: add port type for reserved port and vport-gre

2012-11-08 Thread Isaku Yamahata
This patch adds new port type for reserved port and vport-gre. They will be used later. Via this REST API, ryu knows which port is used for gre or reserved port. Signed-off-by: Isaku Yamahata --- ryu/app/rest_nw_id.py | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-)

[Ryu-devel] [PATCH v5 00/26] GRE tunnel support revised

2012-11-08 Thread Isaku Yamahata
This is version 5 of GRE tunnel support, which is greatly simplified from the previous version. The conversion of quantum_adapter is next phase TODO. Changes v4 -> v5: - dropped unnecessary patches - eliminated unused code of vsctl, ovsbridge - addressed review Changes v3 -> v4: - minor bug fixe

[Ryu-devel] [PATCH v5 06/26] app/rest: add API to register/update mac address for a given port

2012-11-08 Thread Isaku Yamahata
Via this API, ryu knows that what mac address is associated with the port. So ryu can pass/drop packets from the port. Signed-off-by: Isaku Yamahata --- ryu/app/rest.py | 71 +++ 1 file changed, 66 insertions(+), 5 deletions(-) diff --git a/

Re: [Ryu-devel] [PATCH] ryu/controller/controller: add SSL/TLS support

2012-11-08 Thread OHMURA Kei
2012/11/8 Simon Horman : > On Thu, Nov 08, 2012 at 12:15:44PM +0900, OHMURA Kei wrote: >> 2012/11/8 Simon Horman : >> > On Thu, Nov 08, 2012 at 07:01:45AM +0900, OHMURA Kei wrote: >> >> 2012/11/7 FUJITA Tomonori : >> >> > On Wed, 7 Nov 2012 21:25:43 +0900 >> >> > OHMURA Kei wrote: >> >> > >> >> >