Re: [Ryu-devel] [PATCH v2 1/3] add firewall Ryu application

2013-03-19 Thread Isaku Yamahata
On Tue, Mar 19, 2013 at 05:20:34PM +0900, watanabe.fumitaka wrote: > This application operates a switch as a firewall. > > > Signed-off-by: WATANABE Fumitaka > --- > ryu/app/rest_firewall.py | 658 > ++ > 1 file changed, 658 insertions(+) > create

Re: [Ryu-devel] how to find ports' ipv6 address with nx_match?

2013-03-19 Thread Isaku Yamahata
I suppose that you installed flows that has ipv6 match/action by NXTFlowMod, and then retrieve flow stats by ofp_stats_request. But there is no ipv6 flow while ovs-ofctl shows the ipv6 flow. If you use OF1.0 with nicira extension, nx_flow_stats_request with NXST_FLOW should be used. (Or use OF1.2+

[Ryu-devel] how to find ports' ipv6 address with nx_match?

2013-03-19 Thread jian lee
hello, I would like to make a little programme to handle ipv6 flow table with openflow1.0 and nicira extention,just like ofctl_v1_0.py does,the programme should have the ability to get,add,modify and delete the ipv6 flow table,but at the first step,I don't know how to get the ipv6 flow table,I had

[Ryu-devel] [PATCH v2 3/3] add ofctl_v1_2 library

2013-03-19 Thread watanabe.fumitaka
This is a openflow v1.2 control library. Signed-off-by: WATANABE Fumitaka --- ryu/lib/ofctl_v1_2.py | 253 + 1 file changed, 253 insertions(+) create mode 100755 ryu/lib/ofctl_v1_2.py diff --git a/ryu/lib/ofctl_v1_2.py b/ryu/lib/ofctl_v1_2.py n

[Ryu-devel] [PATCH v2 2/3] update ofctl_v1_0 library

2013-03-19 Thread watanabe.fumitaka
This patch contains the following update for ofctl_v1_0 library. correct the setting error of a wild card. add a net mask to IP address acquired from StatsReply. Signed-off-by: WATANABE Fumitaka --- ryu/lib/ofctl_v1_0.py | 28 +--- 1 file changed, 25 insertions(+), 3

[Ryu-devel] [PATCH v2 1/3] add firewall Ryu application

2013-03-19 Thread watanabe.fumitaka
This application operates a switch as a firewall. Signed-off-by: WATANABE Fumitaka --- ryu/app/rest_firewall.py | 658 ++ 1 file changed, 658 insertions(+) create mode 100644 ryu/app/rest_firewall.py diff --git a/ryu/app/rest_firewall.py b/ryu/app/

[Ryu-devel] [PATCH v2 0/3] add firewall Ryu application

2013-03-19 Thread watanabe.fumitaka
This patch implements a Firewall Ryu application. It can control the packets(ALLOW or DENY) by the ACL rules(Access Control List) on OpenFlow. The ACL rules is operated by the REST messages. This update(v1->v2) contains the following changes. edit for latest pep8. consistent indentation and rem

Re: [Ryu-devel] [PATCH 1/3] add firewall Ryu application

2013-03-19 Thread watanabe.fumitaka
Hi Mr.Yamahata, Thanks for your comments. I will correct as follows. >> >+# disable the firewall switches >> >+# GET/wm/firewall/module/disable/{switch-id} >> >+# {switch-id} is 'all' or switchID > GET seems confusing. POST to enable and DELETE to disable? > What's 'wm'? As you say, GET seems

Re: [Ryu-devel] Ryu OpenFlow Tutorial page

2013-03-19 Thread Can Zhang
Hello Yamahata, I'd like to write some documents about Ryu recently, mainly for two reasons: 1) I think Ryu is a good platform for OpenFlow, but it lacks rich documents comparing to POX and other platforms. 2) As I read lots of code of Ryu recently, I want to take this chance to confirm/correc