summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2016-06-09BGPSpeaker: Fix unresolved references in Python3IWASE Yusuke
Additionally, this patch enforces the the explicit relative imports Reviewed-by: Fumihiko Kakuma <kakuma@valinux.co.jp> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-09BGPSpeaker: Support Per-Peer ASIWASE Yusuke
This patch enables to override the AS number of BGPSpeaker instance by the "local_as" argument of BGPSpeaker.neighbor_add(). e.g.) speaker = BGPSpeaker(as_number=65001, # the default AS number router_id='10.0.0.1', ...) speaker.neighbor_add(address='10.0.0.2', remote_as=65101, local_as=65002, # override AS number ...) Additionally, this patch fixes a typo and sorts the comments of BGPSpeaker.neighbor_add() method. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-09packet_data_generator3/gen: Add some NXAction packetsShinpei Muraoka
This patch adds the following test packet. - NXActionController - NXActionFinTimeout - NXActionNote Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-09ofproto/nicira_ext: Move the variable and method for Nicira ExtensionShinpei Muraoka
Move variable and method that exist in the ofproto_v1_0.py to the nicira_ext.py. Move the oxm_types that exists in the nx_match.py to the nicira_ext.py. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-09tests/test_parser_v10: Update test parameterShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-09ofproto/nx_actions: Update arguments to be compatible with ovs-ofctlShinpei Muraoka
This patch, update the methods that are to be specified in the NXM or OXM. Update the value specified in the bit format to the start and end formats. Update the following NXAction. - NXActionRegLoad - NXActionOutputReg - NXActionMultipath - NXActionBundle - NXActionBundleLoad - NXActionCT Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-09ofproto/ofproto_v1_0: Delete some NX actionsShinpei Muraoka
This patch deletes some NX Actions in ofproto_v1_0_parser and fixes to use actions in nx_actions.py. Together, delete Obsolete action in OVS. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-09ofproto/nx_actions: Porting the NX Action definition of ofproto_v1_0_parserShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-09ofproto/nx_actions: Update serialize and parseShinpei Muraoka
The serialize within each class has been changed to serialize_body. And serialize_body is executed by the serialize of NXAction. Also update the data format designated method in serialize_body and perse. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-09Extend OVSDB apiAlan Quillin
Adds more ovsdb methods for setting key/values to other_config and external_ids, adds bility to set the controller for a bridge, and adds the ability to create a new port/interface on a bridge Signed-off-by: Alan Quillin <alanquillin@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-05Fix RuntimeError of lldp_packet_in_handlerYi Tseng
Items should not be removed during iteration Error message ``` Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/ryu/base/app_manager.py", line 290, in _event_loop handler(ev) File "/usr/local/lib/python3.4/dist-packages/ryu/topology/switches.py", line 821, in lldp_packet_in_handler for host in self.hosts.values(): RuntimeError: dictionary changed size during iteration ``` Signed-off-by: Yi Tseng <a86487817@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-03Ryu 4.3FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-01nx_match: add tun_ipv6_{src,dst}Atzm Watanabe
Open vSwitch accepts NXM_NX_TUN_IPV6_SRC(109) and NXM_NX_TUN_IPV6_DST(110) since v2.5. Signed-off-by: Atzm Watanabe <atzm@iij.ad.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-01packet_data_generator3: Clear xid into zeroIWASE Yusuke
Because ovs-ofctl increments the xid field automatically, the xid of the generated packets is set to be 0x02. So, we should specify {"xid": 2} in json data, but when Ryu dumping json data from message instance, "xid" are omitted and this causes assertion error in test_parser.py This patch enables to clear the xid filed in the generated packets and solves this problem. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-01ofproto: Implement OFPFlowMod parserIWASE Yusuke
Currently, Ryu does not have the parser for Controller-to-Switch one-way messages, but when testing Actions or Match fields, OFPFlowMod parser is convenient in order to test them. This patch implements the parser for OFPFlowMod messages. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-01doc: Add PCAP 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-06-01test_pcaplib: Add unit tests for pcaplibIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-01pcaplib: 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-06-01test_bgp: Enable to test parser with pcap fileIWASE Yusuke
Currently, test_bgp uses packet_data/bgp4/* files which contain only BGP protocol binary data. This patch convert packet_data file into pcap file and enable to test BGP packet library with pcap file. With pcap file, we can easily check packet data validity by using Wireshark or other packet sniffer tools. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-01packet/bgp: Reduce Pylint warningsIWASE Yusuke
This patch removes the following Pylint warnings: - anomalous-backslash-in-string - arguments-differ - bad-builtin - bad-staticmethod-argument - superfluous-parens - super-init-not-called - unidiomatic-typecheck - unused-variable - wrong-import-order Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-01bgp: fix typosIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-01test-requires: Update to use the latest PylintIWASE Yusuke
Current specified Pylint(==0.25.0) are not enough to support Python 3. This patch updates test-requires to use the latest one. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-06-01test-requires: Add tinyrpc for RPC controller in wsgiIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-26Make ovs optionalYAMAMOTO Takashi
Requiring a dev version of ovs here causes version conflict issues for projects which don't want to use dev versions of libraries. [1] Make it optional and document it in README instead. [1] https://bugs.launchpad.net/neutron/+bug/1584858 Signed-off-by: YAMAMOTO Takashi <yamamoto@ovn.org> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-23packet: Add VXLAN parserIWASE Yusuke
IANA has assigned the value 4789 for the VXLAN UDP destination port, this patch registers dst_port 4789 into UDP packet parser. Additionally, early adopters might be using UDP dst_port 8472, we register this number for the backward compatibility. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-18packet/bgp: Add missing __hash__ functionIWAMOTO Toshihiro
This commit fixes up the commit 7d42aecb, which added __eq__ without adding __hash__ and left some copy-paste error. Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-18controller: Add backward compatibility for 6633 portIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-18Update default OpenFlow port to 6653IWASE Yusuke
IANA has registered TCP port 6653 for OpenFlow, but 6633 was the de facto standard for a long while. So some applications might be using 6633 as the default. But now, Mininet has adopted port 6653 as the default, we migrate to port 6653 too. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-18BGP: Make RouteFamily class hashableIWASE Yusuke
In Python 3, the key objects of dict must be hashable, but RouteFamily class does not have '__hash__' method. This patch adds this method. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-18doc: Remove warnings when building doc pagesIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-18doc: Move Ryu App API doc into each source codeIWASE Yusuke
To improve maintainability, this patch moves the descriptions of "Ryu application API" into each source code. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-18network: Fix unresolved referenceIWASE Yusuke
Because ryu/app/rest_nw_id.py has been deleted, the reference for NW_ID_UNKNOWN can not be resolved now. This patch fixes this problem. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-18doc: Add description for EventOFPPortStateChangeIWASE Yusuke
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-18controller: Implement EventOFPPortStateChangeIWASE Yusuke
To notify ofp_port state change, this patch implements ofp_event.EventOFPPortStateChange. This event performs like EventOFPPortStatus, but ofp_handler will send this event after updating "ports" dict of datapath instances. And, this patch suppresses the warning when user app accessing to datapath.ports for backward compatibility. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-16doc/app/ofctl_rest: Remove unused match fieldShinpei Muraoka
This patch removed unused match field in Openflow1.2 or later. The following is removed match filed. - dl_dst - dl_src - dl_type - dl_vlan - nw_src - nw_dst - nw_proto - tp_src - tp_dst Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-16doc/source/conf: Set the False to SmartyPantsShinpei Muraoka
This patch will not be converted to quotes and dashes to typographically correct entities. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-16doc/app/ofctl_rest: Add a description for openflow1.5Shinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-16doc/app/ofctl_rest: Update the optional parameter of the messageShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-16doc/app/ofctl_rest: Add pbb_uca to match fieldShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-16doc/app/ofctl_rest: Update the description method of ExampleShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-16doc/app/ofctl_rest: Add Openflow versionShinpei Muraoka
This patch adds Openflow version to the Match message and Actions message. Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-13Bump version requirement for oslo.config, given usage of min parameter to IntOptVictor J. Orlikowski
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-13tox: Integrate Coveralls.ioIWASE Yusuke
To check the code coverage of the unit tests on web, this patch add integration of Coveralls.io (https://coveralls.io/). Usage: 1. Sign in to Coveralls.io with your GitHub account. 2. Add repos at your account page. 3. Execute tests on Travis-CI. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-13tox: Add Python 3.5IWASE Yusuke
>From Ubuntu 16.04 LTS, the default version of Python 3 has been upgraded to 3.5.1. e.g.) $ python3 --version Python 3.5.1+ This patch enables to run unit tests on Python 3.5 environment. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-13test_ofctl: Add test cases for new Actions of of15Shinpei Muraoka
This patch adds the test cases for the following actions. - Copy Field Action - Meter Action Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-13test_ofctl_rest: Add unit tests for ofctl_restMinoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-13test_ofctl: Add test cases for OpenFlow 1.5Minoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-13ofctl_rest: Support OpenFlow 1.5Minoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-13lib/ofctl: Support OpenFlow 1.5Minoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2016-05-13ofproto_v1_5_parser: Fix serialized length of OFPActionCopyFieldShinpei Muraoka
Signed-off-by: Shinpei Muraoka <shinpei.muraoka@gmail.com> Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>