[Ryu-devel] [PATCH] dpset: improve debug message

2013-02-05 Thread YAMADA Hideki
Could not understand "reason" number at a glance. Signed-off-by: YAMADA Hideki --- ryu/controller/dpset.py | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ryu/controller/dpset.py b/ryu/controller/dpset.py index 1660410..32e8594 100644 --- a/ryu/controller/dpset

[Ryu-devel] [PATCH] test: fix integration tests: reflects 978f3e5c

2013-02-05 Thread HIYAMA Manabu
File "/home/openflow/git/osrg/ryu/ryu/tests/integrated/tester.py", line 167, in TestFlowBase @handler.set_ev_cls(dpset.EventDP, dpset.DPSET_EV_DISPATCHER) AttributeError: 'module' object has no attribute 'DPSET_EV_DISPATCHER' Signed-off-by: HIYAMA Manabu --- ryu/tests/integrated/tester.py

[Ryu-devel] [PATCH] packet lib: rename icmp6 to icmpv6

2013-02-05 Thread HIYAMA Manabu
- renamed variables "ICMP6_XXX" to "ICMPV6_XXX" Signed-off-by: HIYAMA Manabu --- ryu/lib/packet/icmp6.py | 179 -- ryu/lib/packet/icmpv6.py | 179 ++ ryu/lib/packet/ipv6.py |4 +- 3 files changed, 18

Re: [Ryu-devel] [PATCH] packet lib: fix a bug in ipv6

2013-02-05 Thread HIYAMA Manabu
On Wed, 06 Feb 2013 12:56:04 +0900 (JST) FUJITA Tomonori wrote: > On Wed, 06 Feb 2013 12:33:48 +0900 > HIYAMA Manabu wrote: > > > > > On Wed, 06 Feb 2013 12:01:54 +0900 (JST) > > FUJITA Tomonori wrote: > > > >> On Wed, 6 Feb 2013 11:17:30 +0900 > >> HIYAMA Manabu wrote: > >> > >> > ERROR:

Re: [Ryu-devel] [PATCH] packet lib: fix a bug in ipv6

2013-02-05 Thread FUJITA Tomonori
On Wed, 06 Feb 2013 12:33:48 +0900 HIYAMA Manabu wrote: > > On Wed, 06 Feb 2013 12:01:54 +0900 (JST) > FUJITA Tomonori wrote: > >> On Wed, 6 Feb 2013 11:17:30 +0900 >> HIYAMA Manabu wrote: >> >> > ERROR: Failure: AttributeError ('module' object has no attribute >> > 'IPPROTO_ICMP6') >> > -

Re: [Ryu-devel] [PATCH] packet lib: fix a bug in ipv6

2013-02-05 Thread HIYAMA Manabu
On Wed, 06 Feb 2013 12:01:54 +0900 (JST) FUJITA Tomonori wrote: > On Wed, 6 Feb 2013 11:17:30 +0900 > HIYAMA Manabu wrote: > > > ERROR: Failure: AttributeError ('module' object has no attribute > > 'IPPROTO_ICMP6') > > -- >

Re: [Ryu-devel] [PATCH] packet lib: fix a bug in ipv6

2013-02-05 Thread FUJITA Tomonori
On Wed, 6 Feb 2013 11:17:30 +0900 HIYAMA Manabu wrote: > ERROR: Failure: AttributeError ('module' object has no attribute > 'IPPROTO_ICMP6') > -- > Traceback (most recent call last): > (...) > File "/home/openflow/git/osrg/ry

Re: [Ryu-devel] [PATCH] test: update integration tests

2013-02-05 Thread FUJITA Tomonori
On Wed, 6 Feb 2013 10:16:25 +0900 HIYAMA Manabu wrote: > - remove get_supported() at test_request_reply_v12.py. > use 'is_supported()' if any test wants to skip. > - print results summary. > > Signed-off-by: HIYAMA Manabu > --- > ryu/tests/integrated/test_request_reply_v12.py | 28 > +---

[Ryu-devel] [PATCH] packet lib: fix a bug in ipv6

2013-02-05 Thread HIYAMA Manabu
ERROR: Failure: AttributeError ('module' object has no attribute 'IPPROTO_ICMP6') -- Traceback (most recent call last): (...) File "/home/openflow/git/osrg/ryu/ryu/lib/packet/ipv6.py", line 68, in ipv6.register_packet_type

[Ryu-devel] [PATCH] test: update integration tests

2013-02-05 Thread HIYAMA Manabu
- remove get_supported() at test_request_reply_v12.py. use 'is_supported()' if any test wants to skip. - print results summary. Signed-off-by: HIYAMA Manabu --- ryu/tests/integrated/test_request_reply_v12.py | 28 +--- ryu/tests/integrated/tester.py | 16

Re: [Ryu-devel] How to use the topology discovery of ryu?

2013-02-05 Thread FUJITA Tomonori
Hi, On Mon, 4 Feb 2013 17:04:52 +0100 Jeremias Blendin wrote: > I am interested how different apps in ryu can (an should) work > together. This is the area that we are still working actively. So it's changing though. > How can an app discover which other apps are running? We don't provide a m

Re: [Ryu-devel] [PATCH v2] doc: internal document on openstack cooperation

2013-02-05 Thread FUJITA Tomonori
On Tue, 29 Jan 2013 02:24:47 +0900 Isaku Yamahata wrote: > Signed-off-by: Isaku Yamahata > --- > Changes v1 -> v2: > - on live-migration > --- > doc/source/images/internal-gre-tunnel.png | Bin 0 -> 158136 bytes > doc/source/images/internal-gre-tunnel.svg | 1853 > ++

[Ryu-devel] ryu controller and quantum guide

2013-02-05 Thread Edgar Magana
It seems that this link is out of date: http://www.osrg.net/ryu/using_with_openstack.html Is there updated docs about the Quantum and Ryu controller config and installation?. Thanks, Edgar-- Free Next-Gen Firewall Hardw

Re: [Ryu-devel] [PATCH 00/17] add Quantum VLAN support

2013-02-05 Thread FUJITA Tomonori
On Tue, 5 Feb 2013 20:10:40 +0900 FUJITA Tomonori wrote: > This is the rework of Yamahata and Kaneko's Quantum VLAN support. With > the new event model, we don't need event any serialization mechnism, > asynchornous task mechnism, or locks. > > Our Quantum code needs to be cleaned up but the ne

Re: [Ryu-devel] ipv6 & icmpv6 parser

2013-02-05 Thread FUJITA Tomonori
Thanks, I've applied both. Please see if they work. On Tue, 5 Feb 2013 14:24:06 + "Henkel, Michael" wrote: > Sure you can. > > Thanks, > Michael > > -Original Message- > From: FUJITA Tomonori [mailto:fujita.tomon...@lab.ntt.co.jp] > Sent: Dienstag, 5. Februar 2013 15:23 > To: Henk

Re: [Ryu-devel] ipv6 & icmpv6 parser

2013-02-05 Thread FUJITA Tomonori
Hi, On Tue, 5 Feb 2013 07:45:31 + "Henkel, Michael" wrote: > lib/packet/ipv6.py: Thanks. I fixed pep8 warnings and just posted the updated patches. Can I add your Signed-off-by to them? -- Free Next-Gen Firewall Ha

[Ryu-devel] [PATCH 2/2] packet library: add IPv6 ICMP support

2013-02-05 Thread FUJITA Tomonori
From: "Henkel, Michael" Signed-off-by: FUJITA Tomonori --- ryu/lib/packet/icmp6.py | 179 +++ ryu/lib/packet/ipv6.py |2 + 2 files changed, 181 insertions(+) create mode 100644 ryu/lib/packet/icmp6.py diff --git a/ryu/lib/packet/icmp6.py b/ryu

[Ryu-devel] [PATCH 1/2] packet lib: add ipv6 support

2013-02-05 Thread FUJITA Tomonori
From: "Henkel, Michael" Signed-off-by: FUJITA Tomonori --- ryu/lib/packet/ipv6.py | 67 ryu/lib/packet/tcp.py |6 - ryu/lib/packet/vlan.py |2 ++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 ryu/lib/packet/i

Re: [Ryu-devel] [PATCH 1/2] xflow: add netflow packet collector

2013-02-05 Thread OHMURA Kei
2013/2/5 OHMURA Kei : >>> + >>> +def close(self): >>> +self.is_active = False >>> +gevent.joinall([self.thread]) >> >> For what? > > I think that it's not necessary. I'll remove it. > >> >>> +def _recv_loop(self): >>> +while self.is_active: >>> +(data, ad

Re: [Ryu-devel] [PATCH 1/2] xflow: add netflow packet collector

2013-02-05 Thread OHMURA Kei
Thanks for your comments. 2013/2/5 FUJITA Tomonori : > On Tue, 5 Feb 2013 18:40:12 +0900 > OHMURA Kei wrote: > >> This gets a netflow packet and sends it to the other >> applications. Each application can use this to get netflow >> messages as an event. >> >> Signed-off-by: OHMURA Kei >> --- >>

Re: [Ryu-devel] [PATCH 1/2] xflow: add netflow packet collector

2013-02-05 Thread FUJITA Tomonori
On Tue, 5 Feb 2013 18:40:12 +0900 OHMURA Kei wrote: > This gets a netflow packet and sends it to the other > applications. Each application can use this to get netflow > messages as an event. > > Signed-off-by: OHMURA Kei > --- > bin/ryu-manager|1 + > ryu/lib/xflow/ne

[Ryu-devel] [PATCH 15/17] bin/ryu-client: teach quantum iface rest api

2013-02-05 Thread FUJITA Tomonori
From: Isaku Yamahata Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- bin/ryu-client | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/bin/ryu-client b/bin/ryu-client index 3d816b8..292ee26 100755 --- a/bin/ryu-client +++ b/bin/ryu-client

[Ryu-devel] [PATCH 10/17] bin/ryu-client: support gre tunnel client

2013-02-05 Thread FUJITA Tomonori
From: Isaku Yamahata Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- bin/ryu-client | 37 - 1 files changed, 28 insertions(+), 9 deletions(-) diff --git a/bin/ryu-client b/bin/ryu-client index dc1f697..15e83f2 100755 --- a/bin/ryu-client

[Ryu-devel] [PATCH 11/17] bin/ryu-client: support switch_conf

2013-02-05 Thread FUJITA Tomonori
From: Isaku Yamahata Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- bin/ryu-client | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/bin/ryu-client b/bin/ryu-client index 15e83f2..3d816b8 100755 --- a/bin/ryu-client +++ b/bin/ryu-client @@ -21

[Ryu-devel] [PATCH 16/17] app: Add quantum adapter

2013-02-05 Thread FUJITA Tomonori
Based on the following patch: From: Yoshihiro Kaneko Subject: app: Add quantum adapter Thanks to Kaneko for finding and fixing my bugs. Signed-off-by: Yoshihiro Kaneko Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- ryu/app/quantum_adapter.py | 423

[Ryu-devel] [PATCH 08/17] ryu/app: REST API to set per-switch configuration

2013-02-05 Thread FUJITA Tomonori
From: Isaku Yamahata Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- ryu/app/conf_switch_key.py | 18 + ryu/app/rest_conf_switch.py | 173 +++ 2 files changed, 191 insertions(+), 0 deletions(-) create mode 100644 ryu/app/conf_sw

[Ryu-devel] [PATCH 14/17] ryu/app/client: teach quantum iface api

2013-02-05 Thread FUJITA Tomonori
From: Isaku Yamahata Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- ryu/app/client.py | 48 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/ryu/app/client.py b/ryu/app/client.py index 14888d4..5b592cf 100644 -

[Ryu-devel] [PATCH 12/17] ryu/lib/quantum_ifaces.py: track the relation of quantum iface-id

2013-02-05 Thread FUJITA Tomonori
Based on the following patch: From: Isaku Yamahata Date: Tue, 20 Nov 2012 12:21:51 +0900 Subject: ryu/lib/quantum_ifaces.py: track the relation of quantum iface-id This is needed for quantum plugin in order to track the association from iface-id to network id or other info. Signed-off-by: Isaku

[Ryu-devel] [PATCH 17/17] ryu/app/simple_vlan: simple VLAN app for OVS

2013-02-05 Thread FUJITA Tomonori
Based on the following patch: Subject: ryu/app/simple_vlan: simple VLAN spp This application provides VLAN separation with ovs tag function. Something similar openstack quantum openvswitch vlan function. Example to run: ryu-manager ryu/app/simple_vlan.py \ ryu/app/quantum_adapter.py

[Ryu-devel] [PATCH 02/17] controller/network: add event supports

2013-02-05 Thread FUJITA Tomonori
Base on the following patch: From: Isaku Yamahata Subject: controller/network: factor out network.py and add event generator for gre tunnel and helper methods - Factor out from network.py the logic to track network and dpid - introduce class Port to allow other info Later we'll track mac addr

[Ryu-devel] [PATCH 05/17] app/rest_tunnel: REST API for tunnel

2013-02-05 Thread FUJITA Tomonori
From: 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 Yamaha

[Ryu-devel] [PATCH 07/17] controller/switch_conf: introduce a class to manage per-switch configuration

2013-02-05 Thread FUJITA Tomonori
This should be merged into dpset... Based on the following patch: From: Isaku Yamahata Subject: controller/switch_conf: introduce a class to manage per-switch configuration For tunnel application and generally, it is necessary to associate configurations to each switches. Such as tunnel port i

[Ryu-devel] [PATCH 13/17] rest/quantum: quantum iface REST API

2013-02-05 Thread FUJITA Tomonori
From: Isaku Yamahata Quantum teach ryu the relation iface-id and network_id Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- ryu/app/rest_quantum.py | 127 +++ 1 files changed, 127 insertions(+), 0 deletions(-) create mode 100644 r

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

2013-02-05 Thread FUJITA Tomonori
From: Isaku Yamahata Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- ryu/app/client.py | 44 ++-- 1 files changed, 42 insertions(+), 2 deletions(-) diff --git a/ryu/app/client.py b/ryu/app/client.py index 01a482c..14888d4 100644 --- a

[Ryu-devel] [PATCH 06/17] app/client: add tunnel client

2013-02-05 Thread FUJITA Tomonori
From: Isaku Yamahata Signed-off-by: Isaku Yamahata Signed-off-by: FUJITA Tomonori --- ryu/app/client.py | 46 ++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/ryu/app/client.py b/ryu/app/client.py index fcf1283..01a482c 100644 ---

[Ryu-devel] [PATCH 00/17] add Quantum VLAN support

2013-02-05 Thread FUJITA Tomonori
This is the rework of Yamahata and Kaneko's Quantum VLAN support. With the new event model, we don't need event any serialization mechnism, asynchornous task mechnism, or locks. Our Quantum code needs to be cleaned up but the next priority is merging tunneling support on the top of this. = bin/r

[Ryu-devel] [PATCH 03/17] dpset: add port event support

2013-02-05 Thread FUJITA Tomonori
Based on the following patch: From: Isaku Yamahata Subject: dpset: add port{add, delete, modify} event for convenience and helper functions It is sometimes commonly interesting to track datapath/port appearance/disappearance. The applications usually want to see that ports appear after datapath

[Ryu-devel] [PATCH 04/17] controller/tunnel: introduce new class for tunneling

2013-02-05 Thread FUJITA Tomonori
This should be renamed (already used for non tunnel stuff, e.g. VLAN). Based on the following patch: From: Isaku Yamahata Subject: controller/tunnel: introduce new class that tracks infos related to tunneling - helper functions and event generator for gre tunnel - plug events for gre tunnel ap

[Ryu-devel] [PATCH 01/17] controller/handler: allow set_ev_cls not to specify dispatchers

2013-02-05 Thread FUJITA Tomonori
Signed-off-by: FUJITA Tomonori --- ryu/controller/handler.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ryu/controller/handler.py b/ryu/controller/handler.py index 9a09e99..615fd12 100644 --- a/ryu/controller/handler.py +++ b/ryu/controller/handler.py @@ -29,7 +29,7

[Ryu-devel] [PATCH 2/2] ryu/app: add netflow dump application

2013-02-05 Thread OHMURA Kei
This is a sample application to learn how to handle netflow events. Signed-off-by: OHMURA Kei --- ryu/app/netflow_dumper.py | 53 + 1 file changed, 53 insertions(+) create mode 100644 ryu/app/netflow_dumper.py diff --git a/ryu/app/netflow_dumper.py

[Ryu-devel] [PATCH 1/2] xflow: add netflow packet collector

2013-02-05 Thread OHMURA Kei
This gets a netflow packet and sends it to the other applications. Each application can use this to get netflow messages as an event. Signed-off-by: OHMURA Kei --- bin/ryu-manager|1 + ryu/lib/xflow/netflow_collector.py | 64 2 files

[Ryu-devel] [PATCH 2/2] ryu/app: add netflow dump application

2013-02-05 Thread OHMURA Kei
This is a sample application to learn how to handle netflow events. Signed-off-by: OHMURA Kei --- ryu/app/netflow_dumper.py | 53 + 1 file changed, 53 insertions(+) create mode 100644 ryu/app/netflow_dumper.py diff --git a/ryu/app/netflow_dumper.py

[Ryu-devel] [PATCH 1/2] xflow: add netflow packet collector

2013-02-05 Thread OHMURA Kei
This gets a netflow packet and sends it to the other applications. Each application can use this to get netflow messages as an event. Signed-off-by: OHMURA Kei --- bin/ryu-manager|1 + ryu/lib/xflow/netflow_collector.py | 64 2 files