[Ryu-devel] [PATCH 3/3] packet lib: sctp: add tests for protocol stack

2013-10-21 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- ryu/tests/unit/packet/test_sctp.py | 89 1 file changed, 89 insertions(+) diff --git a/ryu/tests/unit/packet/test_sctp.py b/ryu/tests/unit/packet/test_sctp.py index 09bcd33..adacb96 100644 --- a/ryu/tests/unit/packet/test_sctp

[Ryu-devel] [PATCH 1/3] packet lib: sctp: disuse @abstractproperty for python2.6

2013-10-21 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- ryu/lib/packet/sctp.py |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/lib/packet/sctp.py b/ryu/lib/packet/sctp.py index 243c0c6..f007b55 100644 --- a/ryu/lib/packet/sctp.py +++ b/ryu/lib/packet/sctp.py @@ -226,7 +226,7 @@ class chunk

[Ryu-devel] [PATCH 2/3] packet lib: sctp: fix problems about padding

2013-10-21 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- ryu/lib/packet/sctp.py | 38 +++- ryu/tests/unit/packet/test_sctp.py | 57 ++-- 2 files changed, 59 insertions(+), 36 deletions(-) diff --git a/ryu/lib/packet/sctp.py b/ryu/lib/packet/sctp.py index

[Ryu-devel] [PATCH 0/3] packet lib: sctp: fix some problems

2013-10-21 Thread Yuichi Ito
I'm sorry but I didn't detect the code had been merged. these are the diff of PATCH v2. Yuichi Ito (3): packet lib: sctp: disuse @abstractproperty for python2.6 packet lib: sctp: fix problems about padding packet lib: sctp: add tests for protocol stack ryu/lib/packet/sctp.py |

Re: [Ryu-devel] [PATCH v2 0/3] packet lib: add Stream Control Transmission Protocol

2013-10-21 Thread FUJITA Tomonori
On Tue, 22 Oct 2013 14:30:41 +0900 Yuichi Ito wrote: > Changes v1 -> v2: > > - disuse @abstractproperty for python2.6 > - fix problems about padding > - add tests for protocol stack > > > Yuichi Ito (3): > packet lib: add Stream Control Transmission Protocol > packet lib: sctp: add a unitt

[Ryu-devel] [PATCH v2 0/3] packet lib: add Stream Control Transmission Protocol

2013-10-21 Thread Yuichi Ito
Changes v1 -> v2: - disuse @abstractproperty for python2.6 - fix problems about padding - add tests for protocol stack Yuichi Ito (3): packet lib: add Stream Control Transmission Protocol packet lib: sctp: add a unittest for SCTP doc: hook up lib.packet.sctp doc/source/library_packet_ref

[Ryu-devel] [PATCH v2 3/3] doc: hook up lib.packet.sctp

2013-10-21 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- doc/source/library_packet_ref.rst |2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/library_packet_ref.rst b/doc/source/library_packet_ref.rst index b5e1c9d..13ceec6 100644 --- a/doc/source/library_packet_ref.rst +++ b/doc/source/library_packet_ref

[Ryu-devel] [PATCH v2 2/3] packet lib: sctp: add a unittest for SCTP

2013-10-21 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- ryu/tests/unit/packet/test_sctp.py | 1396 1 file changed, 1396 insertions(+) create mode 100644 ryu/tests/unit/packet/test_sctp.py diff --git a/ryu/tests/unit/packet/test_sctp.py b/ryu/tests/unit/packet/test_sctp.py new file m

[Ryu-devel] [PATCH 6/6] bgp: implement communities attribute

2013-10-21 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/lib/packet/bgp.py | 36 +++- ryu/tests/unit/packet/test_bgp.py | 5 + 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 002e690..226aeb2 100644

[Ryu-devel] [PATCH 1/6] bgp: update a comment

2013-10-21 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/lib/packet/bgp.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 48d3f83..1ffd035 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -22,7 +22,6 @@ RFC 4271 BGP-4 # - notify data # - n

[Ryu-devel] [PATCH 3/6] bgp: implement MP_UNREACH_NLRI

2013-10-21 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/lib/packet/bgp.py | 38 ++ ryu/tests/unit/packet/test_bgp.py | 2 ++ 2 files changed, 40 insertions(+) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index eb3e2d1..93ce472 100644 --- a/ryu/lib/p

[Ryu-devel] [PATCH 2/6] bgp: implement MP_REACH_NLRI

2013-10-21 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/lib/packet/bgp.py | 123 -- ryu/tests/unit/packet/test_bgp.py | 25 +--- 2 files changed, 122 insertions(+), 26 deletions(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 1ffd035..eb3e

[Ryu-devel] [PATCH 5/6] bgp: well known communities

2013-10-21 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/lib/packet/bgp.py | 5 + 1 file changed, 5 insertions(+) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index dab5150..002e690 100644 --- a/ryu/lib/packet/bgp.py +++ b/ryu/lib/packet/bgp.py @@ -79,6 +79,11 @@ BGP_ATTR_TYPE_AS4_AGGREGATOR =

[Ryu-devel] [PATCH 4/6] bgp: implement multiprotocol capability

2013-10-21 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/lib/packet/bgp.py | 33 +++-- ryu/tests/unit/packet/test_bgp.py | 2 ++ 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/ryu/lib/packet/bgp.py b/ryu/lib/packet/bgp.py index 93ce472..dab5150 100644 ---

Re: [Ryu-devel] [PATCH] lib.packet.sctp: fix misuses of abstractproperty

2013-10-21 Thread Yuichi Ito
On Tue, 22 Oct 2013 12:18:20 +0900 Yuichi Ito wrote: > On Tue, 22 Oct 2013 11:42:00 +0900 > YAMAMOTO Takashi wrote: > >> this fixes the recent travis-ci failures. > > yes, thank you. > I had written the same patch. > but I found some problems about padding at other places. > place wait for PATCH

Re: [Ryu-devel] [PATCH] lib.packet.sctp: fix misuses of abstractproperty

2013-10-21 Thread Yuichi Ito
On Tue, 22 Oct 2013 11:42:00 +0900 YAMAMOTO Takashi wrote: > this fixes the recent travis-ci failures. yes, thank you. I had written the same patch. but I found some problems about padding at other places. place wait for PATCH v2. > > Signed-off-by: YAMAMOTO Takashi > --- > ryu/lib/packet/s

[Ryu-devel] The version of OpenFlow doesn't correspond for this device

2013-10-21 Thread Wei-Ting Lin
Hi When I used Ryu3.2 with NEC switch, I got Error about "The version of OpenFlow doesn't correspond for this device". After I changed NEC switch to LinKSys WRT54GL (I flashed the device), Ryu3.2 can work. Is that mean NEC switch can't talk in OpenFlow 1.3, but I can't figure out why WRT54GL can w

[Ryu-devel] [PATCH] lib.packet.sctp: fix misuses of abstractproperty

2013-10-21 Thread YAMAMOTO Takashi
this fixes the recent travis-ci failures. Signed-off-by: YAMAMOTO Takashi --- ryu/lib/packet/sctp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/lib/packet/sctp.py b/ryu/lib/packet/sctp.py index 243c0c6..f007b55 100644 --- a/ryu/lib/packet/sctp.py +++ b/ryu/lib/

Re: [Ryu-devel] [PATCH 0/3] packet lib: add Stream Control Transmission Protocol

2013-10-21 Thread FUJITA Tomonori
On Mon, 21 Oct 2013 19:13:03 +0900 Yuichi Ito wrote: > Yuichi Ito (3): > packet lib: add Stream Control Transmission Protocol > packet lib: sctp: add a unittest for SCTP > doc: hook up lib.packet.sctp > > doc/source/library_packet_ref.rst |2 + > ryu/lib/packet/ipv4.py |

Re: [Ryu-devel] Error regarding PACKET_IN event

2013-10-21 Thread FUJITA Tomonori
On Mon, 21 Oct 2013 18:45:23 +0900 Satoshi Kobayashi wrote: > I was also mistaken in it and made time useless. > Therefore I feel that it is better to change a default value. > > Is it like this…? (RFC because I do not know that this is excellent) > -- > def __ini

[Ryu-devel] [PATCH 0/3] packet lib: add Stream Control Transmission Protocol

2013-10-21 Thread Yuichi Ito
Yuichi Ito (3): packet lib: add Stream Control Transmission Protocol packet lib: sctp: add a unittest for SCTP doc: hook up lib.packet.sctp doc/source/library_packet_ref.rst |2 + ryu/lib/packet/ipv4.py |2 + ryu/lib/packet/ipv6.py |2 + ryu/lib/packet/s

[Ryu-devel] [PATCH 3/3] doc: hook up lib.packet.sctp

2013-10-21 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- doc/source/library_packet_ref.rst |2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/library_packet_ref.rst b/doc/source/library_packet_ref.rst index b5e1c9d..13ceec6 100644 --- a/doc/source/library_packet_ref.rst +++ b/doc/source/library_packet_ref

[Ryu-devel] [PATCH 2/3] packet lib: sctp: add a unittest for SCTP

2013-10-21 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- ryu/tests/unit/packet/test_sctp.py | 1308 1 file changed, 1308 insertions(+) create mode 100644 ryu/tests/unit/packet/test_sctp.py diff --git a/ryu/tests/unit/packet/test_sctp.py b/ryu/tests/unit/packet/test_sctp.py new file m

Re: [Ryu-devel] Error regarding PACKET_IN event

2013-10-21 Thread Satoshi Kobayashi
2013/10/17 FUJITA Tomonori > Hi, > > On Wed, 16 Oct 2013 14:30:55 -0400 > Chen Chen wrote: > > > I realized that when I instantiated OFPActionOutPut, the max_len is > default > > to 0. So I manually assigned a non-zero value to itand it works perfectly > > for Packet_In message. > > So thanks a

Re: [Ryu-devel] Multiple Extension Headers

2013-10-21 Thread Gabriele Gerbino
>can you tell us the exact symptom of "cannot deliver"? I have a code like this into the __init__ class input = open('/home/user/ryu/ryu/app/prtr','r') global prefixtrusted prefixtrusted = (input.readline()) input.close() When I extract the prefix from the packet_in, it

Re: [Ryu-devel] An event confusion issue between modules

2013-10-21 Thread Satoshi Kobayashi
2013/10/21 FUJITA Tomonori > On Sat, 12 Oct 2013 20:04:35 +0900 > Satoshi Kobayashi wrote: > > > I noticed that an event between modules may get confused in multithread. > It > > is the following scenarios. > > > > 1. The module A sends an event to the module B > > 2. The module B requires time

[Ryu-devel] [PATCH v2] To specify a logging configuration file

2013-10-21 Thread Satoshi Kobayashi
Setup of logging from a configuration file. Refer to the following for the details of a configuration file. http://docs.python.org/2/library/logging.config.html Signed-off-by: Satoshi Kobayashi --- Changes for v2: - Error handling - Use an option of fileConfig() ryu/log.py | 18 ++

Re: [Ryu-devel] Multiple Extension Headers

2013-10-21 Thread YAMAMOTO Takashi
> Hi, > don't worry, your english is good enough :) > > IPv6 is designed so that you can add multiple headers into a single packet > (basically, that's a different way to implement the old "options" IPv4 > header field) and I called "chain" this configuration. What I want to do is > to find a solu

Re: [Ryu-devel] Multiple Extension Headers

2013-10-21 Thread Yuichi Ito
Hi, thank you for your reply. On Mon, 21 Oct 2013 08:15:15 +0200 Gabriele Gerbino wrote: > Hi, > don't worry, your english is good enough :) > > IPv6 is designed so that you can add multiple headers into a single packet > (basically, that's a different way to implement the old "options" IPv4 he