summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2013-10-21doc: hook up lib.packet.sctpYuichi Ito
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-21packet lib: sctp: add a unittest for SCTPYuichi Ito
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-21packet lib: add Stream Control Transmission ProtocolYuichi Ito
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-21packet lib: icmpv6.nd_router_advert: skip unknown options correctlyYAMAMOTO Takashi
this should fix a problem reported by Gabriele Gerbino on ryu-devel. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-21packet lib: icmpv6: commentYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-21packet lib: ipv6: correct parser() about flow_labelYuichi Ito
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-17simple_switch_13: using table-miss flowYoshihiro Kaneko
OVS has not yet supported table-miss flow completely, but this patch changes simple_switch_13 to install table-miss flow entry in accordance with OF1.3 spec. Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-15of13: fix OFPGroupStatsFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-15ofproto tests: add expected json outputsYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-15packet_data: regenYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-15packet_data_generator: add of1.3 group_stats_request/replyYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-15of10: fix pep8FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-15of13: correct parser() in several OFPActionsYuichi Ito
before applying this patch: - parser() of OFPActionDecMplsTtl calls itself recursively. - parser() of OFPActionDecNwTtl, OFPActionCopyTtlOut, OFPActionCopyTtlIn and OFPActionPopVlan fail by shortage of arguments. after applying this patch: - all parser() of OFPActions work nicely. Signed-off-by: itoyuichi <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-15of10: Register TCP_DST and UDP_DST headers in NXMCan Zhang
Signed-off-by: Can Zhang <can@canx.me> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-15simple_switch: use packet libraryFUJITA Tomonori
Also remove obsolete comments. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp: parse/serialize FOUR OCTET AS NUMBER capabilityYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp: parse/serialize ROUTE REFRESH capabilityYAMAMOTO Takashi
also, provide the fallback "unknown" capablity class. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp: implement ROUTE REFRESH messageYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet lib: some AFI/SAFI constantsYAMAMOTO Takashi
will be used for BGP. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp: parse/serialize capability optionsYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp: some capability related constantsYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08bgp test: appease pep8YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp: appease pep8YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08of13: fix InstructionMeter parserAtzm Watanabe
When using of1.3 meter, NameError is caused while parsing instructions. Signed-off-by: Atzm Watanabe <atzm@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08Switch how to call the API of Routes for every versionSatoshi Kobayashi
The parameter of the API of Routes differs between 1.13 and 1.10. Routes 1.10 is provided by base repository of RHEL. Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08To specify a context of a controller from WSGIApplication#register()Satoshi Kobayashi
Before: wsgi.register(FooController) wsgi.registory[FooController.__name__] = controller_args After: wsgi.register(FooController, controller_args) Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp test: parse real packets taken from quaggaYAMAMOTO Takashi
bgp4-update case is commented out for now because we don't support 4-octet AS numbers. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp test: some on-wire packets snooped from running quaggaYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp: implement RFC 4893YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08packet.bgp: parse/serialize path attribute valuesYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-08python-oslo-config is necessary for Ryu built by RPMSatoshi Kobayashi
python-oslo-config is provided by RDO (http://openstack.redhat.com/) Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-07Ryu 3.2FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-07fix setup from a tarball againYAMAMOTO Takashi
this makes the following work again. DIR=$(mktemp -d) git archive --format=tar HEAD | (cd ${DIR} && tar xf -) cd ${DIR} python ./setup.py install PBR_VERSION environment variable didn't work as we expected because it unconditionally overrides versions for other packages even if there are other ways to get their versions. eg. PKG_INFO. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-07avoid pbr's non multi-version aware scriptYAMAMOTO Takashi
otherwise the latest ryu-manager can pick up older modules if multiple versions of ryu is installed on a system. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-10-07revert "support setup.py install with git archive tarballs" commitYAMAMOTO Takashi
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>
2013-10-07revert "stick with pbr 0.5.19" commitYAMAMOTO Takashi
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>
2013-10-02Ryu 3.1FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-09-30packet lib: dhcp: remove unnecessary importYuichi Ito
Signed-off-by: itoyuichi <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-09-30packet lib: dhcp: add unittestYuichi Ito
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>
2013-09-30packet lib: dhcp: use text addressesYuichi Ito
Signed-off-by: itoyuichi <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-09-27packet lib: add get_protocol APIFUJITA Tomonori
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>
2013-09-27of1.3: set default arguments for FlowStatsRequestFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-09-27of1.2: set default arguments for FlowStatsRequestFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-09-26topology.switches: fix link discoveryYAMAMOTO Takashi
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>
2013-09-25ofproto: remove a bogus commentYAMAMOTO Takashi
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>
2013-09-25ofproto: remove unused definitionsYAMAMOTO Takashi
g/c unused OF1.2/1.3 OFP_PACKET_IN_DATA_OFFSET definitions. they seem to be 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>
2013-09-25ofproto: fix OF1.0 packet_in parserYAMAMOTO Takashi
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>
2013-09-25packet lib: icmp: rewrite unittestYuichi Ito
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>
2013-09-25tests/integrated: fix mac address formatYAMADA Hideki
This fix following error. $ ./run_tests.sh -i (...) ryu-manager: hub: uncaught exception: Traceback (most recent call last): ryu-manager: File "/home/hideki/git/ryu/ryu/lib/hub.py", line 48, in _launch ryu-manager: func(*args, **kwargs) ryu-manager: File "/home/hideki/git/ryu/ryu/base/app_manager.py", line 110, in _event_loop ryu-manager: handler(ev) ryu-manager: File "/home/hideki/git/ryu/ryu/tests/integrated/test_request_reply_v12.py", line 996, in echo_replay_handler ryu-manager: self.run_verify(ev) ryu-manager: File "/home/hideki/git/ryu/ryu/tests/integrated/test_request_reply_v12.py", line 78, in run_verify ryu-manager: self.start_next_test(dp) ryu-manager: File "/home/hideki/git/ryu/ryu/tests/integrated/test_request_reply_v12.py", line 56, in start_next_test ryu-manager: getattr(self, t)(dp) ryu-manager: File "/home/hideki/git/ryu/ryu/tests/integrated/test_request_reply_v12.py", line 203, in test_error_reply ryu-manager: dp.send_msg(m) ryu-manager: File "/home/hideki/git/ryu/ryu/controller/controller.py", line 220, in send_msg ryu-manager: msg.serialize() ryu-manager: File "/home/hideki/git/ryu/ryu/ofproto/ofproto_parser.py", line 194, in serialize ryu-manager: self._serialize_body() ryu-manager: File "/home/hideki/git/ryu/ryu/ofproto/ofproto_v1_2_parser.py", line 1754, in _serialize_body ryu-manager: self.port_no, addrconv.mac.text_to_bin(self.hw_addr), ryu-manager: File "/home/hideki/git/ryu/ryu/lib/addrconv.py", line 27, in text_to_bin ryu-manager: return self._addr(text, **self._addr_kwargs).packed ryu-manager: File "/home/hideki/git/ryu/.venv/local/lib/python2.7/site-packages/netaddr/eui/__init__.py", line 376, in __init__ ryu-manager: self.value = addr ryu-manager: File "/home/hideki/git/ryu/.venv/local/lib/python2.7/site-packages/netaddr/eui/__init__.py", line 434, in _set_value ryu-manager: % (value, self._module.version)) ryu-manager: AddrFormatError: address '\xff\xff\xff\xff\xff\xff' is not an EUIv48 Signed-off-by: YAMADA Hideki <yamada.hideki@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-09-25Advanced WSGI APISatoshi Kobayashi
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>