Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Str keyword Num keyword Str Call AttributeLoad NameLoad attr Str keyword Str keyword Str Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str ClassDef bases NameLoad body Expr Str Pass decorator_list Call NameLoad keyword NameLoad keyword Num keyword Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str NameLoad body Expr Call NameLoad AttributeLoad NameLoad attr If Call NameLoad NameLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot Call NameLoad NameLoad Str NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr ListLoad Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad keyword Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad keyword Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr UnaryOpNot NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str TryExcept body Return Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad keyword Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad keyword BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad Str keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body TryExcept body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Continue decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body TryExcept body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Continue decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad For NameStore NameLoad body TryExcept body Expr Call NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Continue decorator_list decorator_list
N/A N/A 
  Defines bases classes to create a BGP application.
 N/A imp N/A logging N/A traceback oslo_config cfg ryu.lib hub ryu.base.app_manager RyuApp ryu.services.protocols.bgp.api.base call ryu.services.protocols.bgp.base add_bgp_error_metadata ryu.services.protocols.bgp.base BGPSException ryu.services.protocols.bgp.base BIN_ERROR ryu.services.protocols.bgp.core_manager CORE_MANAGER ryu.services.protocols.bgp net_ctrl ryu.services.protocols.bgp.rtconf.base RuntimeConfigError ryu.services.protocols.bgp.rtconf.common BGP_SERVER_PORT ryu.services.protocols.bgp.rtconf.common DEFAULT_BGP_SERVER_PORT ryu.services.protocols.bgp.rtconf.common DEFAULT_REFRESH_MAX_EOR_TIME ryu.services.protocols.bgp.rtconf.common DEFAULT_REFRESH_STALEPATH_TIME ryu.services.protocols.bgp.rtconf.common DEFAULT_LABEL_RANGE ryu.services.protocols.bgp.rtconf.common LABEL_RANGE ryu.services.protocols.bgp.rtconf.common LOCAL_AS ryu.services.protocols.bgp.rtconf.common REFRESH_MAX_EOR_TIME ryu.services.protocols.bgp.rtconf.common REFRESH_STALEPATH_TIME ryu.services.protocols.bgp.rtconf.common ROUTER_ID ryu.services.protocols.bgp.rtconf neighbors ryu.services.protocols.bgp.rtconf vrfs ryu.services.protocols.bgp.utils.validation is_valid_ipv4 ryu.services.protocols.bgp.operator ssh N/A N/A logging.config dictConfig N/A N/A N/A Exception N/A ryu.services.protocols.bgp.utils.dictconfig dictConfig N/A LOG N/A N/A logging getLogger bgpspeaker.application N/A CONF N/A cfg CONF N/A N/A N/A CONF register_opts N/A N/A N/A cfg IntOpt bind-port default 50002 help rpc-port N/A N/A cfg StrOpt bind-ip default 0.0.0.0 help rpc-bind-ip N/A N/A cfg StrOpt bgp-config-file default None help bgp-config-file ApplicationException N/A BGPSException N/A N/A Specific Base exception related to `BSPSpeaker`. N/A N/A N/A add_bgp_error_metadata code BIN_ERROR sub_code 1 def_desc Unknown bootstrap exception. RyuBGPSpeaker N/A RyuApp N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A self bind_ip N/A N/A RyuBGPSpeaker validate_rpc_ip N/A CONF bind_ip N/A N/A self bind_port N/A N/A RyuBGPSpeaker validate_rpc_port N/A CONF bind_port N/A N/A self config_file N/A CONF bgp_config_file N/A N/A N/A N/A super RyuBGPSpeaker self __init__ args kwargs N/A start N/A N/A self N/A N/A N/A N/A self config_file N/A N/A N/A N/A LOG debug Loading config. from settings file. N/A settings N/A N/A self load_config N/A self config_file N/A N/A getattr settings LOGGING None N/A N/A N/A dictConfig N/A settings LOGGING N/A N/A getattr settings BGP None N/A N/A N/A N/A self _start_core settings N/A N/A N/A getattr settings SSH None None N/A N/A N/A N/A hub spawn N/A N/A ssh SSH_CLI_CONTROLLER start None N/A settings SSH N/A t N/A N/A hub spawn N/A N/A net_ctrl NET_CONTROLLER start N/A N/A N/A net_ctrl NC_RPC_BIND_IP N/A net_ctrl NC_RPC_BIND_PORT N/A self bind_ip N/A self bind_port N/A N/A N/A LOG debug Started Network Controller N/A N/A N/A N/A super RyuBGPSpeaker self start N/A t N/A validate_rpc_ip N/A N/A cls ip N/A N/A N/A Validates given ip for use as rpc host bind address.
         N/A N/A N/A is_valid_ipv4 ip N/A N/A N/A ApplicationException desc Invalid rpc ip address. N/A ip N/A classmethod validate_rpc_port N/A N/A cls port N/A N/A N/A Validates give port for use as rpc server port.
         N/A N/A port N/A N/A N/A ApplicationException desc Invalid rpc port number. N/A N/A isinstance port str N/A N/A port N/A int port N/A port N/A classmethod load_config N/A N/A self config_file N/A N/A N/A Validates give file as settings file for BGPSpeaker.

        Load the configuration from file as settings module.
         N/A N/A N/A config_file N/A N/A isinstance config_file str N/A N/A N/A ApplicationException Invalid configuration file. N/A N/A N/A N/A N/A imp load_source settings config_file N/A N/A N/A Exception N/A e N/A N/A N/A ApplicationException desc N/A str e N/A _start_core N/A N/A self settings N/A N/A N/A Starts BGPS core using setting and given pool.
         N/A routing_settings N/A N/A N/A settings BGP get routing N/A common_settings N/A N/A N/A N/A N/A common_settings N/A LOCAL_AS N/A N/A routing_settings pop LOCAL_AS N/A N/A common_settings N/A ROUTER_ID N/A N/A routing_settings pop ROUTER_ID N/A N/A N/A KeyError N/A e N/A N/A N/A ApplicationException desc N/A Required minimum configuration missing %s e N/A N/A common_settings N/A BGP_SERVER_PORT N/A N/A routing_settings get BGP_SERVER_PORT DEFAULT_BGP_SERVER_PORT N/A N/A common_settings N/A REFRESH_STALEPATH_TIME N/A N/A routing_settings get REFRESH_STALEPATH_TIME DEFAULT_REFRESH_STALEPATH_TIME N/A N/A common_settings N/A REFRESH_MAX_EOR_TIME N/A N/A routing_settings get REFRESH_MAX_EOR_TIME DEFAULT_REFRESH_MAX_EOR_TIME N/A N/A common_settings N/A LABEL_RANGE N/A N/A routing_settings get LABEL_RANGE DEFAULT_LABEL_RANGE N/A waiter N/A N/A hub Event N/A N/A call core.start waiter waiter common_settings N/A N/A N/A waiter wait N/A N/A N/A LOG debug Core started %s N/A CORE_MANAGER started N/A N/A CORE_MANAGER started N/A N/A N/A N/A self _add_neighbors routing_settings N/A N/A N/A self _add_vrfs routing_settings N/A N/A N/A self _add_networks routing_settings N/A _add_neighbors N/A N/A self routing_settings N/A N/A N/A Add bgp peers/neighbors from given settings to BGPS runtime.

        All valid neighbors are loaded. Miss-configured neighbors are ignored
        and error is logged.
         N/A bgp_neighbors N/A N/A routing_settings setdefault bgp_neighbors N/A N/A N/A ip bgp_neighbor N/A N/A bgp_neighbors items N/A N/A N/A N/A N/A bgp_neighbor N/A N/A neighbors IP_ADDRESS ip N/A N/A call neighbor.create bgp_neighbor N/A N/A N/A LOG debug Added neighbor %s ip N/A N/A N/A RuntimeConfigError N/A re N/A N/A N/A N/A LOG error re N/A N/A N/A LOG error N/A N/A traceback format_exc N/A N/A _add_vrfs N/A N/A self routing_settings N/A N/A N/A Add VRFs from given settings to BGPS runtime.

        If any of the VRFs are miss-configured errors are logged.
        All valid VRFs are loaded.
         N/A vpns_conf N/A N/A routing_settings setdefault vpns N/A N/A N/A vrfname vrf N/A N/A vpns_conf items N/A N/A N/A N/A N/A vrf N/A N/A vrfs VRF_NAME vrfname N/A N/A call vrf.create vrf N/A N/A N/A LOG debug Added vrf  %s vrf N/A N/A N/A RuntimeConfigError N/A e N/A N/A N/A N/A LOG error e N/A N/A _add_networks N/A N/A self routing_settings N/A N/A N/A Add networks from given settings to BGPS runtime.

        If any of the networks are miss-configured errors are logged.
        All valid networks are loaded.
         N/A networks N/A N/A routing_settings setdefault networks N/A N/A prefix networks N/A N/A N/A N/A N/A call network.add prefix prefix N/A N/A N/A LOG debug Added network %s prefix N/A N/A N/A RuntimeConfigError N/A e N/A N/A N/A N/A LOG error e N/A N/A N/A