summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2014-07-30ofproto_v1_4_parser: Remove a stale comment on OFPTableFeaturesStatsReplyYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-30ofproto_v1_3_parser: Remove a stale comment on OFPTableFeaturesStatsReplyYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-29bgp: make 'core.reset_neighbor' API asynchronouslyISHIDA Wataru
'core.reset_neighbor' was synchronous API and the caller had to wait until neighbor comes up. This behavior doesn't work well with rpc_cli. Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: add show neighbor command to ssh clientISHIDA Wataru
looks like, bgpd> show neighbor IP Address AS Number BGP State 10.0.0.1 64514 Established Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: refine and fix filter codeISHIDA Wataru
- change the name of the filter class from PrefixList to PrefixFilter to make it easy to understand the role of this class. - update docs - fix bugs Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: manage filter in a peer instance instead of rtconfISHIDA Wataru
rtconf is basically for static configuration and filter is dynamic and also specific configuration for peer instance. move filter things under peer instance, and change rtconf to do only static configuration things from a configuration file Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: create adjacent rib in peer instanceISHIDA Wataru
this will be used when in-bound and out-bound filter changed at runtime and to implement BMP(BGP monitering protocol) client Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: add in-filter functionISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: enable filter configuration via configuration fileISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: move filter class under info_base/ISHIDA Wataru
move filter class from bgpspeaker.py to info_base/base.py to fix the error shown below. $ sudo env PYTHONPATH=/home/wataru/ryu ~/ryu/bin/ryu run --config-file=~/etc/ryu01.conf ./application.py loading app ./application.py instantiating app ./application.py of RyuBGPSpeaker INFO 2014-07-21 06:14:48,066 base 207 API method core.start called with args: {'router_id': '10.10.0.1', 'label_range': (100, 100000), 'waiter': <ryu.lib.hub.Event object at 0x1a15dd0>, 'local_as': 64512, 'bgp_server_port': 179, 'refresh_max_eor_time': 0, 'refresh_stalepath_time': 0} Traceback (most recent call last): File "/home/wataru/ryu/bin/ryu", line 20, in <module> main() File "/home/wataru/ryu/ryu/cmd/ryu_base.py", line 75, in main subcmd.run(base_conf.subcommand_args) File "/home/wataru/ryu/ryu/cmd/ryu_base.py", line 58, in run self.entry(args=args, prog=prog) File "/home/wataru/ryu/ryu/cmd/manager.py", line 81, in main services.extend(app_mgr.instantiate_apps(**contexts)) File "/home/wataru/ryu/ryu/base/app_manager.py", line 486, in instantiate_apps t = app.start() File "/home/wataru/ryu/ryu/services/protocols/bgp/application.py", line 93, in start self._start_core(settings) File "/home/wataru/ryu/ryu/services/protocols/bgp/application.py", line 168, in _start_core call('core.start', waiter=waiter, **common_settings) File "/home/wataru/ryu/ryu/services/protocols/bgp/api/base.py", line 210, in call import all # noqa File "/home/wataru/ryu/ryu/services/protocols/bgp/api/all.py", line 4, in <module> import prefix File "/home/wataru/ryu/ryu/services/protocols/bgp/api/prefix.py", line 29, in <module> from ryu.services.protocols.bgp.core import BgpCoreError File "/home/wataru/ryu/ryu/services/protocols/bgp/core.py", line 37, in <module> from ryu.services.protocols.bgp import core_managers File "/home/wataru/ryu/ryu/services/protocols/bgp/core_managers/__init__.py", line 19, in <module> from peer_manager import PeerManager File "/home/wataru/ryu/ryu/services/protocols/bgp/core_managers/peer_manager.py", line 6, in <module> from ryu.services.protocols.bgp.peer import Peer File "/home/wataru/ryu/ryu/services/protocols/bgp/peer.py", line 32, in <module> from ryu.services.protocols.bgp.bgpspeaker import PrefixList File "/home/wataru/ryu/ryu/services/protocols/bgp/bgpspeaker.py", line 56, in <module> from ryu.services.protocols.bgp.application import RyuBGPSpeaker File "/home/wataru/ryu/ryu/services/protocols/bgp/application.py", line 64, in <module> def_desc='Unknown bootstrap exception.') File "/home/wataru/ryu/ryu/services/protocols/bgp/base.py", line 105, in add_bgp_error_metadata 'already defined.' % (code, sub_code)) ValueError: BGPSException with code 300 and sub-code 1 already defined. Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28ofctl_v1_2/3: fix unsuitable logMinoru TAKAHASHI
when using action type below, the log unsuitable is outputted: Unknown action type: [action type] * GOTO_TABLE, WRITE_METADATA, METER(only ofctl_v1_3.py) this patch fixes this problem. Reported-by: jalee <jalee@inno-tech.com.tw> Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28ofctl_v1_2/3: fix tcp_dst/src match fieldsMinoru TAKAHASHI
when enclosed the value of "ip_proto" in double quotes, following match fields is not set at mod_flow_stats command: * tcp_dst, tcp_src this patch fixes this problem. Reported-by: jalee <jalee@inno-tech.com.tw> Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28unit test for ofctl_v1_2/3Minoru TAKAHASHI
Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: add neighbor_reset method to bgpspeakerISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: remove an unused variable from bgpspeakerISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgpspeaker: refine logsISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: make marker private variableISHIDA Wataru
stop showing when stringified because it's noisy Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-28bgp: fix bug when restart neighborISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-23bgp: add neighbor_updateHiroshi Yokoi
added neighbor_update method to BGPSpeaker class. Currently only MED value can be changed. Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-23bgp: add med parameter to neighbor_addHiroshi Yokoi
Sorry, I changed parameter name for MED to uniform with add_vrf. I resend patches for neighbor_add method and neighbor_update and please ignore the patches that I sent before. Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-23bgp: shut up runtime warning due to configuration file loadingISHIDA Wataru
this patch shut up the warning shown below /home/wataru/etc/bgpconf01.py:1: RuntimeWarning: Parent module 'bgpspeaker' not found while handling absolute import import os Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-23bgp: fix bug in net_ctrl listen_tcpISHIDA Wataru
due to fdce89a0, _listen_tcp returns tuple. Reported-by: 坪井俊樹 <t.tsubo2000@gmail.com> Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-18bgp: fix logic for checking BGP capabilityHiroshi Yokoi
BGPOpen that is set to sent_open_msg and recv_open_msg doesn't have caps and BGP capabilities are stored in opt_param as List. I changed the way of checking BGP capabilities. Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-18bgp: fix the way of getting RouteFamily objectHiroshi Yokoi
RouteFamily objects are treated as a singleton object. However they are created in peer.py, so I added method to get RouteFamily object in bgp.py and changed codes to use it. Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-17bgp: add out-filter functionHiroshi Yokoi
Added out-filter function to Ryu BGPSpeaker. It supports IPv4 and IPv6. Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-17ofctl_rest: enable getting Description of a porttakahashi.minoru
this patch makes ofctl_rest enable getting Description of a port. usage) URI: /stats/portdesc/<dpid> method: GET e.g. ) curl http://localhost:8080/stats/portdesc/1 {"1": [{"hw_addr": "c6:d8:19:4a:e1:4f", "curr": 0, "supported": 0, "max_speed": 0, "advertised": 0, "peer": 0, "port_no": 4294967294, "curr_speed": 0, "name": "s1", "state": 1, "config": 1}, {"hw_addr": "8e:96:a1:14:d8:a1", "curr": 2112, "supported": 0, "max_speed": 0, "advertised": 0, "peer": 0, "port_no": 1, "curr_speed": 10000000, "name": "s1-eth1", "state": 0, "config": 0}]} Signed-off-by: TAKAHASHI Minoru <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-17ofctl_rest: support Port Modification Messagetakahashi.minoru
this patch makes ofctl_rest enable use of Port Modification Message. usage) URI: /stats/portdesc/modify method: POST the message body is as follows: dpid port_no (default:0) config (default:0) hw_addr (default:automatic-setting) mask (default:0) advertise (default:automatic-setting) e.g. ) curl -X POST -d '{"dpid": 1, "port_no": 1, "mask": 0b0000001, "config": 0b0000001}' http://localhost:8080/stats/portdesc/modify Signed-off-by: TAKAHASHI Minoru <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-17ws_topology: fix typoSatoshi Kobayashi
No spec change. The issue occurs at the time of "one_way=True" Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-17Correct tcp option values in the test setHiroaki KAWAI
"\x11"*4 is an invalid value for TCP option, because it would be decoded as Kind=17 and Length=17, but actual size is 4. If we'd like to set some non-zero value for TCP option here, Kind=1(NOOP) is better. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-17ofctl_v1_2/3: fix POP_MPLS action and some match fieldstakahashi.minoru
The following causes an error at mod_flow_entry command - ofctl_v1_2.py * match field: metadata, mpls_label - ofctl_v1_3.py * match field: in_phy_port and the following causes an error at get_flow_stats command - ofctl_v1_2.py * action: POP_MPLS * match field: metadata, ipv6_nd_target - ofctl_v1_3.py * action: POP_MPLS * match field: ipv6_nd_target this patch fixes them. Signed-off-by: TAKAHASHI Minoru <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-10adding FloatOpt to the config parserAndrew Ragusa
This patch just adds the ability to parse Float values from a config using oslo.config.cfg FloatOpt class Signed-off-by: AJ Ragusa <aragusa@grnoc.iu.edu> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-07add --pid-file option to cliISHIDA Wataru
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-07bgp: support specifying nexthop per prefixFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
2014-07-07pip-requires: gui_topology requires webob>=1.2Hisaharu Ishii
gui_topology imports webob.static.DirecoryApp which was added since webob 1.2 Signed-off-by: Hisaharu Ishii <ishii.hisaharu@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-03bgp: fix send_notificaiton crashFUJITA Tomonori
self._localname() is invalid before a connection establishes. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-03Ryu 3.11FUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-03ospf: describe prefix in one attribute 'prefix' for ease of useISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-03ospf: add segment routing opaque typesISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-03ospf: fix bug in encodingISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-03ospf: support for opaque messageISHIDA Wataru
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-07-01bgp: support md5 authentication for re-active sessionsFUJITA Tomonori
For now, only Linux is supported. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-06-30bgp: support md5 authentication for pro-active sessionsFUJITA Tomonori
For now, only Linux is supported. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-06-30bgp: fix withdraw in EventPrefix notificationFUJITA Tomonori
A lost path's is_withdraw is not True so we can't use it. Let's pass path and is_withdraw information separately to emit_signal(). Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Reviewed-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
2014-06-30sw test too: use assured Forwarding behavior DSCP value for dscp_remarkHiroaki KAWAI
OpenFlow spec describes "DSCP values that do not encode a drop precedence are not modified". Diffserv Assured Forwarding described in rfc2597(+rfc3260) has DSCP values which encodes "drop precedence". I think we'd better test OFPMBT_DSCP_REMARK works on AF21 -> AF22 rating, for example. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-06-30bgp: support specifying next hop for neighborFUJITA Tomonori
neighbor_add method takes 'next_hop' parameter. If not specified, like before, host's ip connected to the neighbor is used as a next hop. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-06-30bgp: add IPv6 advertisement supportFUJITA Tomonori
You can advertize IPv6 addresses to IPv6 neighbors. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-06-30packet/bgp: fix BGPPathAttributeMpReachNLRI next_hop parser and serializerFUJITA Tomonori
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-06-30bgp: clean up getpeername() and getsockname() usageFUJITA Tomonori
The current code calls getpeername() and getsockname() at lots of places. The formats of the return values of getpeername() and getsockname() are different between ipv4 and v6. So the code became messy. Calling getpeername() and getsockname() at one place and caching the results is ideal. But that needs some refactoring. This patch is kinda halfway. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-06-29Initializing the variable 's' so that the get_desc_stats() call does not ↵Srini Seetharaman
cause an exceptions when there are no messages Signed-off-by: Srini Seetharaman <srini.seetharaman@gmail.com> Reviewed-by: TAKAHASHI Minoru <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2014-06-29Add a small library to deal with TCP-MD5 socket optionYAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>