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

2018-08-11 Thread IWASE Yusuke
Dear Fujita-San, Great to see you again. Could you review these patches when you have time? Thanks, Iwase Begin forwarded message: Date: Fri, 30 Mar 2018 11:33:54 +0900 From: IWASE Yusuke To: ryu-devel@lists.sourceforge.net Cc: IWASE Yusuke Subject: [PATCH 0/4] mrtlib: Support RFC8050

Re: [Ryu-devel] Query in Bgp neighbor_add api

2018-06-27 Thread Iwase Yusuke
lashdot.org! http://sdm.link/slashdot _______ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel >From 14f48def88012f779ac30d2068e4c7c8b1948233 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Wed, 27 Jun

Re: [Ryu-devel] Query regarding Ryu

2018-06-13 Thread Iwase Yusuke
or so, please specify "--zapi-server-version 2". Thanks, Iwase On 2018年06月13日 21:04, Vidhu Baggan wrote: Dear Sir  Appreciating your concern as I have already implemented BGP in Quagga but could not find the way out to connect BGP (Ryu) and Quagga . Kindly guide. Great Regards On

Re: [Ryu-devel] Query regarding Ryu

2018-06-13 Thread Iwase Yusuke
of Engineering & Technology . Mail CAMPUS Chandigarh - Patiala National Highway, Distt. Patiala - 140401. (Around 35 kms from Chandigarh) On Mon, Dec 25, 2017 at 6:38 AM, Iwase Yusuke <mailto:iwase.yusu...@gmail.com>> wrote: Hi, You mean modifying the rules of the BGP sta

Re: [Ryu-devel] BGP Speakers

2018-06-13 Thread Iwase Yusuke
speaker) connects to  two neighbors Rtr1 and Rtr2. SDN-Rtr2(RYU Bgp speaker) connects to  two neighbors Rtr2 and Rtr3. In this use case,  Any possibility of running with single BGP Speaker instance? Thanks Suresh On Mon, Jun 11, 2018 at 7:30 AM, Iwase Yusuke <mailto:iwase.yusu...@gmail.com>&

[Ryu-devel] [PATCH v2 0/3] BGPSpeaker: Advertise local routes to RR clients

2018-06-13 Thread IWASE Yusuke
patches fix to add or update attributes to for sending locally generated routes its RR clients and include some improvements. IWASE Yusuke (3): BGPSpeaker: Advertise local routes to RR clients pycodestyle: Ignore W504 BGPSpeaker: Fix BGP state string conversion ryu/services/protocols/bgp

[Ryu-devel] [PATCH v2 3/3] BGPSpeaker: Fix BGP state string conversion

2018-06-13 Thread IWASE Yusuke
The constants BGP_FSM_* are str type values and not callable. Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/peer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/services/protocols/bgp/peer.py b/ryu/services/protocols/bgp/peer.py index 2a0e2a9f

[Ryu-devel] [PATCH v2 2/3] pycodestyle: Ignore W504

2018-06-13 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- tox.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 758d1661..c1759acb 100644 --- a/tox.ini +++ b/tox.ini @@ -52,14 +52,15 @@ commands = [pycodestyle] exclude = pbr-*,.venv,.tox,.git,doc,dist,tools

Re: [Ryu-devel] [PATCH 2/3] pycodestyle: Ignore W504 and W605

2018-06-13 Thread Iwase Yusuke
just used raw strings (r"""foo"""). > If we won't change this docstring in future, smaller patches would be > better. Thanks, it looks good to me. On 2018年06月13日 12:06, IWAMOTO Toshihiro wrote: On Tue, 12 Jun 2018 17:26:50 +0900, IWAMOTO Toshihiro wrote: On

[Ryu-devel] [PATCH 1/3] BGPSpeaker: Advertise local routes to RR clients

2018-06-12 Thread IWASE Yusuke
-by: IWASE Yusuke --- ryu/services/protocols/bgp/peer.py | 47 +- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/ryu/services/protocols/bgp/peer.py b/ryu/services/protocols/bgp/peer.py index 70b486c0..2a0e2a9f 100644 --- a/ryu/services/protocols/bgp

[Ryu-devel] [PATCH 0/3] BGPSpeaker: Advertise local routes to RR clients

2018-06-12 Thread IWASE Yusuke
and include some improvements. IWASE Yusuke (3): BGPSpeaker: Advertise local routes to RR clients pycodestyle: Ignore W504 and W605 BGPSpeaker: Fix BGP state string conversion ryu/services/protocols/bgp/peer.py | 51 ++ tox.ini| 6 ++-- 2

[Ryu-devel] [PATCH 3/3] BGPSpeaker: Fix BGP state string conversion

2018-06-12 Thread IWASE Yusuke
The constants BGP_FSM_* are str type values and not callable. Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/peer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/services/protocols/bgp/peer.py b/ryu/services/protocols/bgp/peer.py index 2a0e2a9f

Re: [Ryu-devel] Query BGP speaker

2018-06-12 Thread Iwase Yusuke
ns. Query1: 1. To enable route_reflector in RYU,  Do i need to configuration any other API or parameters? Thanks Suresh On Thu, May 31, 2018 at 11:41 AM, Iwase Yusuke <mailto:iwase.yusu...@gmail.com>> wrote: Hi, > All routers are same AS number. This means Ryu and oth

Re: [Ryu-devel] BGP Speakers

2018-06-10 Thread Iwase Yusuke
Hi, I think you need to specify the following options in order to avoid the conflicts of listening ports. - BGP listen host addresses (or port number) https://github.com/osrg/ryu/blob/c29c9019ac8ab862bbc0caad7d49220f27ed0cf0/ryu/services/protocols/bgp/bgp_sample_conf.py#L51-L52 - RPC listen

Re: [Ryu-devel] BGP Query

2018-05-31 Thread Iwase Yusuke
w to configure this, and little more details about this. Can you share something more about this. Thanks Suresh. On Thu, May 31, 2018 at 12:02 PM, Iwase Yusuke mailto:iwase.yusu...@gmail.com>> wrote: Hi Suresh, >

Re: [Ryu-devel] BGP Query

2018-05-31 Thread Iwase Yusuke
Hi Suresh, > Query1) > Can we use the RYU BGP Speaker libaray, in this use case? Yes. I guess that use case is what exactly Ryu BGP speaker implementation is targeting. > if yes, could you provide some guide lines on how to use it. Sorry, I have no good document for such, but for example,

Re: [Ryu-devel] Query BGP speaker

2018-05-31 Thread Iwase Yusuke
Hi, > All routers are same AS number. This means Ryu and other routers are connected with the iBGP(internal BGP) peering, right? On the iBGP, generally the received routes from other iBGP peers will not be advertised in order to avoid network loops. If you need to advertise the iBGP routers to

Re: [Ryu-devel] 404 error when using ryu gui. Is it a bug?

2018-05-08 Thread Iwase Yusuke
Hi, Excuse me for jumping in. This issue hits this bug? https://www.mail-archive.com/ryu-devel@lists.sourceforge.net/msg13533.html "gui_topology" seems to cover all wsgi routes, then other wsgi apps can not register their methods. Thanks, Iwase On 2018年05月08日 17:31, IWAMOTO Toshihiro wrote:

Re: [Ryu-devel] Append fields in match

2018-04-09 Thread Iwase Yusuke
Hi, Excuse me for jumping in. How about using "dict" to store temporary match fields like; match_fields = { 'in_port': in_port, } # Do something match_fields['vlan_vid'] = vlan_vid # Do something match = parser.OFPMatch(**match_fields) Thanks, Iwase On

Re: [Ryu-devel] Spliting flows through two ports

2018-04-02 Thread Iwase Yusuke
*,                 group_id, buckets) I would like to divide the flow in a  way that in port 2 have 50% of the band and port 3 also have 50% of the band. I changed the *weight* value to *50* and used *ofp.OFPGT_SELECT* but it didn't work 2018-04-01 23:09 GMT-03:00 Iwase Yusuke <iwase.yusu...@gmail.

Re: [Ryu-devel] Spliting flows through two ports

2018-04-01 Thread Iwase Yusuke
//csie.nqu.edu.tw/smallko/sdn/ryu_multipath_13.htm is it right ? thanks 2018-04-01 22:14 GMT-03:00 Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>>: Hi Carlos, H... have you installed any "flow" entry which contained OF

Re: [Ryu-devel] Spliting flows through two ports

2018-04-01 Thread Iwase Yusuke
t0:packet_count=0,byte_count=0,byte_count=0,bucket1:packet_count=0,byte_count=0* * * I'm really lost and don't know how to fix that Do you have any idea of how can I solve this problem? many thanks. 2018-03-29 1:33 GMT-03:00 Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.co

[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 <iwase.yusu...@gmail.com> --- 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 ---

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

2018-03-29 Thread IWASE Yusuke
e alternatives of the standard OpenFlow messages. Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- doc/source/nicira_ext_ref.rst | 7 +++ ryu/ofproto/nx_message.py | 32 ryu/ofproto/ofproto_v1_0_parser.py | 23

[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

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,

[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:

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

2018-03-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- 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 ---

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

2018-03-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- 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/mrt

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

2018-03-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- 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/mrt

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

2018-03-29 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- 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 +

Re: [Ryu-devel] Unable to send packet out message

2018-03-28 Thread Iwase Yusuke
nd_msg(out) Thanks in advance. 2018-03-23 0:29 GMT+01:00 Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>>: Hi Alvaro, According to the OpenFlow Spec 1.3, the data field of OFPPacketOut must be an Ethernet frame and I think you need to add also

Re: [Ryu-devel] Spliting flows through two ports

2018-03-28 Thread Iwase Yusuke
. I don't know how to do this Is there any other thing that I am missing thanks in advanced 2018-03-26 20:28 GMT-03:00 Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>>: Hi Carlos, >  "*/using the group table with openflow 1.3

Re: [Ryu-devel] Problem about two controllers use REST api together

2018-03-26 Thread Iwase Yusuke
Hi, The cause of this problem seems to be the both controller use the same REST API (WSGI) port on the same host. How about specifying "--wsapi-port" (or "--wsapi-host" option? $ ryu-manager --help ...(snip)... --wsapi-host WSAPI_HOST webapp listen host (default

Re: [Ryu-devel] Spliting flows through two ports

2018-03-26 Thread Iwase Yusuke
as i said before and it is not working, means that I am using the group specification and it doens't work. and about your topology: It has only 2 switches or 4??? i don't know if my code is right or if i am missing something else. 2018-03-25 21:40 GMT-03:00 Iwase Yusuke <iwase.yusu

Re: [Ryu-devel] All the links of the topology not getting discovered.

2018-03-25 Thread Iwase Yusuke
I observed is - Number of Nodes: 13, Number of Edges:21. Is there a way this could be increased in terms of number of edges and nodes? Thanks! Taha On Sun, Mar 25, 2018 at 7:33 PM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>> wrote: Hi Taha,

Re: [Ryu-devel] Disable/Enable switch port with ryu

2018-03-25 Thread Iwase Yusuke
Hi Valson, How about using OFPPortMod message? http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPortMod Thanks, Iwase On 2018年03月24日 04:51, Valson Pereira wrote: Hi everyone; How i can disable/enable a specific swicth port with ryu? Thanks.

Re: [Ryu-devel] Spliting flows through two ports

2018-03-25 Thread Iwase Yusuke
mage below But I dont know if this would be possible using the group table. 2018-03-23 4:04 GMT-03:00 Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>>: Hi Carlos, What does "split flows" exactly mean? > req = parser.

Re: [Ryu-devel] All the links of the topology not getting discovered.

2018-03-25 Thread Iwase Yusuke
in RYU controller. Thanks! Taha On Fri, Mar 23, 2018 at 3:45 AM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>> wrote: Hi Taha, IIRC, the similar problems had reported before on this mailing list. I think you hit the performanc

Re: [Ryu-devel] All the links of the topology not getting discovered.

2018-03-23 Thread Iwase Yusuke
Hi Taha, IIRC, the similar problems had reported before on this mailing list. I think you hit the performance limit of "single" controller in order to use topology discovery feature against such many switches. For handling such large topology, how about splitting your topology into some

Re: [Ryu-devel] Informing the controller about the first switch Datapath and port number which connected to the host.

2018-03-23 Thread Iwase Yusuke
Hi Soliman, "ryu.topology" provides such feature, I guess. How about the following APIs and events? https://github.com/osrg/ryu/blob/master/ryu/topology/api.py#L38-L44 https://github.com/osrg/ryu/blob/e6773539b546576c13f7397769d2001c46bbfdaa/ryu/topology/event.py#L169-L186 If you want to

Re: [Ryu-devel] Spliting flows through two ports

2018-03-23 Thread Iwase Yusuke
Hi Carlos, What does "split flows" exactly mean? > req = parser.OFPGroupMod(datapath, ofp.OFPFC_ADD, ofp.OFPGT_SELECT, > group_id, buckets) If you specify OFPGT_SELECT, switch will execute "one" bucket in the group and not copied like the port mirroring. If you intend

Re: [Ryu-devel] Running multiple controllers

2018-03-23 Thread Iwase Yusuke
Hi, I think this issue is a problem of Mininet not Ryu. I found the similar script on Mininet's GitHub, but I don't know further. https://github.com/mininet/mininet/blob/master/examples/controllers2.py Thanks, Iwase On 2018年03月21日 00:05, Soliman Awad Alshra´a Abdullah TU Ilmenau wrote: Hello

[Ryu-devel] [PATCH 0/2] Avoid using pip as library

2018-03-22 Thread IWASE Yusuke
t;pip", in order to avoid this problem. IWASE Yusuke (2): utils: Remove "parse_requirements" function test_requirements: Avoid using pip as library ryu/tests/unit/test_requirements.py | 13 ++--- ryu/utils.py| 31 -

[Ryu-devel] [PATCH 2/2] test_requirements: Avoid using pip as library

2018-03-22 Thread IWASE Yusuke
Because importing "pip" in Python scripts is not supported usage of "pip", this patch fixes to use "pkg_resources" + "urllib" instead. Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/tests/unit/test_requirements.py | 13 ++---

[Ryu-devel] [PATCH 1/2] utils: Remove "parse_requirements" function

2018-03-22 Thread IWASE Yusuke
This patch removes unused function "parse_requirements" in order to avoid using "pip" as a Python library. Note: Officially "from pip import req as pip_req" is not supported usage of "pip". Reported-by: Katsaounis Molyvas Stamatios <mok...@intrac

Re: [Ryu-devel] Problem with new version of Pip

2018-03-22 Thread Iwase Yusuke
Hi, Thanks a lot for your information! It is very helpful for me! As you mentioned on the issue #5099, Ryu imports "pip" at; https://github.com/osrg/ryu/blob/e6773539b546576c13f7397769d2001c46bbfdaa/ryu/utils.py#L143-L144 and also;

Re: [Ryu-devel] Unable to send packet out message

2018-03-22 Thread Iwase Yusuke
Hi Alvaro, According to the OpenFlow Spec 1.3, the data field of OFPPacketOut must be an Ethernet frame and I think you need to add also Ethernet header using "ethernet.ethernet" class. http://osrg.github.io/ryu-book/en/html/packet_lib.html#generation-of-packets-serialization > p =

Re: [Ryu-devel] How to obtain ip address of hosts

2018-03-12 Thread Iwase Yusuke
Hi Zhang and Thanks a lot ??! Excuse me for jumping in. Please refer to the Ryu-Book for getting started. For example, "Switching Hub" section describes how to get MAC address of hosts on Ryu application. I guess you can also get IP address in the similar way.

Re: [Ryu-devel] example code Openflow client talking to Ryu controller

2018-03-07 Thread Iwase Yusuke
So, I want to use the Ryu Openflow API to do this. Does this help? Thanks /Shivaram On Wed, Mar 7, 2018 at 8:27 PM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>> wrote: Hi Shivaram, You mean you ne

[Ryu-devel] [PATCH 0/2] nicira_ext: Support Network Service Header match

2018-03-07 Thread IWASE Yusuke
The following patches support the Nicira Extended match for Network Service Header (NSH). Note: To use NSH match, OVS v2.8 or later is required. IWASE Yusuke (2): nicira_ext: Support Network Service Header match nicira_ext: Support DEC_NSH_TTL action doc/source/nicira_ext_ref.rst | 1

[Ryu-devel] [PATCH 2/2] nicira_ext: Support DEC_NSH_TTL action

2018-03-07 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- doc/source/nicira_ext_ref.rst | 1 + ryu/ofproto/nicira_ext.py | 1 + ryu/ofproto/nx_actions.py | 36 3 files changed, 38 insertions(+) diff --git a/doc/source/nicira_ext_ref.rst b/doc/

Re: [Ryu-devel] example code Openflow client talking to Ryu controller

2018-03-07 Thread Iwase Yusuke
Hi Shivaram, You mean you need to send some (stats?) message from Ryu controller to another Ryu controller, right? H... Ryu implements the OpenFlow parsers as "Controller side", parsers for "from switch" messages have no "serialize()" method (some of messages have both "serialize()" and

Re: [Ryu-devel] Too many open files

2018-03-07 Thread Iwase Yusuke
0?2-- *From: *?0?2"Iwase Yusuke";<iwase.yusu...@gmail.com>; *Send time:*?0?2Thursday, Mar 8, 2018 8:23 AM *To:*?0?2"Zhang Yifan"<zhang*@qq.com>; *Cc:*?0?2"ryu-devel"<ryu-devel@lists.sourceforge.net>; *Subject: *?0?2Re: [Ryu-devel] Too man

Re: [Ryu-devel] About Filtering packets in packet in event and supplying real traffic

2018-03-07 Thread Iwase Yusuke
Hi, I think it is depending on your flow entries whether Ryu gets tons of Packet-In or not. You can write rules to filter packets by "match" and "priority" on your flow entries. > Q1. How can I get the packet that I have sent through a host? For example, to compute the shortest path, how

Re: [Ryu-devel] Too many open files

2018-03-07 Thread Iwase Yusuke
Hi, Well, which version of Ryu (also OVS on Mininet?) are you using? And please check whether re-connections between Ryu and your switches occur or not. If re-connections occurs too frequently, your switches might try to establish new connections regardless of Ryu could close socket

Re: [Ryu-devel] New to the list

2018-03-06 Thread Iwase Yusuke
Hi Pedro, The usage of OFPMatch is described on the Ryu Documentation. http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPMatch And which bits of "value" field should be match against value is represented by "mask" field, but the OpenFlow Spec 1.3.5

[Ryu-devel] [PATCH v2 0/5] ofproto: Encode data field on OFPErrorMsg

2018-03-05 Thread IWASE Yusuke
n 3 will raise exception when failed negotiate the OpenFlow version. The following patches include the fix for this issue. Also, the following patches add a new option to close socket connecting to a switch after sending a specified message. IWASE Yusuke (5): controller: Improve pylint result control

[Ryu-devel] [PATCH v2 5/5] ofproto: Encode data field on OFPErrorMsg

2018-03-05 Thread IWASE Yusuke
sending the message. This patch fixes to encode the given str value into a bytes type value in OFPErrorMsg.__init__() and solves this problem. Signed-off-by: William Fisher <william.w.fis...@gmail.com> Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/controller/of

[Ryu-devel] [PATCH v2 3/5] controller: Wait for switch to disconnect connection

2018-03-05 Thread IWASE Yusuke
nection. Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/controller/controller.py | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/ryu/controller/controller.py b/ryu/controller/controller.py index f46cf00..6213533 100644 --- a/ry

[Ryu-devel] [PATCH v2 4/5] ofp_handler: Close socket when HELLO failed

2018-03-05 Thread IWASE Yusuke
With this patch, when failed to negotiate the OpenFlow version with a switch, Ryu will close the socket connecting to the switch after sending a OFPT_ERROR message. Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/controller/ofp_handler.py | 2 +- 1 file changed, 1 insertion

[Ryu-devel] [PATCH v2 2/5] controller: Option to close socket after sending Message

2018-03-05 Thread IWASE Yusuke
d_msg()" method and this option enables to close the socket after sending the given message. This patch is convenient to close the socket after sending OFPT_ERROR message to the switch. Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/controller/controller.py | 12 +++- 1

Re: [Ryu-devel] topology discovery in wireless networks

2018-03-05 Thread Iwase Yusuke
e links. links_list = get_link(self.topology_api_app, None) print links_list Do you have any suggestion to fix the problem? Thank you On Thu, Mar 1, 2018 at 9:06 PM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.

Re: [Ryu-devel] Too many open files

2018-03-05 Thread Iwase Yusuke
Hi, I seem the number of "file descriptors" hits the limit of its max. In most case, 1024 is the max per process and "/proc/sys/fs/file-max" contains the max of whole of OS. e.g.) $ ulimit -n 1024 $ cat /proc/sys/fs/file-max 800471 Thanks, Iwase On 2018年03月05日 18:33, Zhang Yifan wrote: Hi

Re: [Ryu-devel] Multiple Controllers(REST handler) files

2018-03-04 Thread Iwase Yusuke
older, and run it. 2)  I am looking for some pluggable manner, where i can plug all my applications. And run as a single application. Hope this clarifies my problem. Thanks Suresh On Mon, Mar 5, 2018 at 10:58 AM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>&g

Re: [Ryu-devel] OVSDB manager

2018-03-04 Thread Iwase Yusuke
Hi Thomas, Thanks for your reporting! H... I also tried to implement the similar API (as following), but no bridge instance was created... def create_bridge(manager, system_id, bridge_name, bridge_info=None, port_info=None, iface_info=None,

Re: [Ryu-devel] Multiple Controllers(REST handler) files

2018-03-04 Thread Iwase Yusuke
Hi, Could you be more specific? What "one app.py" exactly means? You have some REST implemented applications, then ... which application do you need to make multiplex? Just I guessing... each application are running on each host and you need to run multi controller apps(App_A) like the

Re: [Ryu-devel] 回复: Link discovery not working when the number ofswitches increases

2018-03-04 Thread Iwase Yusuke
*args) error: [Errno 32] Broken pipe Maybe I should update ryu and try again? ------?0?2?0?2-- *??:*?0?2"Iwase Yusuke"<iwase.yusu...@gmail.com>; *:*?0?22018??3??5??(??) 10:48 *??:*?0?2"Zhang Yifan"<zhangyifa

Re: [Ryu-devel] Link discovery not working when the number of switches increases

2018-03-04 Thread Iwase Yusuke
Hi, Which version of Ryu are you using? The similar issue was reported before and it should be fixed on the latest. https://www.mail-archive.com/ryu-devel@lists.sourceforge.net/msg10491.html Thanks, Iwase On 2018年03月05日 11:33, Zhang Yifan wrote: Hi everybody, I am testing topology discovery

Re: [Ryu-devel] topology discovery in wireless networks

2018-03-04 Thread Iwase Yusuke
have any suggestion to fix the problem? Thank you On Thu, Mar 1, 2018 at 9:06 PM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>> wrote: Hi, You can enables the LLDP topology discovery feature, provided by "ryu.topology" module, to dis

Re: [Ryu-devel] Fwd: Event_Link_Delete triggering

2018-03-04 Thread Iwase Yusuke
Hi Taha, I couldn't launch your Ryu application on my environment... (py27) $ ryu-manager shared_arp.py loading app shared_arp.py Traceback (most recent call last): File "/home/iwase/ryu/.tox/py27/bin/ryu-manager", line 11, in load_entry_point('ryu==4.23', 'console_scripts',

Re: [Ryu-devel] adding a flow to change the destination

2018-03-03 Thread Iwase Yusuke
Hi, You can use SET_FIELD action for such purpose. $ git diff diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py index 06a5d0e..4045b8c 100644 --- a/ryu/app/simple_switch_13.py +++ b/ryu/app/simple_switch_13.py @@ -48,6 +48,18 @@ class SimpleSwitch13(app_manager.RyuApp):

Re: [Ryu-devel] topology discovery in wireless networks

2018-03-03 Thread Iwase Yusuke
Hi, You can enables the LLDP topology discovery feature, provided by "ryu.topology" module, to discover switches (and hosts) on your topology. https://github.com/osrg/ryu/blob/master/ryu/topology/api.py https://github.com/osrg/ryu/blob/master/ryu/topology/event.py = ...(snip)...

Re: [Ryu-devel] Starting up InBand Ryu controller

2018-02-28 Thread Iwase Yusuke
but I have no idea why I cannot start up the controller well. Thanks in advance. A.Soliman -Original Message- From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] Sent: Friday, February 23, 2018 2:30 AM To: Soliman Awad Alshra´a Abdullah TU Ilmenau <abdullah.alsh...@tu-ilmenau.de> Cc:

[Ryu-devel] [PATCH] doc: Fix unexpected indent in ofctl.api doc

2018-02-28 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/app/ofctl/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/app/ofctl/api.py b/ryu/app/ofctl/api.py index fe76b80..1149e06 100644 --- a/ryu/app/ofctl/api.py +++ b/ryu/app/ofctl/api.py @@ -78,11

[Ryu-devel] [PATCH 2/3] ofp_handler: Close socket when HELLO failed

2018-02-28 Thread IWASE Yusuke
With this patch, when failed to negotiate the OpenFlow version with a switch, Ryu will close the socket connecting to the switch after sending a OFPT_ERROR message. Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/controller/ofp_handler.py | 2 +- 1 file changed, 1 insertion

[Ryu-devel] [PATCH 3/3] ofproto: Encode data field on OFPErrorMsg

2018-02-28 Thread IWASE Yusuke
sending the message. This patch fixes to encode the given str value into a bytes type value in OFPErrorMsg.__init__() and solves this problem. Signed-off-by: William Fisher <william.w.fis...@gmail.com> Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/controller/of

Re: [Ryu-devel] How to know the number of flows

2018-02-28 Thread Iwase Yusuke
Hi, Excuse me for jumping in. How about sending OFPAggregateStatsRequest in synchronous way? You can use "ryu.app.ofctl.api" to send an OpenFlow message synchronously. http://ryu.readthedocs.io/en/latest/app/ofctl.html $ git diff diff --git a/ryu/app/simple_switch_13.py

Re: [Ryu-devel] Uncaught exception in hello_failed (Python3)

2018-02-28 Thread Iwase Yusuke
Oops, you are right. Here should do "break". Thanks a lot! I used "break" in the above patches. Thanks, Iwase On 2018年02月28日 15:46, William Fisher wrote: Hi Iwase, On Mon, Feb 26, 2018 at 10:55 PM, Iwase Yusuke <iwase.yusu...@gmail.com> wrote: A little difference thoug

[Ryu-devel] [PATCH 0/3] ofproto: Encode data field on OFPErrorMsg

2018-02-28 Thread IWASE Yusuke
William Fisher pointed out that Ryu on Python 3 will raise exception when failed negotiate the OpenFlow version. The following patches include the fix for this issue. Also, the following patches add a new option to close socket connecting to a switch after sending a specified message. IWASE

[Ryu-devel] [PATCH 1/3] controller: Option to close socket after sending Message

2018-02-28 Thread IWASE Yusuke
d_msg()" method and this option enables to close the socket after sending the given message. This patch is convenient to close the socket after sending OFPT_ERROR message to the switch. Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/controller/controller.py | 31 +

Re: [Ryu-devel] Fwd: Event_Link_Delete triggering

2018-02-27 Thread Iwase Yusuke
Hi Taha, I couldn't investigate why, but on your attached log messages, "EventSwitchLeave" are shown. Datapath might be disconnected for some reason, then "EventLinkDelete" occurred. Thanks, Iwase On 2018年02月28日 00:13, Taha Khan wrote: Hi, I added EventLinkDelete in my code. And noticed

Re: [Ryu-devel] pkt.get_protocol(bgp.BGPMessage) returns None

2018-02-27 Thread Iwase Yusuke
Hi Ricardo, I guess you caught a TCP SYN (or SYN+ACK or ACK) packet leading the BGP handshake, so the received packet has no TCP payload. I could get the BGP packets with the following modification of simple_switch_13. diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py

Re: [Ryu-devel] I have a problem with Traffic Monitor in Ryu

2018-02-26 Thread Iwase Yusuke
Hi Jade, Just guessing, you enables IPv6 on your Mininet node? If so, IPv6 Neighbor Discovery packets might be counted. If you need to avoid these packets, please disable IPv6 settings on your machine. Thanks, Iwase On 2018年02月25日 01:45, Jade Manapee wrote: Hi Everyone, I am new to Ryu so

Re: [Ryu-devel] Fwd: Facing error while trying to get the Flow Statistics using the OFPFlowStatsRequest API

2018-02-23 Thread Iwase Yusuke
Hi, I'm using the newer version of OVS though, I guess OVS does not supports the OpenFlow 1.5 structured FlowStats message. the FlowStats message was restructured in the OpenFlow 1.5 according to introduction of the FlowDesc message, but OVS does not implement the new structure of the FlowStats

[Ryu-devel] [PATCH] ofproto_v1_5: Function to disable EXT-334

2018-02-22 Thread IWASE Yusuke
1.4 parsers for these messages. Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/ofproto/ofproto_v1_5_parser.py | 30 ++ 1 file changed, 30 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_5_parser.py b/ryu/ofproto/ofproto_v1_5_parser.py index 0

Re: [Ryu-devel] Starting up InBand Ryu controller

2018-02-22 Thread Iwase Yusuke
ly, I tried to pingall mininet> pingall *** Ping: testing ping reachability h1 -> X X h2 -> X X h3 -> X X *** Results: 100% dropped (0/6 received) _______ please, could you guide me to run the Ryu Inband controller ? Best regards A.Soliman -Orig

Re: [Ryu-devel] Fwd: Facing error while trying to get the Flow Statistics using the OFPFlowStatsRequest API

2018-02-22 Thread Iwase Yusuke
nt=182 match=OFPMatch(oxm_fields={}) instructions=[OFPInstructionActions(actions=[OFPActionOutput(len=16,max_len=65535,port=4294967293,type=0)],len=24,type=4)]'] Thanks, Iwase On 2018年02月23日 01:05, shivani dommeti wrote: Hi Iwase Yusuke, Thank you for the response. Working on:     RYU version:3.27  

Re: [Ryu-devel] Starting up InBand Ryu controller

2018-02-21 Thread Iwase Yusuke
Hi Soliman, The page you mentioned was written on OCTOBER 5, 2013 and the description might be old (e.g., the default OpenFlow version on Mininet has been changed). Please refer to the Ryu-Book for running "Switching Hub" application.

Re: [Ryu-devel] [ovs-discuss] Meter Table Support in Openvswitch

2018-02-21 Thread Iwase Yusuke
Hi Suresh and Thanks Yi! FYI, Ryu provides "OpenFlow Switch Test Tool" for testing whether your switch support the features of OpenFlow including the Meter. This tool is one of the built-in application of Ryu and easy to start using. http://osrg.github.io/ryu-book/en/html/switch_test_tool.html

Re: [Ryu-devel] Facing error while connecting to multiple switches with different OF versions

2018-02-15 Thread Iwase Yusuke
Hi, > 1) Is the hello failed which i am seeing in ryu 4.16, have any impact on the > functionality of the switch? (i have tried OFPportstatus request, and it seems > to work) Hmmm... I think it is depending on the switch implementation. The OpenFlow Spec 1.3.5 says the recipient of OFPT_HELLO

Re: [Ryu-devel] How to detect congestion in a network

2018-02-15 Thread Iwase Yusuke
Hi Reza, How about getting the PortStats periodically? This message contains "rx_dropped", "rx_errors" and so on. http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPortStatsReply Thanks, Iwase On 2018年02月09日 18:42, Moh'd Reza Abbasi wrote: I would

Re: [Ryu-devel] Facing error while connecting to multiple switches with different OF versions

2018-02-15 Thread Iwase Yusuke
Hi, > 1) Is the hello failed which i am seeing in ryu 4.16, have any impact on the > functionality of the switch? (i have tried OFPportstatus request, and it seems > to work) Hmmm... I think it is depending on the switch implementation. The OpenFlow Spec 1.3.5 says the recipient of OFPT_HELLO

Re: [Ryu-devel] TCP handling in controller

2018-02-04 Thread Iwase Yusuke
Hi Tomas, Because the contained "data" in the PACKET_IN message is an Ethernet frame message, I guess it is difficult to implement such feature... For example, you need to open another socket on tap interface for example, then open "data" in PACKET_IN messages -> extract TCP payload -> forward

Re: [Ryu-devel] RYU Parameters

2018-02-04 Thread Iwase Yusuke
ny dpids as shown in the attached image. Please let me know if I am following the correct steps.** Thanks & Regards, Kaustubh Dinesh Shirodkar On Fri, Feb 2, 2018 at 11:07 AM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>> wrote: Hi,

[Ryu-devel] [PATCH 0/2] doc: Document for ryu.lib.ovs

2018-02-04 Thread IWASE Yusuke
Because the usage of "ryu.lib.ovs" is frequently asked at the Ryu-devel mailing list, the following patches adds the document for this library. FYI, the document page would be like: http://ryu-iwase.readthedocs.io/en/doc-lib-ovs/library_ovsdb.html IWASE Yusuke (2): lib/ovs:

[Ryu-devel] [PATCH 1/2] lib/ovs: Fix a typo of "--may-exist" option

2018-02-04 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- ryu/lib/ovs/vsctl.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ryu/lib/ovs/vsctl.py b/ryu/lib/ovs/vsctl.py index 2391c90..b18b5ef 100644 --- a/ryu/lib/ovs/vsctl.py +++ b/ryu/lib/ovs/vsctl.py @@ -

[Ryu-devel] [PATCH 2/2] doc: Document for ryu.lib.ovs

2018-02-04 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> --- doc/source/library.rst | 1 + doc/source/library_ovsdb.rst | 76 ryu/lib/ovs/bridge.py| 134 ++- ryu/lib/ovs/vsctl.py | 57 +++

Re: [Ryu-devel] How to include Netmask in Flow table

2018-02-01 Thread Iwase Yusuke
Hi, The following document is helpful for you? http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPMatch For example, to match the destination IPv4 network "192.168.122.0/24": match = parser.OFPMatch( eth_type=0x0800,

Re: [Ryu-devel] RYU Parameters

2018-02-01 Thread Iwase Yusuke
Hi, You are talking about "ryu.app.ofctl_rest", right? http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html This application is an example application which provides the APIs related to the OpenFlow protocol and none to other protocols. If you mean the OVSDB protocol, I guess you need to use

  1   2   3   4   5   6   7   8   9   10   >