Re: [Ryu-devel] RYU error message

2016-10-24 Thread Shinpei Muraoka
Hi, The value of selected_server_outport is not integer. Please check the value of selected_server_outport. Thanks, On 2016年10月23日 09:11, Mohamed Ibrahem wrote: > i am building load balancer application and the following error is displayed. > please, help me to fix this? > > this is some of code

[Ryu-devel] [PATCH 4/5] packet/bgp: Add PMSI Tunnel Attribute

2016-10-24 Thread Shinpei Muraoka
This patch adds the support for BGP PMSI Tunnel Attribute [RFC6514]. Signed-off-by: Shinpei Muraoka --- ryu/lib/packet/bgp.py | 215 ++ ryu/tests/unit/packet/test_bgp.py | 57 ++ 2 files changed, 272 insertions(+) diff --git a/ryu/lib/pac

[Ryu-devel] [PATCH 2/5] packet/mpls: Add method to convert the format of label

2016-10-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- ryu/lib/packet/mpls.py | 30 ++ ryu/tests/unit/packet/test_mpls.py | 36 +++- 2 files changed, 61 insertions(+), 5 deletions(-) diff --git a/ryu/lib/packet/mpls.py b/ryu/lib/packet/mpls.py

[Ryu-devel] [PATCH 3/5] packet/vxlan: Add method to convert the format of vni

2016-10-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- ryu/lib/packet/vxlan.py | 22 +- ryu/tests/unit/packet/test_vxlan.py | 7 +++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/ryu/lib/packet/vxlan.py b/ryu/lib/packet/vxlan.py index d68b9b6..c7de04b 100644 ---

[Ryu-devel] [PATCH 0/5] packet/bgp: Add PMSI Tunnel Attribute

2016-10-24 Thread Shinpei Muraoka
The following patch implements some extensions for PMSI Tunnel Attribute. Shinpei Muraoka (5): lib/ip: Add method to convert the format of Ipv4 or Ipv6 packet/mpls: Add method to convert the format of label packet/vxlan: Add method to convert the format of vni packet/bgp: Add PMSI Tunnel A

[Ryu-devel] [PATCH 5/5] BGPSpeaker: Support to advertise PMSI Tunnel Attribute

2016-10-24 Thread Shinpei Muraoka
This patch adds support to advertise the BGP PMSI Tunnel Attribute for the Path attributes. Signed-off-by: Shinpei Muraoka --- ryu/services/protocols/bgp/api/base.py | 1 + ryu/services/protocols/bgp/api/prefix.py | 23 - ryu/services/protocols/bgp/bgpspeaker.py

[Ryu-devel] [PATCH 1/5] lib/ip: Add method to convert the format of Ipv4 or Ipv6

2016-10-24 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- ryu/lib/ip.py | 31 +++ ryu/tests/unit/lib/test_ip.py | 26 ++ 2 files changed, 57 insertions(+) diff --git a/ryu/lib/ip.py b/ryu/lib/ip.py index 6630418..130a844 100644 --- a/ryu/lib/ip.py +++

Re: [Ryu-devel] How to verify Route information through REST_API ?

2016-10-24 Thread Iwase Yusuke
Hi, On 2016年10月21日 19:04, ホンパンニャー wrote: > Hi, > > Sorry for the inconvenience ! Yeah what you have described is my problem. > > On my environment, I use Lagopus as OpenFlow Switch and my RYU version is > 3.25. Following Ryu Book, everything works well except when I try to get > the setting. I do

Re: [Ryu-devel] netflow

2016-10-24 Thread Iwase Yusuke
Hi, Please make your problem more clear... "netflow_collector" is the module and "netflow_dumper" is the Ryu application you have developed, right? For writing your own Ryu application, please confirm your application inherits app_manager.RyuApp class first. http://ryu.readthedocs.io/en/lates

[Ryu-devel] netflow

2016-10-24 Thread Mar Ade
Hello i have put netflow_collector in xflow file and i am trying to use netflow_dumper but the problem is that when i call ryu-manager with netflow dumper , it is initiating and then it terminates without waiting netflow packets.Any ideas?Thanks in advance,Marinos

[Ryu-devel] [PATCH 3/7] bgp/operator/ssh: Reduce pylint warnings

2016-10-24 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/operator/ssh.py | 158 + 1 file changed, 91 insertions(+), 67 deletions(-) diff --git a/ryu/services/protocols/bgp/operator/ssh.py b/ryu/services/protocols/bgp/operator/ssh.py index 4187332..35d6a7b 100644 --

[Ryu-devel] [PATCH 6/7] flags: Add CLI options for BGP application

2016-10-24 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/flags.py | 15 +++ 1 file changed, 15 insertions(+) diff --git a/ryu/flags.py b/ryu/flags.py index e1fabf8..43403b5 100644 --- a/ryu/flags.py +++ b/ryu/flags.py @@ -57,3 +57,18 @@ CONF.register_cli_opts([ help='interval time in seco

Re: [Ryu-devel] [PATCH 1/4] Add bgp scenario tests tool

2016-10-24 Thread fumihiko kakuma
Hi Iwase-san, Thank you for the suggestion. In the openstack mayb a procedure to build from the begining will be necessary. But in the case of ryu we can use an image built. > Just an idea... > How about build image from Alpine? > It will be extremely small, on my environment. >https://hub.do

Re: [Ryu-devel] [PATCH 2/4] Add bgp scenario tests

2016-10-24 Thread fumihiko kakuma
Hi Iwase-san, Thank you for review. On Mon, 24 Oct 2016 11:40:40 +0900 Iwase Yusuke wrote: > Hi Kakuma-San, > > > On 2016年10月24日 11:12, fumihiko kakuma wrote: > > This adds some scenario tests using a scenario test tool. > > > > Signed-off-by: Fumihiko Kakuma > > --- > > ryu/tests/integrate

[Ryu-devel] [PATCH 4/7] bgp/operator/ssh: Enable to quit gracefully

2016-10-24 Thread IWASE Yusuke
Currently, socket.error will be raised when 'quit' command is typed. This patch enables to quit SSH session without tracebacks. Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/operator/ssh.py | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/ryu/se

[Ryu-devel] [PATCH 2/7] BGPSpeaker: Use dictConfig in the standard library

2016-10-24 Thread IWASE Yusuke
logging.config.dictConfig has been added in Python 2.7, this patch fixes to use dictConfig in the standard library and removes bgp/utils/dictconfig.py. Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/application.py | 6 +- ryu/services/protocols/bgp/utils/dictconfig.py | 562 --

[Ryu-devel] [PATCH 0/7] BGPSpeaker: Sort out application for BGPSpeaker

2016-10-24 Thread IWASE Yusuke
Currently, the base Ryu application for BGPSpeaker has some problems. For example, the options for this app are not registered to 'ryu-manager', so it is unclear for users how to specify the config file to this app. This patch enables to register 'ryu-manager' options for this app and extends the

[Ryu-devel] [PATCH 5/7] BGPSpeaker: Enable to specify settings for SSH CLI

2016-10-24 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/bgpspeaker.py | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/ryu/services/protocols/bgp/bgpspeaker.py b/ryu/services/protocols/bgp/bgpspeaker.py index 2d19899..54ce24c 100644 --- a/ryu/serv

[Ryu-devel] [PATCH 7/7] bgp/application: Re-implement base BGP application

2016-10-24 Thread IWASE Yusuke
Currently, options for bgp/application.py is not passed to 'ryu-manager', bgp/application.py does only start RPC server and can not start other threads including BGP core and SSH server using bgp_sample_conf.py. This patch enables bgp/application.py to start BGP threads using the specified configu

[Ryu-devel] [PATCH 1/7] utils: Backward compatibility for 'imp.load_source'

2016-10-24 Thread IWASE Yusuke
This patch adds a function for providing the backward compatibility for 'imp.load_source' in Python 2 and fixes bgp/application.py to use this wrapper. Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/application.py | 6 +++--- ryu/utils.py | 19 ++