[Ryu-devel] [PATCH 1/3] ofctl_v1_3: correct the output result of get_flow_stats()

2013-11-25 Thread Yuichi Ito
the previous version of ofctl_v1_3 was inconsistent with ofctl_v1_0 and ofctl_v1_2 in the output result of get_flow_stats(). - ofctl_v1_0/ofctl_v1_2 'match': { 'dl_type': 2048, 'nw_dst': '10.0.2.0/24' } - ofctl_v1_3 'match': { 'OFPMatch': { 'type

[Ryu-devel] [PATCH 2/3] ofctl_v1_3: support some actions

2013-11-25 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- ryu/lib/ofctl_v1_3.py |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ryu/lib/ofctl_v1_3.py b/ryu/lib/ofctl_v1_3.py index 57eb059..4a61b9c 100644 --- a/ryu/lib/ofctl_v1_3.py +++ b/ryu/lib/ofctl_v1_3.py @@ -43,9 +43,9 @@ def to_actions(

[Ryu-devel] [PATCH 3/3] rest_firewall: support OF 1.3

2013-11-25 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- ryu/app/rest_firewall.py | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/ryu/app/rest_firewall.py b/ryu/app/rest_firewall.py index c6720d5..ba5a166 100644 --- a/ryu/app/rest_firewall.py +++ b/ryu/app/rest_firewall

[Ryu-devel] [PATCH 0/3] rest_firewall: support OF 1.3

2013-11-25 Thread Yuichi Ito
Yuichi Ito (3): ofctl_v1_3: correct the output result of get_flow_stats() ofctl_v1_3: support some actions rest_firewall: support OF 1.3 ryu/app/rest_firewall.py | 30 + ryu/lib/ofctl_v1_3.py| 112 +- 2 files changed, 122 insert

[Ryu-devel] How to: Group Table

2013-11-25 Thread WEI-HSIANG LIN
Hi all, I’m implementing SDN for multicast networks, and I want to use group table for the purpose, but I don’t know how to use it. Like Action Buckets : OFPBucket(weight, watch_port, watch_group, actions) In the document, it doesn’t talk much about how to use OFPBucket. What is the definiti

Re: [Ryu-devel] Virtual port with openvswitch

2013-11-25 Thread FUJITA Tomonori
On Mon, 25 Nov 2013 05:50:05 -0700 Junguk Cho wrote: > Q1) Is it way of creating virtual port?? > # ovs-vsctl add-port br0 vi0 -- set Interface vi0 type=internal > You mean I can create virtual port with ryu/lib/ovs/vsctl.py, > Is it right? Yes. ryu/lib/ovs/vsctl can remotely do the same things

Re: [Ryu-devel] Virtual port with openvswitch

2013-11-25 Thread Junguk Cho
> First, I do not know how to set up virtual port with openvswitch and ryu > controller. > I wish I handle header manipulation with virtual port. > Is there anyone who had experience?? OpenFlow protocol doesn't support such. You need to use OVS specific protocol (OVS JSON DB). Ryu has handy librie

Re: [Ryu-devel] Virtual port with openvswitch

2013-11-25 Thread FUJITA Tomonori
On Mon, 25 Nov 2013 03:39:42 -0700 Junguk Cho wrote: > First, I do not know how to set up virtual port with openvswitch and ryu > controller. > I wish I handle header manipulation with virtual port. > Is there anyone who had experience?? OpenFlow protocol doesn't support such. You need to use OV

[Ryu-devel] Virtual port with openvswitch

2013-11-25 Thread Junguk Cho
Hello, I have two questions. First, I do not know how to set up virtual port with openvswitch and ryu controller. I wish I handle header manipulation with virtual port. Is there anyone who had experience?? Second, I would like to handle tunneling protocol in openvswitch. In my knowledge, I first

Re: [Ryu-devel] Ryu support for OF 1.3

2013-11-25 Thread FUJITA Tomonori
On Mon, 25 Nov 2013 10:55:04 +0100 Windhya Rankothge wrote: > Is there any build in module in Ryu, that i can try to do this ? No. You have to implement an application that uses OFPRoleRequest to set up multiple controllers for one switch first. Then the application makes sure that each control

Re: [Ryu-devel] Ryu support for OF 1.3

2013-11-25 Thread Windhya Rankothge
Thanks alot, but can you please elaborate on how to do it.. I just tried it with simple_switch_13.py.. Is there any build in module in Ryu, that i can try to do this ? On Mon, Nov 25, 2013 at 10:49 AM, FUJITA Tomonori < [email protected]> wrote: > On Mon, 25 Nov 2013 10:39:39 +0100 >

Re: [Ryu-devel] Ryu support for OF 1.3

2013-11-25 Thread FUJITA Tomonori
On Mon, 25 Nov 2013 10:39:39 +0100 Windhya Rankothge wrote: > Thanks alot and it is working.. > > Does Ryu supports multiple controllers ? I mean can I run two Ryu > controllers on two different ports and control the same switch.. > > I tried it, eventhough it did not give me any error message,

Re: [Ryu-devel] [PATCH] rest_router: support OF 1.3

2013-11-25 Thread FUJITA Tomonori
On Mon, 25 Nov 2013 15:44:29 +0900 Yuichi Ito wrote: > Signed-off-by: Yuichi Ito > --- > ryu/app/rest_router.py | 99 > > 1 file changed, 75 insertions(+), 24 deletions(-) Applied, thanks.

Re: [Ryu-devel] Ryu support for OF 1.3

2013-11-25 Thread Windhya Rankothge
Thanks alot and it is working.. Does Ryu supports multiple controllers ? I mean can I run two Ryu controllers on two different ports and control the same switch.. I tried it, eventhough it did not give me any error message, I did not see any messages from the switch on the second controller.. O

Re: [Ryu-devel] [PATCH 2/2] ofp: use RyuApp start() to return Greenlet thread

2013-11-25 Thread FUJITA Tomonori
On Mon, 25 Nov 2013 14:23:56 +0900 (JST) [email protected] (YAMAMOTO Takashi) wrote: > looks good to me. thanks. > > YAMAMOTO Takashi > > > starts OFP like other applications. Kill the original way to start OFP > > (start_service). > > > > Signed-off-by: FUJITA Tomonori > > --- > > ryu/

Re: [Ryu-devel] [PATCH 1/2] run OFP if no application is specified

2013-11-25 Thread FUJITA Tomonori
On Sun, 24 Nov 2013 03:21:21 +0900 FUJITA Tomonori wrote: > Keep the old behavior. > > Signed-off-by: FUJITA Tomonori > --- > ryu/cmd/manager.py | 3 +++ > 1 file changed, 3 insertions(+) Applied both. -- Shape the M

Re: [Ryu-devel] Ryu support for OF 1.3

2013-11-25 Thread FUJITA Tomonori
Hi, On Mon, 25 Nov 2013 10:04:51 +0100 Windhya Rankothge wrote: > admins@sdn-ctl1:~/ryu$ PYTHONPATH=. ./bin/ryu-manager --ofp-tcp-listen-port > 7733 ryu/app/simple_switch.py Try: ryu/app/simple_switch_13.py -- Shape t

[Ryu-devel] Ryu support for OF 1.3

2013-11-25 Thread Windhya Rankothge
Hi all, I run my Ryu contoller with following command.. admins@sdn-ctl1:~/ryu$ PYTHONPATH=. ./bin/ryu-manager --ofp-tcp-listen-port 7733 ryu/app/simple_switch.py My OF switch has OF 1.3 and it gives me following error messages.. Nov 25 10:01:27|00355|rconn|INFO|tcp:192.168.1.30:7733: connecting

Re: [Ryu-devel] [PATCH 4/9] base/app_manager: create/destroy RyuApp instances dynamically

2013-11-25 Thread FUJITA Tomonori
On Mon, 25 Nov 2013 13:41:49 +0900 (JST) [email protected] (YAMAMOTO Takashi) wrote: > > On Fri, 22 Nov 2013 16:45:59 +0900 > > YAMAMOTO Takashi wrote: > > > >> From: Isaku Yamahata > >> > >> allow RyuManager to create/destroy RyuApp instances dynamically > >> and register/unregister even