Re: [Ryu-devel] Setting up firewall across 3 linear connected switches

2016-12-19 Thread Shinpei Muraoka
Hi, > I have tried to run the “ryu.app.rest_router”, and “ryu.app.rest_firewall” together at once but no success because it is not working. rest_router and rest_firewall can not be started at the same time. Because the flow table entries which are used in these apps are conflicted. If you wan

[Ryu-devel] Setting up firewall across 3 linear connected switches

2016-12-19 Thread Adebayo Adedayo
Hi Team, Please I need how to set up connection and configuration of 3 linear switches to run firewall application. I set up mininet with 3 linear switches and 2 hosts each. Please how is it possible to set address on the switches in order for them to communicate. I have tried to run the ryu.app

Re: [Ryu-devel] Parsing UDP segments in ryu

2016-12-19 Thread Iwase Yusuke
Hi, As you said, udp_pkt is a instance of UDP Header parser class. For getting the payload of UDP, please check pkt.protocols member, first. It should be contains each protocol header instance and payload data (might be binary type). e.g.) pkt.protocols might contain [ethernet(...), ipv4(..), ud

Re: [Ryu-devel] Parsing UDP segments in ryu

2016-12-19 Thread Garegin Grigoryan
Thanks! But udp_pkt contains only the header, as I understand it. I want to get the application data from the udp_segment and nothing else (no headers). On Tue, Dec 20, 2016 at 1:05 AM, Iwase Yusuke wrote: > Hi, > > > On 2016年12月20日 14:18, Garegin Grigoryan wrote: > > Hi, > > > > What is the be

Re: [Ryu-devel] Parsing UDP segments in ryu

2016-12-19 Thread Garegin Grigoryan
I think I can do it this way, because udp headers is 8 bytes: udp_pointer = len(msg.data) - udp_segment.total_length + 8 print msg.data[udp_pointer:] On Tue, Dec 20, 2016 at 1:08 AM, Garegin Grigoryan wrote: > Thanks! > > But udp_pkt contains only the header, as I unders

Re: [Ryu-devel] Parsing UDP segments in ryu

2016-12-19 Thread Iwase Yusuke
Hi, On 2016年12月20日 14:18, Garegin Grigoryan wrote: > Hi, > > What is the best way to parse UDP segments in ryu controller? I want to see > the application data. > I've tried this but it doesn't work: > > udp_parser = stream_parser.StreamParser() > print udp_parser.parse(msg.data) Does "msg.da

Re: [Ryu-devel] Info about RYU

2016-12-19 Thread Shinpei Muraoka
Hi If you just want to run rest api easily, please try using the following. https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo If you want to make web page using Ryu a

Re: [Ryu-devel] About Ryu OpenStack Plugins doc

2016-12-19 Thread Iwase Yusuke
Hi Iwamoto-San, On 2016年12月20日 12:35, IWAMOTO Toshihiro wrote: > At Tue, 20 Dec 2016 11:00:18 +0900, > Iwase Yusuke wrote: >> >> Hi Team, >> >> Does anyone knows the following page is necessary or not? >> http://ryu.readthedocs.io/en/latest/using_with_openstack.html > > Seems there are still s

[Ryu-devel] Parsing UDP segments in ryu

2016-12-19 Thread Garegin Grigoryan
Hi, What is the best way to parse UDP segments in ryu controller? I want to see the application data. I've tried this but it doesn't work: udp_parser = stream_parser.StreamParser() print udp_parser.parse(msg.data) TypeError: Can't instantiate abstract class StreamParser with abstract methods try

Re: [Ryu-devel] About Ryu OpenStack Plugins doc

2016-12-19 Thread IWAMOTO Toshihiro
At Tue, 20 Dec 2016 11:00:18 +0900, Iwase Yusuke wrote: > > Hi Team, > > Does anyone knows the following page is necessary or not? > http://ryu.readthedocs.io/en/latest/using_with_openstack.html Seems there are still some old informations on the web, leaving a short note that says "ofagent and

[Ryu-devel] [PATCH] utils: Re-implement parse_requirements

2016-12-19 Thread IWASE Yusuke
This patch re-implements utils.parse_requirements() without retrieving code from OpenStack. Signed-off-by: IWASE Yusuke --- ryu/utils.py | 71 1 file changed, 24 insertions(+), 47 deletions(-) diff --git a/ryu/utils.py b/ryu/utils.py

[Ryu-devel] [PATCH 1/2] packet lib: Add packet library of Geneve

2016-12-19 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- doc/source/library_packet_ref.rst | 3 + ryu/lib/packet/ether_types.py | 1 + ryu/lib/packet/geneve.py | 189 ++ ryu/lib/packet/udp.py | 3 + 4 files changed, 196 insertions(+) create mode 10064

[Ryu-devel] [PATCH 2/2] test_gre: Add unit tests for NVGRE

2016-12-19 Thread Shinpei Muraoka
This patch adds test case of NVGRE. Also, fixes unit tests for GRE to the method using packet capture. For that reason, add packet capture files. Signed-off-by: Shinpei Muraoka --- ryu/tests/packet_data/pcap/gre_full_options.pcap | Bin 0 -> 190 bytes ryu/tests/packet_data/pcap/gre_no_option.pca

[Ryu-devel] [PATCH 0/2] packet lib: Add packet library of Geneve

2016-12-19 Thread Shinpei Muraoka
Shinpei Muraoka (2): packet lib: Add packet library of Geneve test_geneve: Add unit tests for Geneve doc/source/library_packet_ref.rst | 3 + ryu/lib/packet/ether_types.py | 1 + ryu/lib/packet/geneve.py | 189 +

[Ryu-devel] [PATCH 2/2] test_geneve: Add unit tests for Geneve

2016-12-19 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- ryu/tests/packet_data/pcap/geneve_unknown.pcap | Bin 0 -> 196 bytes ryu/tests/unit/packet/test_geneve.py | 62 + 2 files changed, 62 insertions(+) create mode 100644 ryu/tests/packet_data/pcap/geneve_unknown.pcap create mode

[Ryu-devel] [PATCH 1/2] packet/gre: Support NVGRE extension

2016-12-19 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- ryu/lib/packet/gre.py | 128 ++ 1 file changed, 108 insertions(+), 20 deletions(-) diff --git a/ryu/lib/packet/gre.py b/ryu/lib/packet/gre.py index c22032e..a62f0d1 100644 --- a/ryu/lib/packet/gre.py +++ b/ryu/lib

[Ryu-devel] [PATCH 0/2] packet/gre: Support NVGRE extension

2016-12-19 Thread Shinpei Muraoka
Shinpei Muraoka (2): packet/gre: Support NVGRE extension test_gre: Add unit tests for NVGRE ryu/lib/packet/gre.py| 128 + ryu/tests/packet_data/pcap/gre_full_options.pcap | Bin 0 -> 190 bytes ryu/tests/packet_data/pcap/gre_no_option.pcap| B

[Ryu-devel] [PATCH] doc: library_packet_ref: Update references

2016-12-19 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- doc/source/library_packet_ref.rst | 15 ++- ryu/lib/packet/mpls.py| 2 ++ ryu/lib/packet/vxlan.py | 35 +-- 3 files changed, 25 insertions(+), 27 deletions(-) diff --git a/doc/source/library_pac

Re: [Ryu-devel] bug in parsing dhcp packet

2016-12-19 Thread Iwase Yusuke
Hi, First, could you confirm on which point you get captures? On your host? Or on your switch? If you get these DHCP packets were captured on your host or switch, please confirm that the sent packet data to the controller is NOT truncated by "output" action in your flows. If "max_len" is other th

[Ryu-devel] About Ryu OpenStack Plugins doc

2016-12-19 Thread Iwase Yusuke
Hi Team, Does anyone knows the following page is necessary or not? http://ryu.readthedocs.io/en/latest/using_with_openstack.html IIRC, OpenStack plugins sources ware deleted with this commit: https://github.com/osrg/ryu/commit/28f6f6020a26d5abf6a074d5a453bf710eaa15db so we should remove the a

Re: [Ryu-devel] [PATCH] adding DHCPv6 support

2016-12-19 Thread Olivier Desnoë
I tried with Outlook in raw text mode and it seems to be fixing the line wrapping issue. Just tell me if something's wrong with the 2nd version of the patch. Olivier Le lun. 19 déc. 2016 à 01:54, Iwase Yusuke a écrit : > Hi, > > Thank you for updating your patch! > > > On 2016年12月16日 17:17, Oli

[Ryu-devel] Setting up firewall across 3 linear connected switches

2016-12-19 Thread Adebayo Adedayo
Hi All, Please I need how to set up connection and configuration of 3 linear switches to run firewall application. I set up mininet with 3 linear switches and 2 hosts each. Please how is it possible to set address on the switches in order for them to communicate. I have tried to run the “ryu.app

Re: [Ryu-devel] How to pass a list of values in a match field

2016-12-19 Thread Alan Deikman
> On Dec 13, 2016, at 5:38 PM, Iwase Yusuke wrote: > > With "_ordered_fields" argument, you can specifies "_fields2" member directly, > and you can set the same filed multiple times. This worked, thank you. Alan Deikman ZNYX Networks, Inc. --