summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2016-12-10stringify: Add optional attributes list to be displayedIWASE Yusuke
Currently, propery type attributes are ignored in the str and json representations. If we want to include them, it is required to override to_jsondict() and from_jsondict() methods. This patch adds the optional attributes list to specify the addtional attributes included in the str and json representations. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10packet/bgp: Support multiple BGP messages in a packetIWASE Yusuke
This patch fixes to BGPMessage.parser() to return the reference to its own class and to support multiple BGP messages in a single packet. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10BGPSpeaker: Support Ethernet A-D Route and Ethernet Segment RouteShinpei Muraoka
This patch supports Ethernet Auto-discovery Route and Ethernet Segment Route in BGPSpeaker. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10packet/bgp: Fix the ESI Label Extended Community to use mpls_labelShinpei Muraoka
Currently, ESI Label in BGPEvpnEsiLabelExtendedCommunity has 3 byte integer set. This patch fixes to use the mpls_label for ESI Label of BGPEvpnEsiLabelExtendedCommunity. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-05Ryu 4.9FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-24scenario test: Fix the wrong retry check in command executionfumihiko kakuma
Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-24Enable to run a scenario test with a specific python versionfumihiko kakuma
Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-18rest_firewall: Compare reserved port in str representationIWASE Yusuke
Along with the update of ofctl_rest, the output representation of the port number in the OUTPUT action has been changed. e.g.) In case of the OUTPUT action to the OFPP_NORMAL port OLD: 'OUTPUT:4294967290' # OFPP_NORMAL = 0xfffffffa NOW: 'OUTPUT:NORMAL' Currently, rest_firewall suposes the OLD format, and it will fail to compare the port number, then all firewall rules will be shown with "actions": "DENY". This patch fixes to compare the port number in the NEW format and fixes this problem. Reported-by: Hong Panha <c011361065@edu.teu.ac.jp> Reported-by: Ruy Takata <ruy.takata@gmail.com> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-18test_vsctl: Use osrg/ryu-book image as Mininet containerIWASE Yusuke
This patch fixes test_vsctl.py to use osrg/ryu-book image as Mininet container and shortens the testing hours. Also, this patch removes the Dockerfile for building the Mininet Docker image. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-18test_vsctl: Wait for loading OVS kernel moduleIWASE Yusuke
If the OVS kernel module is loaded at first time, it might take a few seconds. This patch add a sleep before sending OVSDB requests. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-18integrated/bgp: Use Ubuntu:16.04 for base imageIWASE Yusuke
Using osrg/ryu Docker image for the base image make it easy to build the image for the integrated tests, but the installed packages are remained on the site-packages unless they are explicitly uninstalled. This problem can cause the miss configured dependency when the requirment files are updated, for example. This patch fixes to use Ubuntu:16.04, which is the default for the base image, and to build the test image on the clean environment. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-18docker_base: Update base image to Ubuntu:16.04IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-15BGPSpeaker: Confirm SSH feature to be optionalIWASE Yusuke
paramiko, which python library is used in bgp.operator.ssh, is defined as the optional requirements. This patch avoid to import this library in BGPSpeaker by the default. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-15docker_base: Add missing requirements for test-requiresIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-11-15README: Use pip to resolve dependenciesIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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>