Re: [Ryu-devel] Folsom VM image capability

2013-04-08 Thread Isaku Yamahata
On Sun, Apr 07, 2013 at 10:54:03PM -0700, Yue Chen wrote: > Hi Yamahata-san, > > Thanks for your quick answer last time! I got the VM image working with GRE > tunnels between the OVSs. > > However, in order to fully benefit from Ryu Controller's ability to do L2 > separation using OpenFlow, I'd

Re: [Ryu-devel] [PATCH 1/3] setup.py: install xsd files

2013-04-08 Thread Isaku Yamahata
Oops this is the correct one. >From 8082774e9528f411e5b4436c19e661b7cd676a36 Mon Sep 17 00:00:00 2001 Message-Id: <8082774e9528f411e5b4436c19e661b7cd676a36.1365485476.git.yamah...@valinux.co.jp> In-Reply-To: References: From: Isaku Yamahata Date: Tue, 9 Apr 2013 14:13:47 +0900 Subject: [PATCH

Re: [Ryu-devel] Issues with SSH fingerprint while using Ryu for of_config

2013-04-08 Thread Isaku Yamahata
On Thu, Apr 04, 2013 at 06:48:12PM -0700, Shivaram Mysore wrote: > Hello, Hello. > I did some real hack to get some version of OFConfig working with Ryu to get > over the SSH Host Fingerprint issue as reported in the previous email. But, I > am not sure how to effectively use this ? I sent the

[Ryu-devel] [PATCH 3/3] tests/integrated/test_of_config: comment on how to run

2013-04-08 Thread Isaku Yamahata
Cc: Shivaram Mysore Signed-off-by: Isaku Yamahata --- ryu/tests/integrated/test_of_config.py | 96 1 file changed, 96 insertions(+) diff --git a/ryu/tests/integrated/test_of_config.py b/ryu/tests/integrated/test_of_config.py index 2e46c6e..a7d5815 100644 ---

[Ryu-devel] [PATCH 2/3] tests/integrated/test_of_config: disable known host check

2013-04-08 Thread Isaku Yamahata
This test can fail with unknow hosts as follows. Since this is a OF-config test/sample, known host check is not essential. Disable the check to avoid non-essential problem for easy test. > ryu $ PYTHONPATH=. ./bin/ryu-manager --verbose > ryu/tests/integrated/test_of_config.py > loading app ryu/te

[Ryu-devel] [PATCH 1/3] setup.py: install xsd files

2013-04-08 Thread Isaku Yamahata
They are necessary for OF-config support. Cc: Shivaram Mysore Signed-off-by: Isaku Yamahata --- setup.py |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 297c89d..f1e0757 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ classifiers = [ if

[Ryu-devel] [PATCH 0/3] OF-config related fixes

2013-04-08 Thread Isaku Yamahata
This patch series fixes the issues of OF-config reported by Shivaram Mysore Isaku Yamahata (3): setup.py: install xsd files tests/integrated/test_of_config: disable known host check tests/integrated/test_of_config: comment on how to run ryu/tests/integrated/test_of_config.py | 99 ++

[Ryu-devel] [PATCH 1/2] ryu/lib/packet/lldp.py: remove __str__ method from class LLDPBasicTLV and class lldp

2013-04-08 Thread Isaku Yamahata
Those methods are legacy when lldp.py was written for dpkt. They don't make sense. remove them. Cc: "can." Signed-off-by: Isaku Yamahata --- ryu/lib/packet/lldp.py |9 - 1 file changed, 9 deletions(-) diff --git a/ryu/lib/packet/lldp.py b/ryu/lib/packet/lldp.py index f82e00a..d913c

[Ryu-devel] [PATCH 2/2] lib/packet/lldp.py: pylint

2013-04-08 Thread Isaku Yamahata
> W: 78,0:LLDPBasicTLV.__init__: Unused argument 'args' > W: 78,0:LLDPBasicTLV.__init__: Unused argument 'kwargs' > W:109,4:lldp.__init__: __init__ method from base class 'PacketBase' is not > called Cc: "can." Signed-off-by: Isaku Yamahata --- ryu/lib/packet/lldp.py |4 +++- 1 file change

Re: [Ryu-devel] [PATCH] NX_Match match_tuple()

2013-04-08 Thread FUJITA Tomonori
On Mon, 08 Apr 2013 13:30:04 +0200 blacksheeep wrote: > > Hello, > sorry for problems with the patch submission. Hope it works now. > > I updated the code for the match_tuple() function: > It installs the match for the network src/dst if the mask is valid, else > the nw src/dst is ignored. > My

Re: [Ryu-devel] [PATCH] Delete a non-exist method call in LLDP

2013-04-08 Thread FUJITA Tomonori
On Mon, 8 Apr 2013 19:39:28 +0900 Isaku Yamahata wrote: > On Mon, Apr 08, 2013 at 06:08:57PM +0800, can. wrote: >> FYI, I initially found this bug when parse the packets: >> >> pkt = packet.Packet(data) >> for p in pkt.protocols: >> print p >> something_else() >> >> if remove __

Re: [Ryu-devel] [PATCH 2/2] Minor changes to support IPv6 src/dst in NXM.

2013-04-08 Thread FUJITA Tomonori
On Mon, 8 Apr 2013 17:56:28 +0800 "can." wrote: > The patch seems to be missed since I don't receive any responses. So I send > this mail as a reminder. Oops, I missed it. With this, I got: fujita@rouen:~/git/ryu$ ./run_tests.sh -p Running pep8 ... ryu/ofproto/nx_match.py:747:43: E251 no spaces

[Ryu-devel] [PATCH] NX_Match match_tuple()

2013-04-08 Thread blacksheeep
Hello, Possible my mail client didn't work last time. At least my gmail showed the mail wrong formated. I swapped the mail client and now it should work. Sorry for wrong mails... >From 85974e5ded85dd6f9e0592d32ffc949c4df3eab0 Mon Sep 17 00:00:00 2001 From: blacksheeep Date: Mon, 8 Apr 2013 13:03

[Ryu-devel] [PATCH] NX_Match match_tuple()

2013-04-08 Thread blacksheeep
Hello, sorry for problems with the patch submission. Hope it works now. I updated the code for the match_tuple() function: It installs the match for the network src/dst if the mask is valid, else the nw src/dst is ignored. My last patch had an error there, sorry. Changes: FIX: match_tuple() func

Re: [Ryu-devel] [PATCH] Delete a non-exist method call in LLDP

2013-04-08 Thread Isaku Yamahata
On Mon, Apr 08, 2013 at 06:08:57PM +0800, can. wrote: > FYI, I initially found this bug when parse the packets: > > pkt = packet.Packet(data) > for p in pkt.protocols: > print p > something_else() > > if remove __str__() entirely, would the print work correctly? Yes, it works. It

Re: [Ryu-devel] [PATCH 03/21] base/app_manager.py: record argument

2013-04-08 Thread Isaku Yamahata
On Mon, Apr 08, 2013 at 05:26:05PM +0900, FUJITA Tomonori wrote: > On Mon, 8 Apr 2013 16:39:55 +0900 > Isaku Yamahata wrote: > > > Later some applications uses those arguments. > > What are arguments? Why configurations don't work? Okay, I'll drop this patch. -- yamahata

Re: [Ryu-devel] [PATCH 2/2] Minor changes to support IPv6 src/dst in NXM.

2013-04-08 Thread can.
Hello, The patch seems to be missed since I don't receive any responses. So I send this mail as a reminder. 2013/4/2 can. > Then how about this: > > > From 3e29f270b921ed871d9cbc8b80d275c9fe19e96f Mon Sep 17 00:00:00 2001 > From: Can Zhang > Date: Tue, 2 Apr 2013 11:45:20 +0800 > Subject

Re: [Ryu-devel] [PATCH 02/21] ryu/base/app_manager: apply singleton pattern to AppManager

2013-04-08 Thread Isaku Yamahata
On Mon, Apr 08, 2013 at 05:24:37PM +0900, FUJITA Tomonori wrote: > On Mon, 8 Apr 2013 16:39:54 +0900 > Isaku Yamahata wrote: > > > Later RyuApp instances will be created/deleted dynamically. > > For that sake, the single instance of AppManager is necessary. > > Why the feature is necessary? >

Re: [Ryu-devel] [PATCH 05/21] lib/packet/arp.py: add convenience function to create arp for ether+ip

2013-04-08 Thread Isaku Yamahata
On Mon, Apr 08, 2013 at 05:24:00PM +0900, FUJITA Tomonori wrote: > On Mon, 8 Apr 2013 16:39:57 +0900 > Isaku Yamahata wrote: > > > Since ether+ip case is most often used, introduce a convenience function > > for that. > > Not sure about. If you live in real environments, mostly vlan is > always

Re: [Ryu-devel] [PATCH] Delete a non-exist method call in LLDP

2013-04-08 Thread can.
FYI, I initially found this bug when parse the packets: pkt = packet.Packet(data) for p in pkt.protocols: print p something_else() if remove __str__() entirely, would the print work correctly? 2013/4/8 Isaku Yamahata > On Sun, Apr 07, 2013 at 04:06:22PM +0800, Can Zhang wrot

Re: [Ryu-devel] [PATCH 01/21] base/app_manager: RyuApp initialization race

2013-04-08 Thread Isaku Yamahata
On Mon, Apr 08, 2013 at 05:22:41PM +0900, FUJITA Tomonori wrote: > On Mon, 8 Apr 2013 16:39:53 +0900 > Isaku Yamahata wrote: > > > There is a race between RyuApp instantiation and starting its thread. > > In order to mitigate a race, split RyuApp initialization into creation of > > To mitigate

Re: [Ryu-devel] [PATCH 03/21] base/app_manager.py: record argument

2013-04-08 Thread FUJITA Tomonori
On Mon, 8 Apr 2013 16:39:55 +0900 Isaku Yamahata wrote: > Later some applications uses those arguments. What are arguments? Why configurations don't work? -- Minimize network downtime and maximize team effectiveness.

Re: [Ryu-devel] [PATCH 02/21] ryu/base/app_manager: apply singleton pattern to AppManager

2013-04-08 Thread FUJITA Tomonori
On Mon, 8 Apr 2013 16:39:54 +0900 Isaku Yamahata wrote: > Later RyuApp instances will be created/deleted dynamically. > For that sake, the single instance of AppManager is necessary. Why the feature is necessary? -- Mi

Re: [Ryu-devel] [PATCH 05/21] lib/packet/arp.py: add convenience function to create arp for ether+ip

2013-04-08 Thread FUJITA Tomonori
On Mon, 8 Apr 2013 16:39:57 +0900 Isaku Yamahata wrote: > Since ether+ip case is most often used, introduce a convenience function > for that. Not sure about. If you live in real environments, mostly vlan is always used. -

Re: [Ryu-devel] [PATCH 01/21] base/app_manager: RyuApp initialization race

2013-04-08 Thread FUJITA Tomonori
On Mon, 8 Apr 2013 16:39:53 +0900 Isaku Yamahata wrote: > There is a race between RyuApp instantiation and starting its thread. > In order to mitigate a race, split RyuApp initialization into creation of To mitigate a race simply leads to disaster. Needs to fix it. Please explain the details.

Re: [Ryu-devel] [PATCH] Delete a non-exist method call in LLDP

2013-04-08 Thread Isaku Yamahata
On Sun, Apr 07, 2013 at 04:06:22PM +0800, Can Zhang wrote: > Signed-off-by: Can Zhang > --- > ryu/lib/packet/lldp.py | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/ryu/lib/packet/lldp.py b/ryu/lib/packet/lldp.py > index f82e00a..e6d77ba 100644 > --- a/ryu/lib/packet/lldp.py > +++ b/ryu/

Re: [Ryu-devel] how to install and configure ryu openstack plugin

2013-04-08 Thread Isaku Yamahata
Please refer the followings https://github.com/osrg/ryu/wiki/OpenStack https://github.com/osrg/ryu/wiki/configuration_openstack_grizzly_with_ryu https://github.com/osrg/ryu/wiki/RYU-Openstack-Grizzly-environment-HOWTO thanks, On Sun, Apr 07, 2013 at 04:36:49PM +0800, zheng mi wrote: > I have inst

[Ryu-devel] [PATCH 13/21] services/vrrp/event: introduce VRRP related events and classes

2013-04-08 Thread Isaku Yamahata
They are exported events and classes. Signed-off-by: Isaku Yamahata --- ryu/services/vrrp/event.py | 227 1 file changed, 227 insertions(+) create mode 100644 ryu/services/vrrp/event.py diff --git a/ryu/services/vrrp/event.py b/ryu/services/vrrp/ev

[Ryu-devel] [PATCH 15/21] services/vrrp/router: VRRP router

2013-04-08 Thread Isaku Yamahata
Introduce VRRP router class which handles VRRP. Signed-off-by: Isaku Yamahata --- ryu/services/vrrp/router.py | 545 +++ 1 file changed, 545 insertions(+) create mode 100644 ryu/services/vrrp/router.py diff --git a/ryu/services/vrrp/router.py b/ryu/serv

[Ryu-devel] [PATCH 21/21] tests/integrated, services/vrrp: a test for multiple VRRP routers

2013-04-08 Thread Isaku Yamahata
test code for VRRP which handles multiple VRRP routers Signed-off-by: Isaku Yamahata --- ryu/tests/integrated/test_vrrp_multi.py | 188 +++ 1 file changed, 188 insertions(+) create mode 100644 ryu/tests/integrated/test_vrrp_multi.py diff --git a/ryu/tests/integrate

[Ryu-devel] [PATCH 17/21] services/vrrp/api: API for VRRP service

2013-04-08 Thread Isaku Yamahata
API for VRRP service exported to other RyuApp. Signed-off-by: Isaku Yamahata --- ryu/services/vrrp/api.py | 45 + 1 file changed, 45 insertions(+) create mode 100644 ryu/services/vrrp/api.py diff --git a/ryu/services/vrrp/api.py b/ryu/services/vrrp

[Ryu-devel] [PATCH 20/21] tests/integrated, services/vrrp: a simple test app for VRRP service

2013-04-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/tests/integrated/test_vrrp.py | 134 + 1 file changed, 134 insertions(+) create mode 100644 ryu/tests/integrated/test_vrrp.py diff --git a/ryu/tests/integrated/test_vrrp.py b/ryu/tests/integrated/test_vrrp.py new file m

[Ryu-devel] [PATCH 18/21] services/vrrp/sample_router: sample router code

2013-04-08 Thread Isaku Yamahata
Sample router code. Real router app can use this code as template in order to support VRRP. Signed-off-by: Isaku Yamahata --- ryu/services/vrrp/sample_router.py | 423 1 file changed, 423 insertions(+) create mode 100644 ryu/services/vrrp/sample_router.py

[Ryu-devel] [PATCH 16/21] services/vrrp/manager: introduce a class that manages VRRP routers

2013-04-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/services/vrrp/manager.py | 154 ++ 1 file changed, 154 insertions(+) create mode 100644 ryu/services/vrrp/manager.py diff --git a/ryu/services/vrrp/manager.py b/ryu/services/vrrp/manager.py new file mode 100644 index

[Ryu-devel] [PATCH 09/21] lib/packet: VRRP packet parser/serializer

2013-04-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/lib/packet/vrrp.py | 543 1 file changed, 543 insertions(+) create mode 100644 ryu/lib/packet/vrrp.py diff --git a/ryu/lib/packet/vrrp.py b/ryu/lib/packet/vrrp.py new file mode 100644 index 000..18c7a57

[Ryu-devel] [PATCH 14/21] services/vrrp/monitor: introduce interface monitor

2013-04-08 Thread Isaku Yamahata
Introduce class that manages switch interface on which VRRP works. Signed-off-by: Isaku Yamahata --- ryu/services/vrrp/monitor.py | 261 ++ 1 file changed, 261 insertions(+) create mode 100644 ryu/services/vrrp/monitor.py diff --git a/ryu/services/vrrp/

[Ryu-devel] [PATCH 12/21] services/vrrp/utils: util functions for vrrp service

2013-04-08 Thread Isaku Yamahata
It will be used later by VRRP service. Signed-off-by: Isaku Yamahata --- ryu/services/vrrp/utils.py | 76 1 file changed, 76 insertions(+) create mode 100644 ryu/services/vrrp/utils.py diff --git a/ryu/services/vrrp/utils.py b/ryu/services/vrrp/ut

[Ryu-devel] [PATCH 06/21] ofproto/inet: add VRRP protocol number

2013-04-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/ofproto/inet.py |1 + 1 file changed, 1 insertion(+) diff --git a/ryu/ofproto/inet.py b/ryu/ofproto/inet.py index d3da819..d0ce694 100644 --- a/ryu/ofproto/inet.py +++ b/ryu/ofproto/inet.py @@ -25,4 +25,5 @@ IPPROTO_AH = 51 IPPROTO_ICMPV6 = 58 IPPROTO_

[Ryu-devel] [PATCH 11/21] services/vrrp: introduce vrrp module

2013-04-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/services/__init__.py | 15 +++ ryu/services/vrrp/__init__.py | 15 +++ 2 files changed, 30 insertions(+) create mode 100644 ryu/services/__init__.py create mode 100644 ryu/services/vrrp/__init__.py diff --git a/ryu/services

[Ryu-devel] [PATCH 10/21] tests/unit, lib/packet/vrrp: unit test for vrrp packet parser/serializer

2013-04-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/tests/unit/packet/test_vrrp.py | 335 1 file changed, 335 insertions(+) create mode 100644 ryu/tests/unit/packet/test_vrrp.py diff --git a/ryu/tests/unit/packet/test_vrrp.py b/ryu/tests/unit/packet/test_vrrp.py new fil

[Ryu-devel] [PATCH 19/21] services/vrrp/dumper: vrrp event dumper

2013-04-08 Thread Isaku Yamahata
a sample application which dumps VRRP events Signed-off-by: Isaku Yamahata --- ryu/services/vrrp/dumper.py | 154 +++ 1 file changed, 154 insertions(+) create mode 100644 ryu/services/vrrp/dumper.py diff --git a/ryu/services/vrrp/dumper.py b/ryu/service

[Ryu-devel] [PATCH 04/21] base/app_manager: create/destroy RyuApp instances dynamically

2013-04-08 Thread Isaku Yamahata
allow RyuManager to create/destroy RyuApp instances dynamically and register/unregister event observer dynamically. Signed-off-by: Isaku Yamahata --- ryu/base/app_manager.py | 122 --- 1 file changed, 93 insertions(+), 29 deletions(-) diff --git a/ry

[Ryu-devel] [PATCH 08/21] lib/packet/ipv6: add constants for parse/serialize

2013-04-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/lib/packet/ipv6.py |5 + 1 file changed, 5 insertions(+) diff --git a/ryu/lib/packet/ipv6.py b/ryu/lib/packet/ipv6.py index 5380fb2..f7b8e9b 100644 --- a/ryu/lib/packet/ipv6.py +++ b/ryu/lib/packet/ipv6.py @@ -22,6 +22,11 @@ from . import tcp from r

[Ryu-devel] [PATCH 07/21] lib/packet/ipv4: add constants for parse/serialize

2013-04-08 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- ryu/lib/packet/ipv4.py |5 + 1 file changed, 5 insertions(+) diff --git a/ryu/lib/packet/ipv4.py b/ryu/lib/packet/ipv4.py index daf4265..4f48e93 100644 --- a/ryu/lib/packet/ipv4.py +++ b/ryu/lib/packet/ipv4.py @@ -23,6 +23,11 @@ from . import tcp from r

[Ryu-devel] [PATCH 01/21] base/app_manager: RyuApp initialization race

2013-04-08 Thread Isaku Yamahata
There is a race between RyuApp instantiation and starting its thread. In order to mitigate a race, split RyuApp initialization into creation of instance and starting thread. Introduce RyuApp.start() method to start threads. Signed-off-by: Isaku Yamahata --- ryu/base/app_manager.py |8 +++

[Ryu-devel] [PATCH 03/21] base/app_manager.py: record argument

2013-04-08 Thread Isaku Yamahata
Later some applications uses those arguments. Signed-off-by: Isaku Yamahata --- ryu/base/app_manager.py |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index aece004..95fc0b7 100644 --- a/ryu/base/app_manager.py +++ b/r

[Ryu-devel] [PATCH 02/21] ryu/base/app_manager: apply singleton pattern to AppManager

2013-04-08 Thread Isaku Yamahata
Later RyuApp instances will be created/deleted dynamically. For that sake, the single instance of AppManager is necessary. Signed-off-by: Isaku Yamahata --- bin/ryu-manager |2 +- ryu/base/app_manager.py |9 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a

[Ryu-devel] [PATCH 00/21] VRRP support

2013-04-08 Thread Isaku Yamahata
This patch series adds VRRP service. The patch series is organized as follows - 1-5: general clean up and improvement - 6-10: VRRP packet parser/serializer - 11-21: VRRP implemetation Sample code is also included to show how to user VRRP service. thanks, Isaku Yamahata (21): base/app_manager:

[Ryu-devel] [PATCH 05/21] lib/packet/arp.py: add convenience function to create arp for ether+ip

2013-04-08 Thread Isaku Yamahata
Since ether+ip case is most often used, introduce a convenience function for that. Signed-off-by: Isaku Yamahata --- ryu/lib/packet/arp.py |9 + 1 file changed, 9 insertions(+) diff --git a/ryu/lib/packet/arp.py b/ryu/lib/packet/arp.py index 3cef38d..76a848c 100644 --- a/ryu/lib/pac