summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2017-01-14packet lib: adding DHCPv6 supportOlivier DESNOE
Signed-off-by: Olivier DESNOE <olivier.desnoe@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2017-01-14doc: library_packet_ref: Add reference of openflowShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2017-01-14test_openflow: Add unit tests for OpenFlow packet libraryShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2017-01-14packet lib: Add packet library of OpenFlowShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2017-01-06Ryu 4.10FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2017-01-06library_packet_ref: Update dhcp reference methodShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2017-01-06test_dhcp: Extend unit test for fragmented optionsShinpei Muraoka
Also, this patch removes the test case for __init__() with "hlen" is zero, because "hlen" should be recalculated at serialization. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2017-01-06packet/dhcp: Revert b'str' conversionShinpei Muraoka
This patch partially reverts 75e8c58916524243e6796e73c371981e14fff6ee and 536a42d8c1c0be48e78d5f29b6fd55a38012d953. dhcp.boot_file is ascii. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2017-01-06packet/dhcp: Support fragmented optionsShinpei Muraoka
Currently, if you set fragmented option data for the packet library of dhcp, Traceback occurs. This patch fixes to analyze up to options not corrupting data. The remaining corrupting data will be appended at the end of option list. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29BGPSpeaker/net_ctrl: Support multiple RPC sessionsIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29BGPSpeaker/base: Stop child activity by nameIWASE Yusuke
This patch enables Activity base to stop the child activity by name. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29BGPSpeaker/net_ctrl: Move _send_*_response() functionIWASE Yusuke
This patch moves _send_*_response() function into RpcSession class to use socket wrapper methods for maintaining the connection state safely. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29BGPSpeaker/net_ctrl: Close RPC session when disconnectedIWASE Yusuke
This patch fixes net_ctrl to check whether socket is connected and to close RPC session when disconnected by RPC peer. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29BGPSpeaker/net_ctrl: Pylint and fixes of typosIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29rpc_cli: Avoid to use eval()IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29rpc_cli: Close peer connections when exiting promptIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29rpc_cli: Enable to execute a single commandIWASE Yusuke
This patch enables 'ryu rpc-cli' command to execute a single command not interactively. e.g.) $ ryu rpc-cli --peers=bgp=localhost:50002 \ --command='request bgp operator.show [{"params": ["rib", "ipv4"]}]' This feature is convenient to controle BGPSpeaker states via shell commands, for example. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29ryu/app: Use Request/Response wrappers in REST AppsIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29wsgi: Wrapper classes of Request/Response in WebObIWASE Yusuke
With WebOB 1.7.0+, "charset" can not be omitted when constructing Request/Response instance and exception will occur if omitted. This patch adds wrapper classes of Request/Response for setting charset="UTF-8" by default. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29library_bgp_speaker_ref: Fix unexpected unindentShinpei Muraoka
This patch fixes unexpected unindent that occur when building. Also, add ESI type to be specified for argument esi of evpn_prefix_add and evpn_prefix_del. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29optional-requires: Specify lxml version for OpenStackIWASE Yusuke
OpenStack added "lxml!=3.7.0" into its requirements file, and this patch adds the same specification for avoiding VersionConflict error while installing. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29ryu-client: Remove client for OpenStack plugin/agentIWASE Yusuke
This patch removes remaining of OpenStack Ryu plugin and agent. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29doc: Deprecate OpenStack plugin refIWASE Yusuke
Because the Ryu plugin for OpenStack was deprecated and the description in "using_with_openstack.rst" is obsoleted, this patch removes the link to this page from the index and adds the cautions for it. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29test_geneve: Add unit tests for GeneveShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29packet lib: Add packet library of GeneveShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29test_gre: Add unit tests for NVGREShinpei Muraoka
This patch adds test case of NVGRE. Also, fixes unit tests for GRE to the method using packet capture. For that reason, add packet capture files. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29packet/gre: Support NVGRE extensionShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29doc: library_packet_ref: Update referencesShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-29rest_router: Fix ARP THA in reply messageIWASE Yusuke
Currently, rest_router sends ARP reply messages composing own MAC address in Target MAC Address, and both Sender/Target MAC address are MAC address of rest_router. So, with this reply messages, Wireshark will report "Duplicate IP address detected". This patch fixes this problem. This problem was reported 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-14install_docker_test_pkg: Remove unnecessary pip pacakgesIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-14tox: Move dependencies installation to .travis.ymlIWASE Yusuke
This patch moves dependencies installation in tox.ini to .travis.yml in order to avoid to install dependencies repeatedly when running tox tests on locally. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-14bgp_scenario_test: Switch Python versionIWASE Yusuke
With Ubuntu base Docker image, Python 2.7 will always be used on Scenario test containers if we just install "python-*". This patch fixes to switch base Docker image and enables to use the specific Python version. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-14test_requirements: Test cases for checking requirementsIWASE Yusuke
This patch adds the test cases for checking whether the requirements of Ryu has no conflict with that of other projects (e.g., the global requirements of OpenStack) Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-14tox: Test ryu-manager without additional requirementsIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10pip: Add doc requirements for convenienceIWASE Yusuke
This patch adds the requirements file for building the Ryu documentation. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10library_bgp_speaker_ref: Fix unexpected indentationIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10doc: Add MRT file library referenceIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10test_mrtlib: Add unit tests for MRT paserIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10mrtlib: Add parser for MRT format [RFC6396]IWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-12-10packet/ospf: 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-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>