revert the following commit because it has a side effect
to change pbr's version to ryu's version. (eg. 3.1)
it doesn't work with the recent version of olso.config
which requires pbr < 1.0.
|commit 55aa47489306ebb3bfa3307e3fa5a332007a58ed
|Author: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
|Date: Fri Aug 2 14:33:40 2013 +0900
|
| support setup.py install with git archive tarballs
|
| Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
revert the following commit because it doesn't work with
the latest oslo.config which requires newer pbr.
|commit 205485e0520d8f37c49b66bbbf012a9448cd9367
|Author: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
|Date: Fri Aug 30 14:08:49 2013 +0900
|
| stick with pbr 0.5.19
|
| the latest versions of pbr generate scripts which don't support
| multiversion. to avoid importing modules from older multiversion-aware
| installations of ryu, we prefer multiversion-aware scripts.
|
| Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
| Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
the problem reported by Satoshi Kobayashi on ryu-devel.
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
add the tests for __init__(), parser() and serialize() in response to using text addresses.
correct an argument for option.__init__() from string to byte.
Signed-off-by: itoyuichi <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
get_protocols returns the list of protocols. This is useful for a
packet including the same protocol multiple times (e.g. tunneling such
GRE). However, it's a rare use case. Instead of
'get_protocols(hoge)[0]', let's do 'get_protocol(hoge)' simply.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
fix a regression introduced by text address changes.
problem reported by Tonh o - Antonio Brasolin
patch tested and fixed by YAMADA Hideki
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
seems like a copy-and-paste leftover from OF1.0.
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
OF1.0 spec says OFP_ASSERT(sizeof(struct ofp_packet_in) == 20).
It's quite bogus as it assumes a specific class of C implementations.
(well, if it was C. it's unclear from the spec itself.)
We just use the real size of the structure as this is not C. This
agrees with on-wire messages OpenFlow Reference Release and Open vSwitch
produce.
This should fix a crash Chen Chen reported on ryu-devel recently.
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
formerly this module tested only to_string(), so a bug in parser() of 'TimeExceeded' was overlooked.
this patch will bring the module to test all the methods of all the classes in 'icmp' module.
Signed-off-by: itoyuichi <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
HTTP routing and implements will be in the same place. This idea was
inspired from Flask and Bottle of Python and JAX-RS of Java. This
modification keeps backward compatibility.
Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
before applying this patch:
- ipv6.parser() uses 'nxt' of the last extension header
- ipv6.__init__() rewrites 'nxt' in conjunction with extension headers
- 'nxt' of the extension headers are set automatically, i.e. they are obscure
after applying this patch:
- ipv6.parser() does not consider 'nxt' of the extension headers
- ipv6.__init__() does not rewrite 'nxt'
- 'nxt' of the extension headers are set manually as an argument of __init__()
Signed-off-by: itoyuichi <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
mostly taken from ryu.wiki/API.md and conveted by hand.
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>