Re: [Ryu-devel] 'ryu-manager --verbose ryu.app.simple_switch_13' command gets hung

2016-07-20 Thread Iwase Yusuke
ul 21, 2016 at 9:42 AM, Iwase Yusuke <mailto:iwase.yusu...@gmail.com>> wrote: > > Hi, > > Yes, you are right. > > But, there seems to have been a little misunderstanding. > On Ryu-Book, the tree dots("...") means that some messages or words

Re: [Ryu-devel] KeyboardInterrupt (ctrl-c) and RYU

2016-07-21 Thread Iwase Yusuke
well. > > Best, > Victor > -- > Victor J. Orlikowski <> vjo@[cs.]duke.edu > >> On Jul 21, 2016, at 4:59 AM, Iwase Yusuke wrote: >> >> FYI, The reason why I renamed "LOG" to "logger" is just PEP-8 naming >> conventions. >> N806 v

Re: [Ryu-devel] KeyboardInterrupt (ctrl-c) and RYU

2016-07-21 Thread Iwase Yusuke
country, but I guess we all have to adopt American spelling ;-) > > Thanks again. > > > -Original Message- > From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] > Sent: Thursday, July 21, 2016 3:00 AM > To: FORDYCE,ALAN (K-Scotland,ex1) ; v...@duke.edu > C

[Ryu-devel] [PATCH 2/2] stplib: Handle the port state not changed events

2016-07-24 Thread IWASE Yusuke
messages and ignores the message if the port state is not changed. Reported-by: Hong Panha Signed-off-by: IWASE Yusuke --- ryu/lib/stplib.py | 5 + 1 file changed, 5 insertions(+) diff --git a/ryu/lib/stplib.py b/ryu/lib/stplib.py index de3cced..beb68e1 100644 --- a/ryu/lib/stplib.py +++ b/ryu

[Ryu-devel] [PATCH 1/2] stplib: Adopt to Python3

2016-07-24 Thread IWASE Yusuke
In Python3, cmp() method is no longer supported and numerical operations evaluates value type more strictly. So, stplib get some errors in its calculating process. This patch fixes these problems and enable to use stplib on Python3 interpreter. Signed-off-by: IWASE Yusuke --- ryu/lib/packet

[Ryu-devel] [PATCH 0/2] stplib: support other switch implementation

2016-07-24 Thread IWASE Yusuke
problem and also include some improvements for Python3 environment. IWASE Yusuke (2): stplib: Adopt to Python3 stplib: Handle the port state not changed events ryu/lib/packet/bpdu.py | 2 +- ryu/lib/stplib.py | 14 +- 2 files changed, 14 insertions(+), 2 deletions

Re: [Ryu-devel] eth_src/eth_dst address allocation

2016-07-24 Thread Iwase Yusuke
Hi, On 2016年07月22日 13:53, tanvir.ulhu...@data61.csiro.au wrote: > Hi all > > > Scenario: > > > > host1 --> switch 1-> switch2 -> host2 > > > > python script: > > - > > - > >host1 = net.addHost('h1', cls=Host, mac='01:00:00:00:01:00', > ip='172.16.20.10/24', defaultRou

Re: [Ryu-devel] Problem when processing traffic based on OpenFlow 1.5

2016-07-24 Thread Iwase Yusuke
Hi, > Does anyone know why this error in action format validation occurs? If you > have any experience in using Ryu with OpenFlow 1.5, please share with me. It > would be great if there is a sample code. The cause of this problem is that OVS does not support OpenFlow 1.5 Packet-Out messages.

Re: [Ryu-devel] Ryu_support_2 apps on 2 wsapi-ports

2016-07-24 Thread Iwase Yusuke
Hi, Why you need to separate wsgi ports for each applications? I think you can separate the API for each applications by using URI path pattern. http://osrg.github.io/ryu-book/en/html/rest_api.html#implementing-simpleswitchcontroller-class e.g.) For application1: PATH=/application1

Re: [Ryu-devel] KeyboardInterrupt (ctrl-c) and RYU

2016-07-26 Thread Iwase Yusuke
Hi Fujita-San, On 2016年07月27日 14:35, FUJITA Tomonori wrote: > On Thu, 21 Jul 2016 16:41:03 +0900 > Iwase Yusuke wrote: > >> Hi Alan, >> >> Thank you for reviewing my patch! > > Can you please send the patch in the proper format? Sure, I will send

[Ryu-devel] [PATCH v2] manager: Except KeyboardInterrupt to suppress traceback

2016-07-26 Thread IWASE Yusuke
Currently, ryu-manager emits traceback messages when killed via KeyboardInterrupt. This patch traps the KeyboardInterrupt, and outputs an appropriate log message instead. Signed-off-by: Victor J. Orlikowski Signed-off-by: Alan Fordyce Signed-off-by: IWASE Yusuke --- ryu/cmd/manager.py | 9

Re: [Ryu-devel] [PATCH v4 1/2] ofproto/nx_actions: Revert API of NXAction

2016-07-27 Thread Iwase Yusuke
Hi Ymamamoto-San and Fujita-San, On 2016年07月27日 20:42, Takashi YAMAMOTO wrote: > > > On Wed, Jul 27, 2016 at 7:53 PM, FUJITA Tomonori > wrote: > > On Wed, 27 Jul 2016 19:29:58 +0900 > Takashi YAMAMOTO mailto:yamam...@ovn.org>> wrote: > > > On Wed, Jul 27, 2016 a

Re: [Ryu-devel] actions operation

2016-08-01 Thread Iwase Yusuke
Hi, First, please try '--verbose' option of ryu-manager to get the detail logs. On my environment, the following error messages were shown. $ ryu-manager ryu.app.simple_switch_13 --verbose ... move onto main mode EventOFPErrorMsg received. version=0x4, msg_type=0x1, msg_len=0x4c, xid=0x737ff375

Re: [Ryu-devel] Setting the same symbol twice in an OpenFlow rule

2016-08-02 Thread Iwase Yusuke
Hi Alan, On my environment, Ryu + OVS on Minint, Ryu could install a flow entry with two SET_FIELD actions. $ git diff diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch_13.py index 3e7c598..eb92c31 100644 --- a/ryu/app/simple_switch_13.py +++ b/ryu/app/simple_switch_13.py @@ -48,6

Re: [Ryu-devel] Flow table

2016-08-02 Thread Iwase Yusuke
Hi Panha, What does 'check the flow table' exactly means? To get FlowStats of the specific flow table? If so, the following shows the examples for sending the FlowStatsRequest and getting the FlowStatsReply. http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_pa

Re: [Ryu-devel] ofsoftwitch13 is compatible/support LLDP and BDDP packets?

2016-08-02 Thread Iwase Yusuke
Hi Maurizio, On 2016年07月30日 02:28, Maurizio Marrocco wrote: > Hi Ryu Team, > > My question is the following: ofsoftwitch13 is compatible with LLDP and BDDP > packet? Sorry, I don't know whether ofsoftwitch13 supports LLDP and BDDP packet or not. How about contacting the developers of ofsoftwitc

Re: [Ryu-devel] priority change of the existing data flow

2016-08-02 Thread Iwase Yusuke
Hi, AFAIK, OpenFlow does not provide the feature for changing the priority without changing the other fields. So, you need to delete the previous flow which has priority=1 first, then you need to add the new flow with the new priority for changing the priority. The following shows an image to i

Re: [Ryu-devel] Overlay network based on grep tunnel

2016-08-02 Thread Iwase Yusuke
Hi, Your scenario seems to show that the GRE overlay network is implemented between Host1 and Host2, right? If so, the network of OVS + External switch need to perform the underlay network, I think. In this situation, OVS + External switch are required just L2/L3 routing and Ryu does not need to

Re: [Ryu-devel] Running rest_firewall.py on Lagopus

2016-08-02 Thread Iwase Yusuke
Hi, According to the issues page on Lagopus GitHub, you need to specify '--enable-hybrid' in configure, I guess. https://github.com/lagopus/lagopus/issues/76 Thanks, Iwase On 2016年08月02日 17:25, Hong Panha wrote: > Hi everyone, > > > I am trying run rest_firewall.py with ryu-manager, it’s not

Re: [Ryu-devel] How to send data from controller to the host

2016-08-04 Thread Iwase Yusuke
Hi, You can use Packet-Out messages for such purpose, I guess. http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPacketOut Thanks, Iwase On 2016年08月05日 12:45, Alan Wang wrote: > Hi All, > > I want to send some data controller collected from Control

Re: [Ryu-devel] How to send data from controller to the host

2016-08-04 Thread Iwase Yusuke
buffer_id,in_port, actions) > datapath.send_msg(req) > > > In these codes of the example, i can't find data the controller send. > > I think it can't send data what i want to send. > > Thanks, > > Alan > > > 2016-08-05 12:04 GMT+08:00 Iwas

[Ryu-devel] [PATCH 0/4] ryu.lib: Reduce Pylint warnings

2016-08-08 Thread IWASE Yusuke
The following patches reduce Pylint warnings of libraries of Ryu (ryu.lib.*). IWASE Yusuke (4): ofctl_nicira_ext: Resolve not initialized values ofctl_nicira_ext: Fix not enough arguments for format string stringify: Fix to utilise six.moves.builtins lib: Reduce Pylint warnings ryu/lib

[Ryu-devel] [PATCH 3/4] stringify: Fix to utilise six.moves.builtins

2016-08-08 Thread IWASE Yusuke
To improve Pylint results, this patch fixes to utilise six.moves.builtins instead of using __builtin__ on Python2 or builtins on Python3. Signed-off-by: IWASE Yusuke --- ryu/lib/stringify.py | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/ryu/lib/stringify.py

[Ryu-devel] [PATCH 2/4] ofctl_nicira_ext: Fix not enough arguments for format string

2016-08-08 Thread IWASE Yusuke
Currently, the assignment for 'table_id' is missing in the arguments of str representation. This patch fixes this problem. Signed-off-by: IWASE Yusuke --- ryu/lib/ofctl_nicira_ext.py | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ryu/lib/ofctl_nic

[Ryu-devel] [PATCH 4/4] lib: Reduce Pylint warnings

2016-08-08 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/bfdlib.py | 17 +++--- ryu/lib/dpid.py| 3 +-- ryu/lib/hub.py | 8 +++ ryu/lib/igmplib.py | 2 +- ryu/lib/lacplib.py | 5 ++-- ryu/lib/ofctl_utils.py | 2 +- ryu/lib/ofctl_v1_0.py | 27

[Ryu-devel] [PATCH 1/4] ofctl_nicira_ext: Resolve not initialized values

2016-08-08 Thread IWASE Yusuke
Currently, 'dst_start_end' and 'src_start_end' in NXActionLearn are not initialized before assignment to convert into string representation. This patch fixes this problem. Signed-off-by: IWASE Yusuke --- ryu/lib/ofctl_nicira_ext.py | 4 ++-- 1 file changed, 2 insertions(+),

Re: [Ryu-devel] Ryu application

2016-08-09 Thread Iwase Yusuke
Hi, To implement a custom OpenFlow message in Ryu, please add the definitions for your own messages into ryu.ofproto.ofproto_v1_*_parser. If you need to receive and parse messages, parser() method is required and if you need to send messages, _serialize_body() method is required. 'OFPFlowMod' me

Re: [Ryu-devel] Ryu application

2016-08-16 Thread Iwase Yusuke
the message > Thank you for the answer Does your switch already have implementation for sending that message? If so, you don't need to modify the source of Mininet. Thanks, Iwase > > Inviato da iPhone > >> Il giorno 10/ago/2016, alle ore 07:32, Iwase Yusuke >> h

Re: [Ryu-devel] Running rest_firewall.py on Lagopus

2016-08-17 Thread Iwase Yusuke
with Ryu like STP case? > > Thanks, > Panha > > On Wed, Aug 3, 2016 at 2:07 PM, University wrote: > >> Hi, >> >> Thanks for responding. >> >> I am figuring out how to specify "--enable-hybrid" in lagopus configure >> now. I will let you kno

Re: [Ryu-devel] Socket in Ryu

2016-08-17 Thread Iwase Yusuke
Hi, To send packets to another machine without mirroring packets at switch, it is requires such feature of switch, I think. Because Ryu is the controller in this case, it need to receive packets through Packet-In messages to forwarding packets to another. I guess mirroring packets at switches is

Re: [Ryu-devel] action to another destination

2016-08-17 Thread Iwase Yusuke
Hi, Are you trying to rewrite IP address of packets by using rest_qos.py? I thinks rest_qos.py does not have such feature. How about using ofctl_rest.py instead? See the "SET_FIELD" action at the following. http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html#description-of-actions-on-requ

Re: [Ryu-devel] OFPBAC_BAD_OUT_PORT

2016-08-18 Thread Iwase Yusuke
Hi, First, which switch are you using? OVS or else? If using OVS, OVS does not fully support OpenFlow 1.5. In OpenFlow 1.5, the message format of PacketOut has been changed, but OVS does not supports this new PacketOut message format. See [EXT-427] at the following. https://github.com/openvsw

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

2016-08-21 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 -

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

2016-08-21 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

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

2016-08-21 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

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

2016-08-21 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 20/20] BGPSpeaker: Suppress RD in EVPN VRF on SSH console

2016-08-21 Thread IWASE Yusuke
t; 65001:100:multicast_etag(ethernet_tag_id:300,ip_addr:10.10.1.0) None 0.0.0.0 Only Path ? With this patch: bgpd> show vrf all VPN: ('65001:100', 'evpn') *> multicast_etag(ethernet_tag_id:300,ip_addr:10.10.1.0) None 0.0.0.0

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

2016-08-21 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

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

2016-08-21 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

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

2016-08-21 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_

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

2016-08-21 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

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

2016-08-21 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

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

2016-08-21 Thread IWASE Yusuke
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/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -3321,13 +3321,13 @@ class

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

2016-08-21 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. IWASE Yusuke (20): packet/bgp: Enable to

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

2016-08-21 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

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

2016-08-21 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 10/20] test_table_manager: Add UTs for the VRF Table API

2016-08-21 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

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

2016-08-21 Thread IWASE Yusuke
IP_ADV_ROUTE, route_dist='65001:100', esi=0, ethernet_tag_id=200, mac_addr='aa:bb:cc:dd:ee:ff', ip_addr='10.0.0.1',

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

2016-08-21 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

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

2016-08-21 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 07/20] BGPSpeaker: Support Ethernet VPN update messages

2016-08-21 Thread IWASE Yusuke
supported. Signed-off-by: IWASE Yusuke --- doc/source/library_bgp_speaker.rst | 4 +- ryu/lib/packet/bgp.py | 99 ++- ryu/lib/type_desc.py | 1 + ryu/services/protocols/bgp/api/base.py | 6

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

2016-08-21 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-devel] [PATCH 08/20] test_bgpspeaker: Add unit test for the API of EVPN

2016-08-21 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

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 c

[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
supported. Signed-off-by: IWASE Yusuke --- doc/source/library_bgp_speaker.rst | 4 +- ryu/lib/packet/bgp.py | 99 ++- ryu/lib/type_desc.py | 1 + ryu/services/protocols/bgp/api/base.py | 6

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

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

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

2016-08-22 Thread IWASE Yusuke
IP_ADV_ROUTE, route_dist='65001:100', esi=0, ethernet_tag_id=200, mac_addr='aa:bb:cc:dd:ee:ff', ip_addr='10.0.0.1',

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

2016-08-22 Thread IWASE Yusuke
t; 65001:100:multicast_etag(ethernet_tag_id:300,ip_addr:10.10.1.0) None 0.0.0.0 Only Path ? With this patch: bgpd> show vrf all VPN: ('65001:100', 'evpn') *> multicast_etag(ethernet_tag_id:300,ip_addr:10.10.1.0) None 0.0.0.0

[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

[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

[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

[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

[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

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

2016-08-22 Thread IWASE Yusuke
updated. IWASE Yusuke (20): packet/bgp: Enable to parse the entire packet data packet/bgp: Support MPLS-Based Ethernet VPN (RFC7432) test_bgp: Add unit tests for Ethernet VPN BGPSpeaker: Support Python3 on SSH console BGPSpeaker/info_base: Add comparison methods for Python3 packet/bgp

[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

[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

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

[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

[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

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 >> +++

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, >>&

[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

[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
instead. https://github.com/pyinstaller/pyinstaller/issues/1976 Signed-off-by: IWASE Yusuke --- tools/ryu-manager.spec | 28 1 file changed, 28 insertions(+) create mode 100644 tools/ryu-manager.spec diff --git a/tools/ryu-manager.spec b/tools/ryu-manager.spec

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-23 Thread Iwase Yusuke
Hi, Could you check the following? http://osrg.github.io/ryu-book/en/html/switching_hub.html#execution-of-ryu-application Installation procedure $ sudo apt-get install git python-dev python-setuptools python-pip $ git clone https://github.com/osrg/ryu.git $ cd ryu $ sudo pip inst

Re: [Ryu-devel] Ryu application

2016-08-23 Thread Iwase Yusuke
27;t because it gives me > keyerror stplib so how can instantiate a simple_switch object? > > Inviato da iPhone > >> Il giorno 17/ago/2016, alle ore 03:02, Iwase Yusuke >> ha scritto: >> >> Hi, >> >> Sorry for the delay. >> >>>

Re: [Ryu-devel] Ryu application

2016-08-23 Thread Iwase Yusuke
age in ryu and than i had to modify mininet? > Sorry for the delay > > Inviato da iPhone > >> Il giorno 17/ago/2016, alle ore 03:02, Iwase Yusuke >> ha scritto: >> >> Hi, >> >> Sorry for the delay. >> >>> On 2016年08月10日 17:59, Frances

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-24 Thread Iwase Yusuke
ed. https://sourceforge.net/p/ryu/mailman/message/35296178/ Thanks, Iwase > > -Ajay > -Original Message- > From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] > Sent: 24 August 2016 06:36 > To: Ajay Chopra > Cc: ryu-devel@lists.sourceforge.net > Subject: Re: [Ry

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-24 Thread Iwase Yusuke
orking directory . > > -Ajay > -Original Message- > From: Ajay Chopra > Sent: 25 August 2016 08:34 > To: ryu-devel@lists.sourceforge.net > Cc: 'Iwase Yusuke' > Subject: RE: [Ryu-devel] Not able to install the RYU controller > > Hello Iwase , > >

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-24 Thread Iwase Yusuke
nvironment (e.g. OS, Python version, virtualenv or not) are you using? Thanks, Iwase On 2016年08月25日 13:31, Ajay Chopra wrote: > Yes its being installed . > > -----Original Message- > From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] > Sent: 25 August 2016 09:36 > To: Ajay Chopra

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-25 Thread Iwase Yusuke
can tell you the exact message by tomorrow > as I am not in office today . > > I am using Linux machine ,python version 2.6 . > > How to set the virtual environment ? > > -Ajay > > -Original Message- > From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] >

Re: [Ryu-devel] [RYU-DEVEL] - Getting flow entries length

2016-08-25 Thread Iwase Yusuke
Hi, Which version of Ryu are you using? On my environment, length field can be get. e.g.) $ curl -X GET http://localhost:8080/stats/flow/1 | jq . { "1": [ { "duration_sec": 256, "byte_count": 0, "match": { "in_port": 1 }, "actions": [

Re: [Ryu-devel] Monitoring control packets

2016-08-25 Thread Iwase Yusuke
Hi, How about monitoring the switch's port which port number is OFPP_CONTROLLER? You can get this port statistics with OFPPortStatsRequest messages: e.g.) req = ofp_parser.OFPPortStatsRequest(datapath, 0, ofp.OFPP_CONTROLLER) Thanks, Iwase On 2016年08月25日 23:22, Osman Titu wrote: > Hi > > I am

Re: [Ryu-devel] Ryu patch

2016-08-28 Thread Iwase Yusuke
Hi, Thank you for submitting your patch! > diff --git a/ryu/lib/ofctl_v1_3.py b/ryu/lib/ofctl_v1_3.py > index f407e5a..44f611a 100644 > --- a/ryu/lib/ofctl_v1_3.py > +++ b/ryu/lib/ofctl_v1_3.py > @@ -1152,5 +1152,11 @@ def mod_port_behavior(dp, port_config): > ofctl_utils.send_msg(dp, port_

Re: [Ryu-devel] [RYU] Delete flow entry basing on priority

2016-08-29 Thread Iwase Yusuke
, out_port=ofproto.OFPP_ANY, out_group=ofproto.OFPG_ANY, command=ofproto.OFPFC_DELETE_STRICT) Thunks, Iwase On 2016年08月30日 09:44, Quân Nguyễn Thanh wrote: > Hi Iwase Yusuke, > > Sorry, if I borther you. &g

Re: [Ryu-devel] Traffic Monitor Statistics (Tx-Error, Rx-Error, Tx-Dropped, Rx-Dropped)

2016-08-29 Thread Iwase Yusuke
Hi, I guess it is depending on the features of the switch or Mininet. FYI, The following shows an example for the bandwidth limitation using Linux traffic control features. But, please note that I've not test this feature whether this example helps to generate error statistics... https://githu

Re: [Ryu-devel] Fake Gateway

2016-08-29 Thread Iwase Yusuke
Hi, If your gateway performs as L3 gateway and your app replies s1-eth0 MAC, you need to rewrite src MAC to s1-eth1 MAC and dst MAC to h2 MAC at your gateway in order to communicate IP packets from h1 and h2, I guess. If your gateway performs as L2 gateway, your app should reply h2 MAC for h1's

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-29 Thread Iwase Yusuke
you tell us from where the setup tool is being picked ? > > -Ajay > > From: Quân Nguyễn Thanh [mailto:ntqua...@gmail.com] > Sent: 30 August 2016 07:53 > To: Ajay Chopra > Cc: ryu-devel@lists.sourceforge.net; Iwase Yusuke ; > Jayavel Arumugam (IT Services), Noida > Sub

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Iwase Yusuke
: 1.0 > Name: setuptools > Version: 0.6rc11 > Summary: > Home-page: xxx > Author: xxx > Author-email: xxx > License: xxx > Location: /usr/lib/python2.6/site-packages > Requires: > Classifiers: > > -Ajay > -Original Message- > From: Iwase Yusuke

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Iwase Yusuke
..@gmail.com; Jayavel Arumugam (IT Services), Noida > > Subject: RE: [Ryu-devel] Not able to install the RYU controller > > I have installed the Python Version 3.5 When I do the python --version it > gives Python 3.5.0 . > > -Ajay > > -Original Message- > Fr

Re: [Ryu-devel] Upgrading Ryu

2016-08-30 Thread Iwase Yusuke
Hi, > Installing ryu-manager script to /usr/local/bin > Installing ryu script to /usr/local/bin > Successfully installed ryu > Cleaning up... These messages show Ryu have installed Successfully... Please confirm Ryu version as follows: $ ryu-manager --version ryu-manager 4.5 BTW, ar

Re: [Ryu-devel] Not able to install the RYU controller

2016-08-30 Thread Iwase Yusuke
ing to do > > So , I need to install which version of setup-tools and where I need to copy > it so that it can be picked by the > python script. > > -Ajay > -Original Message- > From: Iwase Yusuke [mailto:iwase.yusu...@gmail.com] > Sent: 30 August 2016 12:42 > To:

Re: [Ryu-devel] DPID in ryu

2016-08-30 Thread Iwase Yusuke
Hi, DPID is defined by the OpenFlow switch (or its setting). Ryu gets DPID from switches by using OFPSwitchFeatures messages. You can get DPID in your RyuApp as follow. https://github.com/osrg/ryu/blob/master/ryu/app/simple_switch_13.py#L88 Thanks, Iwase On 2016年08月30日 22:34, Aidin Kelki wr

Re: [Ryu-devel] Ryu patch

2016-09-01 Thread Iwase Yusuke
Hi Fujita-San, On 2016年09月01日 21:29, FUJITA Tomonori wrote: > On Thu, 01 Sep 2016 08:50:06 + > 林東岳 wrote: > >> From 1633af89f6dd5f2b2e42023c62b744362d553546 Mon Sep 17 00:00:00 2001 >> From: tungyueh >> Date: Thu, 25 Aug 2016 15:53:17 +0800 >> Subject: [PATCH] add change role API in ofctl_re

  1   2   3   4   5   6   7   8   9   10   >