Re: [Ryu-devel] [PATCH 06/20] packet/bgp: Fix to serialize BGPNotification on Python3

2016-08-22 Thread IWAMOTO Toshihiro
At Mon, 22 Aug 2016 09:40:29 +0900, IWASE Yusuke wrote: > > Signed-off-by: IWASE Yusuke > --- > ryu/lib/packet/bgp.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py > index 697eff3..457f87b 100644 > --- a/ryu/lib/pack

[Ryu-devel] specific route

2016-08-22 Thread wesam kh
hi ryu teamI need application or codes to send packets by specific route, in another word  if switch (1) receive from port 1 must the switch send packet to port 2 not forwarding to another ports ?how can I doing that ? thank in advance Wisam Maala ---

Re: [Ryu-devel] [PATCH 06/20] packet/bgp: Fix to serialize BGPNotification on Python3

2016-08-22 Thread Iwase Yusuke
Hi Iwamoto-San, Thank you for reviewing my patch. On 2016年08月22日 16:19, IWAMOTO Toshihiro wrote: > At Mon, 22 Aug 2016 09:40:29 +0900, > IWASE Yusuke wrote: >> >> Signed-off-by: IWASE Yusuke >> --- >> ryu/lib/packet/bgp.py | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> di

[Ryu-devel] [PATCH v2 11/20] table_manager: Rename internal API for consistency

2016-08-22 Thread IWASE Yusuke
This patch remames the internal (not for users) API for the consistency, and add missing docstring. Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/api/rtconf.py | 4 ++-- .../protocols/bgp/core_managers/table_manager.py | 20 +--- 2 files changed, 15

[Ryu-devel] [PATCH v2 07/20] BGPSpeaker: Support Ethernet VPN update messages

2016-08-22 Thread IWASE Yusuke
This patch enables BGPSpeaker to advertise BGP EVPN routes and store the advertised BGP EVPN routes from the neighbors. TODO: - To support the VRF table for BGP EVPN routes. This patch supports the global table only. - To implement Multihoming Functions. Currently, ONLY Single-Homing is su

[Ryu-devel] [PATCH v2 08/20] test_bgpspeaker: Add unit test for the API of EVPN

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- .../unit/services/protocols/bgp/test_bgpspeaker.py | 276 + 1 file changed, 276 insertions(+) create mode 100644 ryu/tests/unit/services/protocols/bgp/test_bgpspeaker.py diff --git a/ryu/tests/unit/services/protocols/bgp/test_bgpspeaker.py b/

[Ryu-devel] [PATCH v2 15/20] BGPSpeaker: Improve validation utility methods

2016-08-22 Thread IWASE Yusuke
This patch fixes to reduce Pylint warnings, to use 'netaddr' utilities and to reduce redundant if statements. Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/utils/validation.py | 190 +++-- 1 file changed, 82 insertions(+), 108 deletions(-) diff --git a/ryu/servi

[Ryu-devel] [PATCH v2 03/20] test_bgp: Add unit tests for Ethernet VPN

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/tests/packet_data/bgp4/evpn_esi_arbitrary.pcap | Bin 0 -> 156 bytes ryu/tests/packet_data/bgp4/evpn_esi_as_based.pcap | Bin 0 -> 156 bytes ryu/tests/packet_data/bgp4/evpn_esi_l2_bridge.pcap | Bin 0 -> 156 bytes ryu/tests/packet_data/bgp4/evpn_esi_lacp.pcap

[Ryu-devel] [PATCH v2 09/20] BGPSpeaker: Support VRF Table for Ethernet VPN

2016-08-22 Thread IWASE Yusuke
This patch enables BGPSpeaker to store EVPN routes into the VRF tables and to provide the API for advertising routes. Usage example: speaker = BGPSpeaker(as_number=65001, router_id='172.17.0.1') speaker.neighbor_add(address='172.17.0.2', remote_as=65002,

[Ryu-devel] [PATCH v2 20/20] BGPSpeaker: Suppress RD in EVPN VRF on SSH console

2016-08-22 Thread IWASE Yusuke
Because the NLRI_CLASS of the VRF EVPN Table is the same as the NLRI_CLASS of the Global EVPN Table, the str representation can not be distinguished with 'formatted_nlri_str' format. So, 'show vrf' commands on the SSH console returns the str outputs with Route Distinguisher (RD) even if the route o

[Ryu-devel] [PATCH v2 13/20] BGPSpeaker: Reduce Pylint warnings

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/base.py | 32 ++--- ryu/services/protocols/bgp/bgpspeaker.py | 133 - .../protocols/bgp/core_managers/table_manager.py | 3 - .../protocols/bgp/operator/commands/show/rib.py| 10 +-

[Ryu-devel] [PATCH v2 12/20] test_table_manager: Add UTs for the Global Table API

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- .../bgp/core_managers/test_table_manager.py| 91 ++ 1 file changed, 91 insertions(+) diff --git a/ryu/tests/unit/services/protocols/bgp/core_managers/test_table_manager.py b/ryu/tests/unit/services/protocols/bgp/core_managers/test_tab

[Ryu-devel] [PATCH v2 14/20] BGPSpeaker: Resolve unused argumet 'multi_exit_disc'

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/bgpspeaker.py | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ryu/services/protocols/bgp/bgpspeaker.py b/ryu/services/protocols/bgp/bgpspeaker.py index 4608524..b6128ec 100644 --- a/ryu/services/protocols/bgp

[Ryu-devel] [PATCH v2 01/20] packet/bgp: Enable to parse the entire packet data

2016-08-22 Thread IWASE Yusuke
This patch fixes the TCP packet parser to return the BGP packet parser class if the TCP src or dst port is the reserved BGP port and enable to parse the entire packet data. Signed-off-by: IWASE Yusuke --- ryu/lib/packet/bgp.py | 8 ++-- ryu/lib/packet/bmp.py

[Ryu-devel] [PATCH v2 02/20] packet/bgp: Support MPLS-Based Ethernet VPN (RFC7432)

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/packet/afi.py | 1 + ryu/lib/packet/bgp.py | 806 +++-- ryu/lib/packet/safi.py | 1 + 3 files changed, 777 insertions(+), 31 deletions(-) diff --git a/ryu/lib/packet/afi.py b/ryu/lib/packet/afi.py index c84

[Ryu-devel] [PATCH v2 17/20] BGPSpeaker: Enable validation for optional arguments

2016-08-22 Thread IWASE Yusuke
Currently, RegisterWithArgChecks validates only required arguments, so invalid arguments might be passed through if the arguments are registered as optionals. This patch fixes to enable validation for optional arguments. Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/api/base.py | 12

[Ryu-devel] [PATCH v2 18/20] test_validation: Add unit tests for validation utilities

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- .../unit/services/protocols/bgp/utils/__init__.py | 0 .../protocols/bgp/utils/test_validation.py | 203 + 2 files changed, 203 insertions(+) create mode 100644 ryu/tests/unit/services/protocols/bgp/utils/__init__.py create mode 100

[Ryu-devel] [PATCH v2 00/20] BGPSpeaker: Support MPLS-Based Ethernet VPN (RFC7432)

2016-08-22 Thread IWASE Yusuke
This patch enables BGPSpeaker to advertise MPLS-Based Ethernet VPN (RFC7432) routes and store the advertised BGP EVPN routes from the neighbors. Also, includes the Python3 compatibility improvements and the updates of the API reference of BGPSpeaker. v2: For Iwamoto-San comment, [PATCH 06/20] was

[Ryu-devel] [PATCH v2 16/20] BGPSpeaker: Raise exception when validation fails

2016-08-22 Thread IWASE Yusuke
In the validator for the API arguments should raise exception when the validator detects invalid arguments, otherwise the decorator for registering API functions, RegisterWithArgChecks, can pass through the invalid arguments. This patch fixes this problem. Signed-off-by: IWASE Yusuke --- ryu/se

[Ryu-devel] [PATCH v2 06/20] packet/bgp: Fix to serialize BGPNotification on Python3

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/packet/bgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 697eff3..5846dba 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -3321,7 +3321,7 @@ class BGPNotification

[Ryu-devel] [PATCH v2 19/20] doc: Update the API Reference for BGPSpeaker

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/bgpspeaker.py | 66 ++--- ryu/services/protocols/bgp/info_base/base.py | 85 +--- 2 files changed, 72 insertions(+), 79 deletions(-) diff --git a/ryu/services/protocols/bgp/bgpspeaker.py b/ryu

[Ryu-devel] [PATCH v2 04/20] BGPSpeaker: Support Python3 on SSH console

2016-08-22 Thread IWASE Yusuke
Currently, SSH console of BGPSpeaker fails to recieve commands from user when it is running on Python3 due to the binary conversion. This patch fixes this problem and enables to use SSH console on Python3. Signed-off-by: IWASE Yusuke --- .../protocols/bgp/operator/commands/show/route_formatter_m

[Ryu-devel] [PATCH v2 10/20] test_table_manager: Add UTs for the VRF Table API

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- .../protocols/bgp/core_managers/table_manager.py | 4 + ryu/services/protocols/bgp/info_base/vrf.py| 5 + .../protocols/bgp/core_managers/__init__.py| 0 .../bgp/core_managers/test_table_manager.py| 264 + 4 files

[Ryu-devel] [PATCH v2 05/20] BGPSpeaker/info_base: Add comparison methods for Python3

2016-08-22 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/info_base/base.py | 18 ++ 1 file changed, 18 insertions(+) diff --git a/ryu/services/protocols/bgp/info_base/base.py b/ryu/services/protocols/bgp/info_base/base.py index 54e02bb..a11de7f 100644 --- a/ryu/services/protoc

Re: [Ryu-devel] [PATCH 02/20] packet/bgp: Support MPLS-Based Ethernet VPN (RFC7432)

2016-08-22 Thread IWAMOTO Toshihiro
At Mon, 22 Aug 2016 09:40:25 +0900, IWASE Yusuke wrote: > > Signed-off-by: IWASE Yusuke > --- > ryu/lib/packet/afi.py | 1 + > ryu/lib/packet/bgp.py | 806 > +++-- > ryu/lib/packet/safi.py | 1 + > 3 files changed, 777 insertions(+), 31 deletion

[Ryu-devel] Fitness and Nutrition professionals

2016-08-22 Thread Abbey Jackson
-- Hello, Would you be interested in acquiring our recently compiled and updated contact list of *Personal trainers, Group fitness instructors, Club and studio owners, Program Directors and Managers, Mind-body professionals and Nutrition professionals? * *Data Fields like: *Company name, W

[Ryu-devel] Ryu Certification

2016-08-22 Thread David Whittaker
Hello, I wanted to ask for a description of the process that we would follow to have our OpenFlow devices test results included on the Ryu Certification page. http://osrg.github.io/ryu/certification.html Thanks in advance. David Whittaker Corsa -

Re: [Ryu-devel] [PATCH 02/20] packet/bgp: Support MPLS-Based Ethernet VPN (RFC7432)

2016-08-22 Thread Iwase Yusuke
Hi Iwamoto-San, On 2016年08月22日 17:31, IWAMOTO Toshihiro wrote: > At Mon, 22 Aug 2016 09:40:25 +0900, > IWASE Yusuke wrote: >> >> Signed-off-by: IWASE Yusuke >> --- >> ryu/lib/packet/afi.py | 1 + >> ryu/lib/packet/bgp.py | 806 >> +++-- >> ryu/li

Re: [Ryu-devel] [PATCH 02/20] packet/bgp: Support MPLS-Based Ethernet VPN (RFC7432)

2016-08-22 Thread IWAMOTO Toshihiro
At Tue, 23 Aug 2016 09:45:30 +0900, Iwase Yusuke wrote: > > Hi Iwamoto-San, > > > On 2016年08月22日 17:31, IWAMOTO Toshihiro wrote: > > At Mon, 22 Aug 2016 09:40:25 +0900, > > IWASE Yusuke wrote: > >> > >> Signed-off-by: IWASE Yusuke > >> --- > >> ryu/lib/packet/afi.py | 1 + > >> ryu/lib/pac

Re: [Ryu-devel] [PATCH 02/20] packet/bgp: Support MPLS-Based Ethernet VPN (RFC7432)

2016-08-22 Thread Iwase Yusuke
Hi Iwamoto-San, On 2016年08月23日 11:41, IWAMOTO Toshihiro wrote: > At Tue, 23 Aug 2016 09:45:30 +0900, > Iwase Yusuke wrote: >> >> Hi Iwamoto-San, >> >> >> On 2016年08月22日 17:31, IWAMOTO Toshihiro wrote: >>> At Mon, 22 Aug 2016 09:40:25 +0900, >>> IWASE Yusuke wrote: Signed-off-by: IWASE Y

[Ryu-devel] [PATCH 0/2] Enable to build stand-alone executables

2016-08-22 Thread IWASE Yusuke
This patch adds the script for PyInstaller in order to build stand-alone executable of ryu-manager. And includes the patch which is suggested by papostolescu as Pull Request(*1) on GitHub. (*1) https://github.com/osrg/ryu/pull/26 IWASE Yusuke (2): handler: Fix for frozen builds PyInstaller: En

[Ryu-devel] [PATCH 1/2] handler: Fix for frozen builds

2016-08-22 Thread Iwase Yusuke
Navigates back the stack to locate the module instead of relying on inspect to locate the module based on the file name. This patch is suggested by papostolescu as Pull Request(*1) on GitHub. (*1) https://github.com/osrg/ryu/pull/26 Signed-off-by: IWASE Yusuke --- ryu/controller/handler.py

[Ryu-devel] [PATCH 2/2] PyInstaller: Enable to build stand-alone executables

2016-08-22 Thread Iwase Yusuke
Usage: After installing Ryu (on virtualenv is better), build a ryu-manager executable as following: $ pip install PyInstaller==3.1.1 $ cd tools/ $ pyinstaller ryu-manager.spec $ ./dist/ryu-manager Note: PyInstaller==3.2 may have a bug of str encoding, please use Pyinstaller==3.1.1 inst