[Ryu-devel] [PATCH 1/2] ofproto: Implement OFPFlowMod parser

2016-05-29 Thread IWASE Yusuke
Currently, Ryu does not have the parser for Controller-to-Switch one-way messages, but when testing Actions or Match fields, OFPFlowMod parser is convenient in order to test them. This patch implements the parser for OFPFlowMod messages. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_0_

[Ryu-devel] [PATCH 2/2] packet_data_generator3: Clear xid into zero

2016-05-29 Thread IWASE Yusuke
Because ovs-ofctl increments the xid field automatically, the xid of the generated packets is set to be 0x02. So, we should specify {"xid": 2} in json data, but when Ryu dumping json data from message instance, "xid" are omitted and this causes assertion error in test_parser.py This patch enables

[Ryu-devel] [PATCH 1/3] pcaplib: Reduce Pylint warnings

2016-05-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/pcaplib.py | 206 - 1 file changed, 109 insertions(+), 97 deletions(-) diff --git a/ryu/lib/pcaplib.py b/ryu/lib/pcaplib.py index 03e0202..b11c0b3 100644 --- a/ryu/lib/pcaplib.py +++ b/ryu/lib/pcaplib.py

[Ryu-devel] [PATCH 0/3] Improvements of pcaplib

2016-05-29 Thread IWASE Yusuke
The followings improve pcaplib implementation, add the test cases and the documentation for pcaplib. The example of the documentation for pcaplib: http://ryu-iwase.readthedocs.io/en/pcaplib-adopt_to_python3/library_pcap.html IWASE Yusuke (3): pcaplib: Reduce Pylint warnings test_pcaplib: Ad

[Ryu-devel] [PATCH 2/3] test_pcaplib: Add unit tests for pcaplib

2016-05-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/tests/packet_data/pcap/big_endian.pcap| Bin 0 -> 78 bytes ryu/tests/packet_data/pcap/little_endian.pcap | Bin 0 -> 78 bytes ryu/tests/unit/lib/test_pcaplib.py| 230 ++ 3 files changed, 230 insertions(+) create mode 100

[Ryu-devel] [PATCH 3/3] doc: Add PCAP file library reference

2016-05-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- doc/source/library.rst | 1 + doc/source/library_pcap.rst | 27 +++ ryu/lib/pcaplib.py | 113 ++-- 3 files changed, 95 insertions(+), 46 deletions(-) create mode 100644 doc/source/library_pcap.rst d

Re: [Ryu-devel] How I can identify a packet from the Ryu-controller to OpenFlow v1.3 switch?

2016-05-29 Thread Iwase Yusuke
Hi, To process the packet using the flow entries, you need to output the packet to "OFPP_TABLE" port. For just forwarding (Not mirroring), please refer to the following. $ git diff diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py index 3e7c598..9d3741c 100644 --- a/ryu/app/

Re: [Ryu-devel] OFPR_ACTION bitmask of the “Set asynchronous configuration message”

2016-05-29 Thread Shinpei Muraoka
Hi, What dose "reversible" mean? Does switch have information set by the OFPSetAsync? If you not check, please check by using the following. http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html?highlight=OFPSetAsync#ryu.ofproto.ofproto_v1_3_parser.OFPGetAsyncRequest http://ryu.readthedocs.io

[Ryu-devel] Ryu-manager

2016-05-29 Thread Muhammad Tauseef Khan
Hi, I have been trying to run Ryu but I am getting the following error on Ubuntu 16. I have also tried RyuInstallHelper but unfortunately it just worked only once inside the $ virtualenv ryu_venv environment and next time it started giving me the same error as without virtualenv ryu_venu. Can y

[Ryu-devel] Difficulty with Set Asynchronous Configuration Message

2016-05-29 Thread mehran shetabi
Hi, In my RYU controller, I use one thread that repeatedly adds and then deletes a flow entry for measuring flow setup time. I use event flow removed handler as mentioned below for knowing when the flow entry is removed. @set_ev_cls(ofp_event.EventOFPFlowRemoved, MAIN_DISPATCHER) def flow_remov