summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2016-11-15pip: Separate test-requiresIWASE Yusuke
Currently, in addition to "requirements for tests", test-requires includes "optional requirements". This makes it unclear to identify which packages are surely required to use optional features (e.g., OF-Config, NETCONF, BGP speaker) and causes the redundant installation when building Docker images. This patch separates test-requires into two files("test requirements" and "optional requirements"). Also, this patch reverts the version fixation for some packages. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14RPC: Specify encoding to msgpack.Packer/UnpackerIWASE Yusuke
Currently, RPC requests using rpc_cli.py will crash on Python 3, because the decoded string through msgpack-rpc is not str type when the default encoding is not specified into msgpack.Unpacker. On Python 2, bytes type is the same as str type, and this problem does not occur. The old spec of msgpack had no notation of the encoding, but now, msgpack defines "UTF-8" as the default encoding and has the explicit type definitions for String and Binary. https://github.com/msgpack/msgpack/blob/master/spec.md This patch fixes to specify the encoding to msgpack.Packer/Unpacker and enable to use Binary type when packing for the Python 3 compatibility. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14test_rpc: Use numbers.Integral instead of long typeIWASE Yusuke
Currently, test_rpc.py uses long type for PyPy interpreter compatibility, but log type is obsoleted in Python 3. This patch fixes test_rpc.py to use numbers.Integral and makes its implemetation more clean. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14wsgi: Avoid using inspect.getargspecIWASE Yusuke
Officially, "inspect.getargspec" is obsoleted in Python 3.0, this patch fixes to avoid using this function. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14wsgi: Reduce pylint warningsIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14wsgi: Use six.text_type instead of unicodeIWASE Yusuke
This issue is suggested by Marcel Grossmann on GitHub PR #53. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14contrib: Revert module path to ryu.contribIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14protocols/bgp/base: Add missing __next__ methodIWASE Yusuke
This patch adds the missing __next__ method for Python 3 iterable. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14BGPSpeaker: Support to advertise EVPN IP Prefix routeShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14packet/bgp: Support for IP Prefix Route encodingShinpei Muraoka
This patch supports on the basis of the [draft-ietf-bess-evpn-prefix-advertisement-03] Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14packet/bgp: Fix the EvpnNLRI to use the ryu.lib.packet.vxlanShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14packet/bgp: Fix the EvpnNLRI to use the ryu.lib.packet.mplsShinpei Muraoka
Also, this patch changes name of is_stack to is_bos. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14packet/bgp: Fix the EvpnNLRI to use the ryu.lib.ipShinpei Muraoka
Also, this patch changes size of ip_len from bit to byte. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14BGPSpeaker: Enable to set capability for IPv6IWASE Yusuke
This patch enables BGPSpeaker to set the capability for IPv6 unicast address family. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14test_bgp: Add test cases for IPv6 and VPNv6 routesIWASE Yusuke
This patch adds the test cases for IPv6 unicast and VPNv6 unicast routes in BGP UPDATE messages. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14test_bgp: Enable to check parsed BGP messageIWASE Yusuke
This patch fixes to check if the parsed protocols list contains the BGP message as expected. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14packet/bgp: Refactor MP_REACH_NLRI and MP_UNREACH_NLRIIWASE Yusuke
This patch refactors MP_REACH_NLRI and MP_UNREACH_NLRI path attribute classes to support IPv6 unicast and Labeled VPNv6 unicast routes. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14lib/ip: Add method to convert IPv4/IPv6 to intIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-14test_bgp: Uncomment out test case for UPDATEIWASE Yusuke
Now BGP packet library supports 32 bits AS number and Extended Length flag in path attributes, this patch fixes to uncomment out the test case for UPDATE message. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-11packet/bgp: Enable Extended Length flags if specifiedIWASE Yusuke
Currently, the Extended Length flag in path attributes is evaluated only when the length exceeds 1 byte (max 255) field. This patch enables this flags if explicitly specified. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-11pip: Move tinyrpc to pip-requiresIWASE Yusuke
Because the embedded tinyrpc was removed, tinyrpc is required to be install for running Ryu application. This patch moves tinyrpc from test-requires to pip-requires. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-07Ryu 4.8FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-04contrib/tinyrpc: Remove embedded tinyrpc, use upstreamIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-04contrib/ncclient: Remove embedded ncclient, use upstreamIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-04ut/ovs: Add UT using Docker for ryu.lib.ovsIWASE Yusuke
This patch adds UT cases using Docker for ryu.lib.ovs. If Docker is not available, these tests will be skipped. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-29BGPSpeaker: Support to advertise PMSI Tunnel AttributeShinpei Muraoka
This patch adds support to advertise the BGP PMSI Tunnel Attribute for the Path attributes. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-29packet/bgp: Add PMSI Tunnel AttributeShinpei Muraoka
This patch adds the support for BGP PMSI Tunnel Attribute [RFC6514]. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-29packet/vxlan: Add method to convert the format of vniShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-29packet/mpls: Add method to convert the format of labelShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-29lib/ip: Add method to convert the format of Ipv4 or Ipv6Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-29Enable to run a scnario test for ryu bgp on travisfumihiko kakuma
Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-29Add scripts which install a dependency packagefumihiko kakuma
These install packages depended on a scenario test tool. Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-29Add bgp scenario testsfumihiko kakuma
This adds some scenario tests using a scenario test tool. Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-29Add bgp scenario tests toolfumihiko kakuma
This provides an environment which test a peer between ryu and quagga. I also consider that these modules are used from openstack or other projects. So there may be some functions that are not used by test for ryu. This has the following functions. - build docker image and run ryu and quagga on that container. - configure ryu and quagga. - have some operations for ryu, quagga and docker. Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25bgp/application: Re-implement base BGP applicationIWASE Yusuke
Currently, options for bgp/application.py is not passed to 'ryu-manager', bgp/application.py does only start RPC server and can not start other threads including BGP core and SSH server using bgp_sample_conf.py. This patch enables bgp/application.py to start BGP threads using the specified configuration file and reconstructs configuration file format. With this patch, BGPSpaker application can be started like: $ ryu-manager --bgp-app-config-file ryu/services/protocols/bgp/bgp_sample_conf.py ryu/services/protocols/bgp/application.py Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25flags: Add CLI options for BGP applicationIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25BGPSpeaker: Enable to specify settings for SSH CLIIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25bgp/operator/ssh: Enable to quit gracefullyIWASE Yusuke
Currently, socket.error will be raised when 'quit' command is typed. This patch enables to quit SSH session without tracebacks. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25bgp/operator/ssh: Reduce pylint warningsIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25BGPSpeaker: Use dictConfig in the standard libraryIWASE Yusuke
logging.config.dictConfig has been added in Python 2.7, this patch fixes to use dictConfig in the standard library and removes bgp/utils/dictconfig.py. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25utils: Backward compatibility for 'imp.load_source'IWASE Yusuke
This patch adds a function for providing the backward compatibility for 'imp.load_source' in Python 2 and fixes bgp/application.py to use this wrapper. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25Log OFPErrorMsg.data as ascii when type is OFPET_HELLO_FAILEDIWAMOTO Toshihiro
OFPErrorMsg.data usually contains the offending OpenFlow message, but is an ASCII text string if its type is OFPET_HELLO_FAILED. Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25ovs/vsctl: Fix API for parsing column/key/value setIWASE Yusuke
Currently, VSCtlContext.parse_column_key_value() method fails to parse "<column>:<key>=<value>" formatted str, which indicates a "map" type column. So some implementation to set "map" type column have avoided this bug with "<column>=<key>=<value>" formatted str (not ":"). This patch fixes this problem and enable to parse the correct format value. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25ovs/vsctl: Add missing Controller commands in OVS v2.6.0IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25ovs/vsctl: Add missing Port commands in OVS v2.6.0IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25ovs/vsctl: Add missing Interface commands in OVS v2.6.0IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25ovs/vsctl: Add missing Bridge commands in OVS v2.6.0IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25ovs/vsctl: Sort out commands orderIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25ovs/bridge: Add APIs for missing Database commandsIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-10-25ovs: Add API corresponding to ovs-vsctl remove commandIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>