Re: [Ryu-devel] TCP_SRC/TCP_DST

2016-09-26 Thread Iwase Yusuke
Hi, What exactly error did you get? For adding tcp_src/tcp_dst match fields, please check the "7.2.3.6 Flow Match Field Prerequisite" in OpenFlow Spec 1.3, first. For example, if you want to add tcp_dst=80, you also need to specify eth_type=0x0800 and ip_proto=6. $ git diff diff --git a/ryu/ap

Re: [Ryu-devel] [BGP] How to get the neighbor's network?

2016-09-26 Thread Iwase Yusuke
Hi, You can get the BGP routing information by BGPSpeaker.rib_get(). http://ryu.readthedocs.io/en/latest/library_bgp_speaker_ref.html#ryu.services.protocols.bgp.bgpspeaker.BGPSpeaker.rib_get Thanks, Iwase On 2016年09月27日 04:15, Paulo Sérgio wrote: > Hi, I'm building a BGP application and I'm

[Ryu-devel] [PATCH] packet: Avoid parsing an empty buffer

2016-09-26 Thread IWASE Yusuke
For example, the packet library detects the TCP payload type by using the TCP src/dst port, but in case of the BGP packet, the packet library will try to parse a TCP ACK packet as a BGP packet, and will fail to parse. This patch enables to ignore an empty buffer and fixes this problem. Signed-off

[Ryu-devel] [PATCH 2/2] stplib: Fix to store current OFPPort status

2016-09-26 Thread Shinpei Muraoka
Currently, stplib compares the status of OFPPortStatus message with that of Datapath instance, but this comparison returns always "equal", so stplib fails to get the correct port status. This patch fixes to store the current port status and to compare the new status with the stored status. Signed

[Ryu-devel] [PATCH 0/2] Improvements of stplib

2016-09-26 Thread Shinpei Muraoka
The following patches improves Spanning Tree implementation. Shinpei Muraoka (2): stplib: Fix to compare MAC address and Bridge ID stplib: Fix to store current OFPPort status ryu/lib/mac.py| 9 + ryu/lib/stplib.py | 35 +-- 2 files changed, 30 ins

[Ryu-devel] [PATCH 1/2] stplib: Fix to compare MAC address and Bridge ID

2016-09-26 Thread Shinpei Muraoka
cmp() func was introduced for Python 3 compatibility before, but this implementation is not enough, because a MAC address can not be compared with a Bridge ID (integer value) by com() func. This patch fixes to convert the MAC address into an integer value before comparing with Bridge ID and fixes

Re: [Ryu-devel] Match on ttl

2016-09-26 Thread Iwase Yusuke
Hi, Thank you for submitting your patch. We very welcome your contributing! You can add your code to Ryu by sending your patch to this mailing list. https://github.com/osrg/ryu/blob/master/CONTRIBUTING.rst#submitting-a-change For the NXM match fields, nicra_ext.py is the appropriate place to a

[Ryu-devel] [BGP] How to get the neighbor's network?

2016-09-26 Thread Paulo Sérgio
Hi, I'm building a BGP application and I'm having a problem to get the networks from a neighbor. I can get it from a best_path_change_handler because it's contained in a EventPrefix object which contains this data, but I can't get it if this method is not called, for example after connecting a

[Ryu-devel] Match on ttl

2016-09-26 Thread Sugrim, Shridatt
Greetings, I'm working on a project that required me to use the NXM_NX_IP_TTL match. I was not able to craft such a match with the code that is currently on the repo. I added an oxm filed to the nicra_ext.py file so that I could create the matches and I was able to use them with my copy of OVS