Re: [Ryu-devel] ryu freeze when ryu picks up segment packet

2018-03-29 Thread Fujimoto Satoshi
Hi, Hirasawa-san I'm glad to hear that. I was going to make patch after confirming improvement on your environment anyway, so I will send my patch to Ryu soon. Thanks, Fujimoto On 2018年03月29日 10:28, Takayoshi Hirasawa wrote: Fujimoto-san Thank you for your patch. I tried it and confirmed im

[Ryu-devel] Adding flag, label or any thing from switch to Controller.

2018-03-29 Thread emi.hacker via Ryu-devel
Hello all,  C1                             C2 |    \                              |S1-- S2 S3 |H1 In this  senerio, H1  sends pkt to S1, after that to C2 through S2 and S3. I need S1 to add a label or flag (e.g A = 10), and I get it in Packet-In messages to make a decision.

[Ryu-devel] [PATCH 0/2] packet: Avoid freezing when receiving segmented OF packets

2018-03-29 Thread Satoshi Fujimoto
If ryu tries to parse segmented OF packets by the packet library, the process becomes infinite loop, bacause Ryu tries to parse OpenFlow header for the segmented packets, which don't have OpenFlow header, they only have body. This commit fixes this by stopping parsing OpenFlow header when the resul

[Ryu-devel] [PATCH 2/2] packet: Avoid freezing when receiving segmented OF packets

2018-03-29 Thread Satoshi Fujimoto
If ryu tries to parse segmented OF packets by the packet library, the process becomes infinite loop, bacause Ryu tries to parse OpenFlow header for the segmented packets, which don't have OpenFlow header, they only have body. This commit fixes this by stopping parsing OpenFlow header when the resul

[Ryu-devel] [PATCH 1/2] test/packet: Remove openflow_invalid_version test

2018-03-29 Thread Satoshi Fujimoto
If the OpenFlow packet has invalid version, it is doubtful whether the packet itself is valid or not. So this commit removes the test for the packet. Signed-off-by: Satoshi Fujimoto --- ryu/tests/packet_data/pcap/openflow_invalid_version.pcap | Bin 186 -> 0 bytes ryu/tests/unit/packet/test_open

[Ryu-devel] [PATCH 1/4] mrtlib: Missing subclass for SUBTYPE_RIB_*_MULTICAST

2018-03-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/mrtlib.py | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/ryu/lib/mrtlib.py b/ryu/lib/mrtlib.py index 83b4e53..c8f86fc 100644 --- a/ryu/lib/mrtlib.py +++ b/ryu/lib/mrtlib.py @@ -667,22 +667,44 @@ class Ta

[Ryu-devel] [PATCH 4/4] mrtlib: Define JSON representation types

2018-03-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/mrtlib.py | 30 ++ 1 file changed, 30 insertions(+) diff --git a/ryu/lib/mrtlib.py b/ryu/lib/mrtlib.py index a89ccfc..c2d50c6 100644 --- a/ryu/lib/mrtlib.py +++ b/ryu/lib/mrtlib.py @@ -264,6 +264,12 @@ class Ospf2MrtMessage(MrtM

[Ryu-devel] [PATCH 3/4] test_mrtlib: Test cases for ADD_PATH

2018-03-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/tests/unit/lib/test_mrtlib.py | 61 +++ 1 file changed, 61 insertions(+) diff --git a/ryu/tests/unit/lib/test_mrtlib.py b/ryu/tests/unit/lib/test_mrtlib.py index e870f40..55c7cda 100644 --- a/ryu/tests/unit/lib/test_mrtlib.

[Ryu-devel] [PATCH 2/4] mrtlib: Support RFC8050

2018-03-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/mrtlib.py | 130 -- 1 file changed, 116 insertions(+), 14 deletions(-) diff --git a/ryu/lib/mrtlib.py b/ryu/lib/mrtlib.py index c8f86fc..a89ccfc 100644 --- a/ryu/lib/mrtlib.py +++ b/ryu/lib/mrtlib.py @@ -

[Ryu-devel] [PATCH 0/4] mrtlib: Support RFC8050

2018-03-29 Thread IWASE Yusuke
The following pathes fix "ryu.lib.mrtlib" to support RFC8050 (Multi-Threaded Routing Toolkit (MRT) Routing Information Export Format with BGP Additional Path Extensions). IWASE Yusuke (4): mrtlib: Missing subclass for SUBTYPE_RIB_*_MULTICAST mrtlib: Support RFC8050 test_mrtlib: Test cases fo

Re: [Ryu-devel] Adding flag, label or any thing from switch to Controller.

2018-03-29 Thread Iwase Yusuke
Hi Nadim, First, please confirm your situation. You want to realize the following? 1. H1 send some packets 2. S1 send the received packets to C1 as Packet-In messages 3. C1 send the packets as Packet-Out to S2 4. S1 send the packets to S3 5. S3 send the packets to C2 as Packet-In messages And, i

[Ryu-devel] [PATCH 0/2] Export Nicira messages to ofproto_v1_[2345]_parser

2018-03-29 Thread IWASE Yusuke
The following patches adds a new module "nx_message" in order to export Nicira messages, which defined only in "ofproto_v1_0_parser", to other parsers for other OpenFlow versions. IWASE Yusuke (2): ofproto_v1_2: Enable to use NXAction in OpenFlow 1.2 Export Nicira messages to ofproto_v1_[2345]

[Ryu-devel] [PATCH 2/2] Export Nicira messages to ofproto_v1_[2345]_parser

2018-03-29 Thread IWASE Yusuke
This patch adds a new module "nx_message" in order to export Nicira messages, which defined only in "ofproto_v1_0_parser", to other parsers for other OpenFlow versions. Note: This patch exports only "NXTSetControllerId" at this time, because other Nicira messages have alternatives of the standard

[Ryu-devel] [PATCH 1/2] ofproto_v1_2: Enable to use NXAction in OpenFlow 1.2

2018-03-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_2.py| 3 +++ ryu/ofproto/ofproto_v1_2_parser.py | 7 +++ 2 files changed, 10 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_2.py b/ryu/ofproto/ofproto_v1_2.py index 1c8a971..acc4ea7 100644 --- a/ryu/ofproto/ofproto_v1_2.py +++