summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2016-12-10type_desc: Define TypeDisp class for re-usabilityIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10bgp_scenario_test/bgp: PylintIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10bgp_scenario_test/common: PylintIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10Delete an unnecessary functionfumihiko kakuma
Currently a scenario test doesn't use stream option of exec_on_ctn and this function requires extra module(docker-py). This patch deletes the unnecessary function. Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10Get some debug informationfumihiko kakuma
Get log for command execution error and ryu bgp app. Signed-off-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10Add DHCP options constants to DHCP libOmer Anson
Add DHCP options constants to DHCP lib for the following options: * Domain name option (15) * Interface MTU (26) * Classless route (121) These constants are used in Dragonflow, which uses ryu's DHCP lib to construct a DHCP responder. Signed-Off-By: Omer Anson <oaanson@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10lib/ofctl_v_*: Enable to filter flow stats by priorityIWASE Yusuke
OpenFlow Spec does not allow to filter flow entries by priority, but when with a large amount of flow entries, filtering by priority is convenient to get statistics efficiently. This patch enables lib/ofctl_v_* modules to filter flow stats by priority. This patch is suggested by China Shenzhen TICOMM Information Technology Co. Ltd. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10packet/bgp: Fix default of esi for IP Prefix routeIWASE Yusuke
"esi" value should be an instance of EvpnEsi subclass and not int type value, this patch fixes the default value to "None". Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10BGPSpeaker: ESI to be optional arg in MAC/IP Adv routeIWASE Yusuke
The ESI field should not be a route key for BGP processing in EVPN MAC/IP Advertisement route, this patch confirms "esi" is an optional argument for this route. 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 next_hop in BGPPathAttributeMpReachNLRIIWASE Yusuke
In case of the IPv6 address family in MP-BGP, NLRI might has multipule next_hop addresses (e.g., one is global unicast address and the other is link local unicast address). This patch fixes to support multipule next_hop addresses in MP-BGP NLRIs. For the backward compatibility, this patch make it to stor the first next_hop address as next_hop attribute and all next_hop addresses as next_hop_list. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10packet/bgp: Unpack mpls_label in BGPPathAttributePmsiTunnelIWASE Yusuke
The decoded mpls_labe should be return as a tuple of (mpls_labe, is_bos). This patch fixes to unpack the returned tuple. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
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>