[Ryu-devel] [PATCH 3/5] bgp: fix typos

2016-05-24 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/packet/bgp.py | 4 ++-- ryu/lib/packet/safi.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 96746f5..fa1f5d6 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -59

[Ryu-devel] [PATCH 5/5] test_bgp: Enable to test parser with pcap file

2016-05-24 Thread IWASE Yusuke
Currently, test_bgp uses packet_data/bgp4/* files which contain only BGP protocol binary data. This patch convert packet_data file into pcap file and enable to test BGP packet library with pcap file. With pcap file, we can easily check packet data validity by using Wireshark or other packet sniffer

[Ryu-devel] [PATCH 2/5] test-requires: Update to use the latest Pylint

2016-05-24 Thread IWASE Yusuke
Current specified Pylint(==0.25.0) are not enough to support Python 3. This patch updates test-requires to use the latest one. Signed-off-by: IWASE Yusuke --- tools/test-requires | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test-requires b/tools/test-requires index 1

[Ryu-devel] [PATCH 1/5] test-requires: Add tinyrpc for RPC controller in wsgi

2016-05-24 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- tools/test-requires | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test-requires b/tools/test-requires index 3150b92..1cc85a5 100644 --- a/tools/test-requires +++ b/tools/test-requires @@ -7,3 +7,4 @@ formencode lxml; platform_python_implementation != '

[Ryu-devel] [PATCH 4/5] packet/bgp: Reduce Pylint warnings

2016-05-24 Thread IWASE Yusuke
This patch removes the following Pylint warnings: - anomalous-backslash-in-string - arguments-differ - bad-builtin - bad-staticmethod-argument - superfluous-parens - super-init-not-called - unidiomatic-typecheck - unused-variable - wrong-import-order Signed-off-by: IWASE Yusuke

[Ryu-devel] [PATCH 0/5] packet/bgp: Reduce Pylint warnings

2016-05-24 Thread IWASE Yusuke
The following patches improves Pylint result of ryu/lib/packet/bgp and updates the unit tests of it. Also, these patches contains the updates of test-requires. IWASE Yusuke (5): test-requires: Add tinyrpc for RPC controller in wsgi test-requires: Update to use the latest Pylint bgp: fix typo

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

2016-05-24 Thread Iwase Yusuke
Hi, On 2016年05月25日 02:39, Maurizio Marrocco wrote: > Hi to everyone, > > I need an help for my thesis, > > I want to identify a control packet from Python RYU-controller. In other > words: How I can to do the following instruction? > > |If(I receive a OFPT_PACKET_OUT msg fromryu-controller)dosome

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

2016-05-24 Thread mehran shetabi
Hi, In RYU, I used OFPSetAsync message to mask packet_in caused by ACTION as mentioned in RYU doc. This is the code: def send_set_async(self, datapath): ofp = datapath.ofproto ofp_parser = datapath.ofproto_parser packet_in_mask = ofp.OFPR_ACTION port_status_mask = (ofp.OFPPR_ADD | ofp.OFPPR_DELE

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

2016-05-24 Thread Maurizio Marrocco
Hi to everyone, I need an help for my thesis, I want to identify a control packet from Python RYU-controller. In other words: How I can to do the following instruction? If (I receive a OFPT_PACKET_OUT msg from ryu-controller) do something (for example all control traffic from controller must