[Ryu-devel] Adding Flow Entry

2016-02-21 Thread Talal Alharbi
Dear All, I'm using OpenFlow1.3 and I was trying to add more than one rules in one go at the switch inside a loop, but it is not going through the iteration. Instead, it just ran the loop only one time. I also got the following warrning. Could you please help on this matter? Cheers, Tal

Re: [Ryu-devel] How to delete flow rules from a set of switches

2016-02-21 Thread Shinpei Muraoka
Hi > But how can I delete flow entry from node s4 also? > That means not only delete flow rules from the affected nodes but also from > affected path. The implementation of your application algorithm is routing by the input port? Just an idea, I think that implementation of routing by MAC or IP

[Ryu-devel] [PATCH] .pylintrc: Remove deprecated output format feature

2016-02-21 Thread IWASE Yusuke
The 'parseable' output format of pylint is deprecated. This patch updates the option from 'output-format=parseable' into equivalent output format by using 'msg-template'. Signed-off-by: IWASE Yusuke --- .pylintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pylintrc b/.py

[Ryu-devel] [PATCH 2/3] run_mininet: Adopt utility methods of Mininet class

2016-02-21 Thread IWASE Yusuke
Currently, run_mininet uses low level APIs of mininet. This patch fixes to use utility methods of Mininet class. Signed-off-by: IWASE Yusuke --- ryu/tests/switch/run_mininet.py | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/ryu/tests/switch/run_mininet.py b/ryu

[Ryu-devel] [PATCH 1/3] run_mininet: Support protocols option of ovs-vsctl

2016-02-21 Thread IWASE Yusuke
To support user-specified OpenFlow version, this patch adds protocols option support into run_mininet script. Usage example) $ sudo python run_mininet.py --protocols OpenFlow13 Signed-off-by: IWASE Yusuke --- ryu/tests/switch/run_mininet.py | 18 -- 1 file changed, 8 insertion

[Ryu-devel] [PATCH 3/3] run_mininet: Specify the controller port

2016-02-21 Thread IWASE Yusuke
In the latest mininet, the default controller port has been updated to 6653, but currently the default port of Ryu is 6633. This patch specifies the controller port by using the constant from Ryu ofproto module. Signed-off-by: IWASE Yusuke --- ryu/tests/switch/run_mininet.py | 4 +++- 1 file ch

[Ryu-devel] [PATCH 0/3] Improve mininet script for switch tester

2016-02-21 Thread IWASE Yusuke
Currently, switch tester supports multiple OpenFlow version, but run_mininet.py supports ONLY OpenFlow 1.3 and 1.4. The following patches fix run_mininet.py to support user-specified OpenFlow version with Open vSwitch. Additionally, some improvements are included. IWASE Yusuke (3): run_mininet:

[Ryu-devel] [PATCH] ofp_handler: Handle empty data field in OFPErrorMsg

2016-02-21 Thread IWASE Yusuke
OpenFlow Spec defines that the data field should contain at least 64 bytes of the failed request that caused the error message to be generated, unless otherwise specified. But, the data field can be empty in some switch implementation, this patch checks the data field length and skips parsing it if

[Ryu-devel] [PATCH 2/3] lib/ofctl: add ofctl_v1_4 library

2016-02-21 Thread Minoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI --- ryu/lib/ofctl_utils.py | 85 - ryu/lib/ofctl_v1_4.py | 979 + 2 files changed, 1062 insertions(+), 2 deletions(-) create mode 100644 ryu/lib/ofctl_v1_4.py diff --git a/ryu/lib/ofctl_utils.py b/ryu/lib/ofct

[Ryu-devel] [PATCH 1/3] app/ofctl_rest: support OpenFlow1.4

2016-02-21 Thread Minoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI --- ryu/app/ofctl_rest.py | 62 +-- 1 file changed, 55 insertions(+), 7 deletions(-) diff --git a/ryu/app/ofctl_rest.py b/ryu/app/ofctl_rest.py index e41d7d6..7c39e3b 100644 --- a/ryu/app/ofctl_rest.py +++ b/ryu/app/

[Ryu-devel] [PATCH 0/3] add ofctl_v1_4.py

2016-02-21 Thread Minoru TAKAHASHI
These patches are for adding ofctl_v1_4.py. ofctl_v1_4.py makes ofctl_rest enable use OpenFlow1.4 messages. Minoru TAKAHASHI (3): app/ofctl_rest: support OpenFlow1.4 lib/ofctl: add ofctl_v1_4 library lib/ofctl: add test files for ofctl_v14 ryu/app/ofctl_rest.py