Re: [Ryu-devel] Handling New Protocols with Ryu

2016-07-05 Thread Iwase Yusuke
Hi, Does your custom protocol reserve any TCP src/dst port? If you can define it, please modify the following to return your protocol class. https://github.com/osrg/ryu/blob/master/ryu/lib/packet/tcp.py#L135 e.g.) $ git diff diff --git a/ryu/lib/packet/tcp.py b/ryu/lib/packet/tcp.py index 1771

[Ryu-devel] [PATCH 0/2] packet: Fix minimum ethernet frame length

2016-07-05 Thread IWASE Yusuke
For the discussion with Kawai-San and Fujita-San, this patch fixes ryu/lib/packet/ethernet.py to fix up the minimum length of the generated ethernet frames by Ryu's Packet library. With this patch, the generated ethernet frames will be fixed up to 60 bytes long at least (not including the preamble

[Ryu-devel] [PATCH 2/2] test_packet: Avoid to use array.array as input binary

2016-07-05 Thread IWASE Yusuke
In Python 2.7, array.array cannot be converted correctly into binary type by using six.binary_type(). So packet.Packet() cannot skip data effectively. This patch remove to use array.array as input binary in test_packet. Note: array.array can be used as input binary as the same as before, but in th

[Ryu-devel] [PATCH 1/2] packet: Fix minimum ethernet frame length

2016-07-05 Thread IWASE Yusuke
In the Ethernet frame Spec (Both DIX EthernetII and IEEE 802.3), the frame size must be at least 64 bytes long (not including the preamble). 64 bytes = 14 bytes (Header) + 46 bytes (Payload) + 4 bytes (FCS) This patch appends padding if the payload is less than 46 bytes long. Reported-by: Kawa

[Ryu-devel] [PATCH 4/4] test_peer: Unit test for peer.py of BGPSpeaker

2016-07-05 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/tests/unit/services/__init__.py| 0 ryu/tests/unit/services/protocols/__init__.py | 0 ryu/tests/unit/services/protocols/bgp/__init__.py | 0 ryu/tests/unit/services/protocols/bgp/test_peer.py | 375 + 4 files cha

[Ryu-devel] [PATCH 1/4] BGPSpeaker: Fix capability check when MP-BGP not supported

2016-07-05 Thread IWASE Yusuke
Currently, BGPSpeaker skips sending the Update messages with an IPv4/IPv6 prefix when the peer does not support MP-BGP. This patch fixes capability check in order to send IP prefix when MP-BGP not suppored by the peer. Signed-off-by: IWASE Yusuke --- ryu/services/protocols/bgp/peer.py | 4 +++-

[Ryu-devel] [PATCH 3/4] BGPSpeaker: Support Four-Octet AS number

2016-07-05 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/packet/bgp.py | 41 ++-- ryu/services/protocols/bgp/bgpspeaker.py | 31 +-- ryu/services/protocols/bgp/peer.py | 270 +++-- ryu/services/protocols/bgp/rtconf/base.py | 13 +- ryu/service

[Ryu-devel] [PATCH 2/4] packet/bgp: Support Four-Octet AGGREGATOR Path Attribute

2016-07-05 Thread IWASE Yusuke
Signed-off-by: IWASE Yusuke --- ryu/lib/packet/bgp.py | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 7eae712..937fdeb 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -1677,8 +1677,2

[Ryu-devel] [PATCH 0/4] BGPSpeaker: Support Four-Octet AS number

2016-07-05 Thread IWASE Yusuke
The following patches enable BGPSpeaker to support Four-Octet AS number and include some improvements of BGP. IWASE Yusuke (4): BGPSpeaker: Fix capability check when MP-BGP not supported packet/bgp: Support Four-Octet AGGREGATOR Path Attribute BGPSpeaker: Support Four-Octet AS number test_

Re: [Ryu-devel] RYU controllers

2016-07-05 Thread Iwase Yusuke
Hi, On 2016年07月05日 18:27, Ajay Chopra wrote: > Hello Ryu Team , > > Can you share the details ofRYUcontrollers which can support Pica8 , Edge > Core or Dell Switches ? Please refer to the Ryu Certification page. http://osrg.github.io/ryu/certification.html According to this page, Ryu suppo

Re: [Ryu-devel] RYU controllers

2016-07-05 Thread Ajay Chopra
Gentle reminder . From: Ajay Chopra Sent: 05 July 2016 14:58 To: '[email protected]' Cc: Syed Tabrez Ahmed Shah ; Jayavel Arumugam (IT Services), Noida Subject: RYU controllers Hello Ryu Team , Can you share the details of RYU controllers which can support Pica8 , Edge Core or

Re: [Ryu-devel] Qos with custom topology and spanning treee

2016-07-05 Thread Shinpei Muraoka
Hi, > I need to apply the per-flow QoS and replace (simple_switch_13.py) with > (simple_switch_stp_13.py) because I have loop in my custom topology > but I have some error :with qos switch not connection rest_qos.py suppose to be processed on Flow Table pipeline processing, modify simple_swit

[Ryu-devel] Fitness Users/industry Email list

2016-07-05 Thread Alice James
Hi, Would you be interested in Fitness Users/industry Email list? which includes complete contact details and verified email addresses of :– Primary Industry:- Consumer Health, Food & Fitness, Health & Fitness, Sports Marketing & Business Ø Personal Trainers Ø Mind-Body Professionals

[Ryu-devel] Handling New Protocols with Ryu

2016-07-05 Thread Sam Snodgrass
Good afternoon everyone, I am experimenting with handling custom protocols with Ryu, but am unable to parse the new protocols at the switch or controller. I have created a custom protocol with Scapy that simple holds 3 IntFields (4 bytes each) and 2 ShortFields (2 bytes each). I create a packet w

Re: [Ryu-devel] [PATCH] fix tiny packet comparison

2016-07-05 Thread FUJITA Tomonori
On Mon, 4 Jul 2016 14:28:57 +0900 Iwase Yusuke wrote: > If this patch looks okay, I will update my patch, > because this patch does not fix unit tests, so causes some errors... Yes, please! -- Attend Shape: An AT&T Tech

[Ryu-devel] RYU controllers

2016-07-05 Thread Ajay Chopra
Hello Ryu Team , Can you share the details of RYU controllers which can support Pica8 , Edge Core or Dell Switches ? -Ajay ::DISCLAIMER:: The