Re: [Ryu-devel] [PATCH] add pep8 options to tox.ini

2014-05-13 Thread FUJITA Tomonori
On Wed, 14 May 2014 15:34:23 +0900 Yoshihiro Kaneko wrote: > 2014-05-14 13:27 GMT+09:00 FUJITA Tomonori : >> On Tue, 13 May 2014 19:05:33 +0900 >> Yoshihiro Kaneko wrote: >> >>> Add the pep8 section to tox.ini and specify ignoring E113. >>> Many E113 errors appeared on comments. It seems a bug o

[Ryu-devel] [PATCH] app/rest_qos: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/app/rest_qos.py |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/app/rest_qos.py b/ryu/app/rest_qos.py index 55847a1..b9f2791 100644 --- a/ryu/app/rest_qos.py +++ b/ryu/app/rest_qos.py @@ -43,9 +43,9 @@ from ryu.ofproto import

Re: [Ryu-devel] [PATCH] add pep8 options to tox.ini

2014-05-13 Thread Yoshihiro Kaneko
2014-05-14 13:27 GMT+09:00 FUJITA Tomonori : > On Tue, 13 May 2014 19:05:33 +0900 > Yoshihiro Kaneko wrote: > >> Add the pep8 section to tox.ini and specify ignoring E113. >> Many E113 errors appeared on comments. It seems a bug of pep8, so it can be >> ignored. >> >> Signed-off-by: Yoshihiro Kan

Re: [Ryu-devel] [PATCH] add pep8 options to tox.ini

2014-05-13 Thread FUJITA Tomonori
On Tue, 13 May 2014 19:05:33 +0900 Yoshihiro Kaneko wrote: > Add the pep8 section to tox.ini and specify ignoring E113. > Many E113 errors appeared on comments. It seems a bug of pep8, so it can be > ignored. > > Signed-off-by: Yoshihiro Kaneko > --- > run_tests.sh |3 +-- > tox.ini

Re: [Ryu-devel] [PATCH v2] Added rest_qos module

2014-05-13 Thread FUJITA Tomonori
On Tue, 13 May 2014 19:33:25 +0900 Kiyonari Harigae wrote: > Yes, I wanted to contribute for Ryu book if the opportunity arises. > I would like to write them, and have finished writing the article, I will > send the patch. > Anyway, I'll fork the ryu book repository! Great, looking forward to a

Re: [Ryu-devel] assign meter to a flow

2014-05-13 Thread FUJITA Tomonori
On Tue, 13 May 2014 19:54:01 -0400 saman biook aghazadeh wrote: > In a simple controller, I wanted to assign a meter to a specific flow. I > searched the whole documentation, but couldn't find anything useful. > > Does anyone have any idea how to do this? Written in Japanese but I guess you can

[Ryu-devel] [PATCH] tests/unit: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/tests/unit/lib/test_rpc.py|8 +++--- ryu/tests/unit/ofproto/test_parser_v10.py |6 ++-- ryu/tests/unit/ofproto/test_parser_v12.py |6 ++-- ryu/tests/unit/packet/test_bgp.py | 44 +++-- ryu/tests/unit

[Ryu-devel] [PATCH] tests: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/tests/integrated/test_request_reply_v12.py |4 ++-- ryu/tests/integrated/vrrp_common.py|8 ryu/tests/switch/tester.py |8 ryu/tests/test_lib.py |6 +++--- 4 files cha

[Ryu-devel] assign meter to a flow

2014-05-13 Thread saman biook aghazadeh
Dear All, In a simple controller, I wanted to assign a meter to a specific flow. I searched the whole documentation, but couldn't find anything useful. Does anyone have any idea how to do this? -- "Accelerate Dev Cycles w

Re: [Ryu-devel] how to delete flows?

2014-05-13 Thread Eros Spalla
Hi, Here is a way to do. def remove_table_flows(self, datapath, table_id, match, instructions): """Create OFP flow mod message to remove flows from table.""" ofproto = datapath.ofproto flow_mod = datapath.ofproto_parser.OFPFlowMod(datapath, 0, 0, table_id,

[Ryu-devel] how to delete flows?

2014-05-13 Thread chen zhang
hi,everyone: when i want to remove all flows of table 1.i code that " match = parser.OFPMatch() instructions = [] flow_mod = datapath.ofproto_parser.OFPFlowMod(datapath, 0, 0, table_id, ofproto.OFPFC_DELETE, 0, 0,

[Ryu-devel] [PATCH] services/protocols: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/services/protocols/bgp/application.py |2 +- ryu/services/protocols/bgp/bgp_sample_conf.py |4 +-- ryu/services/protocols/bgp/operator/ssh.py| 14 - ryu/services/protocols/vrrp/dumper.py | 42 + ry

[Ryu-devel] [PATCH] lib/xflow: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/lib/xflow/sflow.py |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/lib/xflow/sflow.py b/ryu/lib/xflow/sflow.py index 4e80b56..3b4d72f 100644 --- a/ryu/lib/xflow/sflow.py +++ b/ryu/lib/xflow/sflow.py @@ -134,7 +134,7 @@ class

[Ryu-devel] [PATCH] lib/packet: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/lib/packet/bgp.py | 10 +- ryu/lib/packet/bpdu.py |2 +- ryu/lib/packet/ipv6.py |6 +++--- ryu/lib/packet/ospf.py | 37 +++-- ryu/lib/packet/packet_utils.py |6 +++---

[Ryu-devel] [PATCH] fix error of previous patch

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/lib/of_config/base.py |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/lib/of_config/base.py b/ryu/lib/of_config/base.py index ca363bf..c657b10 100644 --- a/ryu/lib/of_config/base.py +++ b/ryu/lib/of_config/base.py @@ -111,7 +111,7

[Ryu-devel] [PATCH] lib/of_config: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/lib/of_config/base.py |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/lib/of_config/base.py b/ryu/lib/of_config/base.py index 6495924..ca363bf 100644 --- a/ryu/lib/of_config/base.py +++ b/ryu/lib/of_config/base.py @@ -60,7 +

[Ryu-devel] [PATCH] lib: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/lib/igmplib.py| 46 +++--- ryu/lib/lacplib.py| 20 ++-- ryu/lib/ofctl_v1_2.py |4 ++-- ryu/lib/ofctl_v1_3.py |4 ++-- ryu/lib/rpc.py|2 +- ryu/lib/stplib.py |8 +

Re: [Ryu-devel] [PATCH v2] Added rest_qos module

2014-05-13 Thread Kiyonari Harigae
Hi Fujita, Thank you for apply. Yes, I wanted to contribute for Ryu book if the opportunity arises. I would like to write them, and have finished writing the article, I will send the patch. Anyway, I'll fork the ryu book repository! Kiyonari Harigae 2014-05-13 14:41 GMT+09:00 FUJITA Tomonori :

[Ryu-devel] [PATCH] controller: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/controller/controller.py |6 +++--- ryu/controller/dpset.py |4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ryu/controller/controller.py b/ryu/controller/controller.py index 48ab83c..a18d666 100644 --- a/ryu/controller/c

[Ryu-devel] [PATCH] app: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/app/ofctl/service.py | 10 +- ryu/app/ofctl_rest.py |8 ryu/app/rest.py|4 ++-- ryu/app/rest_firewall.py | 15 --- ryu/app/rest_router.py | 30 +++---

[Ryu-devel] [PATCH] topology/switches: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/topology/switches.py | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index 70226f1..4c66f0e 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.

[Ryu-devel] [PATCH] base/app_manager: fix pep8

2014-05-13 Thread Yoshihiro Kaneko
Signed-off-by: Yoshihiro Kaneko --- ryu/base/app_manager.py | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index 971918c..387d6ce 100644 --- a/ryu/base/app_manager.py +++ b/ryu/base/app_manager.py @@ -47,7 +47,7 @

[Ryu-devel] [PATCH] add pep8 options to tox.ini

2014-05-13 Thread Yoshihiro Kaneko
Add the pep8 section to tox.ini and specify ignoring E113. Many E113 errors appeared on comments. It seems a bug of pep8, so it can be ignored. Signed-off-by: Yoshihiro Kaneko --- run_tests.sh |3 +-- tox.ini |4 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/r

Re: [Ryu-devel] Problems with matching the flow entry

2014-05-13 Thread Ricardo Schmidt
Hi, answers below. > > I believe the flow entry is correctly installed in the switch. When I run > > the "ovs-ofctl dump-flows" cmd, it returns me two entries, the wildcard > and > > the one I created. However, the pkt and byte counters of mine rule are > > always empty. To test it I created a pc

[Ryu-devel] search for more information about ryu development

2014-05-13 Thread 臧俊捷
Hi, everyone, I am a beginner of ryu development,I plan to develop my own APP based on RYU. I need invoke the components in RYU,and use the library in it. But, I confused how to find the components I need. futhermore I need to define my own components and add more library, but ,I don't kown ho