summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2014-10-14oxm_fields: Add commentsYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-14oxm_fields: Avoid shadowing python builtinYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-14travis: Run tests via toxYAMAMOTO Takashi
Also, run pep8 in a separate environment. The way to specify python versions might seem awkward. (Well, it seems so to me.) But it follows one of examples referenced in the official documentation: http://docs.travis-ci.com/user/languages/python/ https://github.com/twisted/klein/blob/master/.travis.yml Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-14test_addrconv: Fix a way to import the tested moduleYAMAMOTO Takashi
I'm not quite sure how it happens to work with the current test environment. But the current coding doesn't work when running via testr probably due to different PYTHONPATH. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-14test_parser: Make this independent from test environment pathYAMAMOTO Takashi
To make this able to run via testr. Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-14tox.ini: Add pep8 environmentYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-14pyang_plugins: pep8 style fixYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-11bgp: fix pep8 warningsFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-11bgp: supporting loopback interface as neighbour_source_address for iBGPToshiki Tsuboi
In generally, iBGP session is established between loopback interfaces. Therefore, we need to specify loopback interface as neighbour_source_address. This parameter is just like update-source command in cisco router. Signed-off-by: Toshiki Tsuboi <t.tsubo2000@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-10bfdlib: follow TTL/hop limit in RFC5881 explicitly.Wei-Li Tang
Signed-off-by: Wei-Li Tang <alextwl@xinguard.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-10doc: add lib.packet.bfd classes to library_packet_ref.Wei-Li Tang
Signed-off-by: Wei-Li Tang <alextwl@xinguard.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-10lib: add IPv4 single hop BFD (RFC5881) support.Wei-Li Tang
Signed-off-by: Wei-Li Tang <alextwl@xinguard.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-10unit test for lib.packet.bfdWei-Li Tang
Signed-off-by: Wei-Li Tang <alextwl@xinguard.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-10packet lib: add BFD support.Wei-Li Tang
Signed-off-by: Wei-Li Tang <alextwl@xinguard.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-10ofctl_v1_0/2/3: check lock timeout by lock.is_set().Wei-Li Tang
send_stats_request never catches hub.Timeout exception because it has been caught by the event wait function itself. Signed-off-by: Wei-Li Tang <alextwl@xinguard.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-09test: add unittests for of1.3 parserMinoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-09of12/3: support setting the oxm_value to OFPVID_NONEMinoru TAKAHASHI
In openflow spec 1.2 and 1.3.4, in order to match only packets without a VLAN tag, the value of OFPXMT_OFB_VLAN_VID must be set to OFPVID_NONE (0x0000). Old API of ofproto_v1_2/3_parser is now enabled to setting the oxm_value to OFPVID_NONE(0x0000) as follows: e.g.) match = ofproto_v1_2_parser.OFPMatch() match.set_vlan_vid_none() Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-09ofproto_v1_4_parser: Handle experimenter OXMs in TableFeaturesYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-09ofproto_v1_3_parser: Handle experimenter OXMs in TableFeaturesYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-09oxm_fields: Add a commentYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-09bgp: support next_hop_selfHiroshi Yokoi
Support next_hop_self. BGPSpeaker can replace a path's next_hop address with its own address when it sends the path to iBGP peer. Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-10-02Ryu 3.14FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-30doc: Add ryu.app.ofctl_rest documentYusuke Iwase
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-30of: Fix name of class member variablesIWASE Yusuke
Fix name of class member variables in OFPMeterFeaturesStats to reflect OpenFlow Specification. Accordingly, fix json pattern files for unit tests. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-27gui_topology: fix to work using WebSocketYoshiharu Yamashita
I midified ryu.topology.js to dinamicaly add or remove switch using WebSocket on Ryu Topology Viewer. Signed-off-by: Yoshiharu Yamashita <dyson.yamashita@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-27bgp: ignore link-local addressHiroshi Yokoi
According to RFC 2545, both a global address and a link-local address can be sent as a next_hop address in BGPUpdate message. Since the link-local address is not needed in Ryu BGP, Ryu BGP ignore it if the address family is IPv6 unicast. Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-27bgp: local preference support IPv6, VPNv4/v6 route familyHiroshi Yokoi
local preference supports IPv6 and VPNv4/v6 route family. sorry, previous patch contains pep8 warnings, so I cleaned them. Please discard previous one. Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-27Improve debug messages for unsupported request Log correct debug messageSriram Natarajan
Signed-off-by: Sriram Natarajan <natarajan.sriram@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-27Fix spell check in group feature message Maintain name consistency in meter ↵Sriram Natarajan
type in Meter Features message in OF 1.3 Add length field in group statistics reply in OF 1.2 Signed-off-by: Sriram Natarajan <natarajan.sriram@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-27sw test tool: fix an error caused by changing enum name in of1.4Minoru TAKAHASHI
In of1.4 spec, enum name has been changed as follows: of1.3.4 spec: OFPR_NO_MATCH = 0, / * No matching flow (table-miss flow entry). * / of1.4 spec: OFPR_TABLE_MISS = 0, / * No matching flow (table-miss flow entry). * / Along with this change, AttributeError has occurred in the process of comparison of the received message. This patch fixes this problem. Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-27ofctl: Add default value to type field of OFPGroupModYusuke Iwase
In OF1.2 and OF1.3 Spec, the group type need not be specified for the group delete request. However, an error occurs at mod_group_entry in ofctl_v1_[23].py without specifying group type to delete a group entry. This patch adds default value to type field of OFPGroupMod at mod_group_entry in order to reflect OpenFlow Specification. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-18of: Add missing fields in OpenFlow statistics messagesSriram Natarajan
update statistics structure to reflect OpenFlow specification. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-18of: Fix Enum Names and ValuesSriram Natarajan
Fix Enum Names and Values in OpenFlow Header files Update no matching name in packet-in reason as specified in OpenFlow 1.4 Update queeu stats name in in multipart type as specified in OpenFlow 1.4 Add additional constants as defined in OpenFlow 1.4 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-18of: Fix Enum Name for Bad Instruction Code Corrected Reset Count enum nameSriram Natarajan
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-12bgp: local preference supportHiroshi Yokoi
add local preference support in bgp. It is possible to apply local preference to specific paths by using AttributeMap. Unfortunately this patch supports only IPv4 path and I'm going to start writing patches for other route families after this. Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-12sw test tool: add unit testMinoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-12sw test tool: add a comment about specifying the port number supportMinoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-12sw test tool: support specifying the port numberMinoru TAKAHASHI
You can specify the port number in the options when sw test tool is started. The example is as follows: ryu-manager --test-switch-target_recv_port 4 (default:1) --test-switch-target_send_port_1 5 (default:2) --test-switch-target_send_port_2 6 (default:3) --test-switch-tester_send_port 7 (default:1) --test-switch-tester_recv_port_1 8 (default:2) --test-switch-tester_recv_port_2 9 (default:3) ryu/tests/switch/tester.py Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-12ofctl_v1_0: correct flow modify messageMinoru TAKAHASHI
following fields is not set at mod_flow_stats command: * out_port, buffer_id this patch fixes this problem. Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-12ryu.cfg: Fix a commentYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-12ofa_neutron_agent: Add a comment to explain what uses thisYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-12ofp_pktinfilter: add 'logging' optionSatoshi Kobayashi
When packet_in_filter discards a packet, it is always logging. However, it may be felt noisy. Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-07Snort Integrate:Che-Wei Lin
Remove the wrong way to get IP and bind with it. Binding with '0.0.0.0' and listen on all host. Update and fix typos in the snort_integrate.rst document. Fix the problem about pigrelay reconnect to ryu will not be accepted. Pigrelay is a program running on Snort that receive Snort alert from UNIX socket and send to Ryu via network socket. Signed-off-by: Che-Wei Lin <linton.tw@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-07bgp: rpc-api 'core.start' method in Network ControllerToshiki Tsuboi
When net_ctrl has received 'core.start' method through RPC-Session, if has occurred ERROR as follows . (rpc-client) $ PYTHONPATH=. ./rpc_cli.py --peers=bgps=localhost:50002 (Cmd) request bgps core.start [{'router_id': '10.0.0.7', 'local_as': 65000}] RPC ERROR 500.1 - 'waiter' (Ryu-Bgp) .. snip DEBUG 2014-09-06 08:29:03,160 net_ctrl 337 NetworkController started listening for connections... DEBUG 2014-09-06 08:29:21,277 base 345 Connect request received from client for port 127.0.0.1:45654 CRITICAL 2014-09-06 08:29:21,280 net_ctrl 121 RPC Session to ('127.0.0.1', 45654) started DEBUG 2014-09-06 08:29:21,281 net_ctrl 199 NetworkController processing outgoing request list. DEBUG 2014-09-06 08:29:21,281 net_ctrl 166 NetworkController started processing incoming messages DEBUG 2014-09-06 08:29:39,582 net_ctrl 373 Request from NetworkController<<: core.start [{'router_id': '10.0.0.7', 'local_as': 65000}] INFO 2014-09-06 08:29:39,582 base 208 API method core.start called with args: {'router_id': '10.0.0.7', 'local_as': 65000} ERROR 2014-09-06 08:29:39,599 base 226 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/api/base.py", line 221, in call return call(**kwargs) File "/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/api/core.py", line 40, in start waiter = kwargs.pop('waiter') KeyError: 'waiter' Signed-off-by: Toshiki Tsuboi <t.tsubo2000@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-04import BGPPathAttributeCommunities in peer managerJerry Cen
This is used along line 252 in peer_manager.py Signed-off-by: Jerry Cen <zhiweic@google.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-03bmp: add client information to each bmp messagePeng Xiao
Differentiate BMP messages from different BMP clients, and modify the debug logg ing message for client connected and disconnected. Signed-off-by: Peng Xiao <xiaoquwl@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-01Ryu 3.13FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-01ws_topology: bugfix an event is droppedSatoshi Kobayashi
When SocketError occurs, an event may not be notified to an other client. It is because rpc_clients is changed in the loop. Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-01bgp: should not use dict comprehensionSatoshi Kobayashi
Dict Comprehension is available in Python 2.7+ but Ryu should work with Python2.6. Currently, It will become syntax error when we try to operate BGP of Ryu on the platform of Python2.6. Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-09-01Snort integrate: Add the snort lib supporting snort integration. Add an ↵John-Lin
sample application simple_switch_snort.py which can dump alert message. When there is a Snort alert message, Ryu will receive an event called EventAlert. You can easily define the event handler in the method which using ‘set_ev_cls’ decorator with snortlib.EventAlert parameter. The simple_switch_snort.py can install a flow that mirroring incoming packets to the snort's NIC which correspond the OpenFlow switch on port 3 (by default). There are two methods that sending alert message to Ryu. 1. Ryu and Snort are both on the same machine. Ryu receives alert message via Unix Domain Socket. 2. Ryu and Snort are separate on different machines. Ryu receives alert message via Network Socket. More detail see doc/snort_integrate.rst Signed-off-by: Che-Wei Lin <linton.tw@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>