Module ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpAdd NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareLtE Num NameLoad body Return SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareLtE Num NameLoad body Return SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore ListLoad Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr keyword NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list decorator_list
N/A oslo_log log logging neutron._i18n _LE neutron.agent.linux ip_lib N/A LOG N/A N/A logging getLogger __name__ N/A NS_PREFIX qrouter- N/A INTERNAL_DEV_PREFIX qr- N/A EXTERNAL_DEV_PREFIX qg- N/A ROUTER_2_FIP_DEV_PREFIX rfp- build_ns_name N/A N/A prefix identifier N/A N/A N/A Builds a namespace name from the given prefix and identifier

    :param prefix: The prefix which must end with '-' for legacy reasons
    :param identifier: The id associated with the namespace
     N/A N/A prefix identifier N/A get_prefix_from_ns_name N/A N/A ns_name N/A N/A N/A Parses prefix from prefix-identifier

    :param ns_name: The name of a namespace
    :returns: The prefix ending with a '-' or None if there is no '-'
     N/A dash_index N/A N/A ns_name find - N/A N/A 0 dash_index N/A N/A N/A ns_name N/A N/A dash_index 1 N/A get_id_from_ns_name N/A N/A ns_name N/A N/A N/A Parses identifier from prefix-identifier

    :param ns_name: The name of a namespace
    :returns: Identifier or None if there is no - to end the prefix
     N/A dash_index N/A N/A ns_name find - N/A N/A 0 dash_index N/A N/A N/A ns_name N/A N/A dash_index 1 N/A Namespace N/A object N/A __init__ N/A N/A self name agent_conf driver use_ipv6 N/A N/A N/A N/A self name name N/A N/A self ip_wrapper_root N/A N/A ip_lib IPWrapper N/A N/A self agent_conf agent_conf N/A N/A self driver driver N/A N/A self use_ipv6 use_ipv6 N/A create N/A N/A self N/A N/A N/A ip_wrapper N/A N/A N/A self ip_wrapper_root ensure_namespace N/A self name N/A cmd N/A sysctl -w net.ipv4.ip_forward=1 N/A N/A N/A N/A ip_wrapper netns execute cmd N/A N/A self use_ipv6 N/A N/A cmd N/A sysctl -w net.ipv6.conf.all.forwarding=1 N/A N/A N/A N/A ip_wrapper netns execute cmd N/A delete N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self ip_wrapper_root netns delete N/A self name N/A N/A N/A RuntimeError N/A N/A msg N/A _LE Failed trying to delete namespace: %s N/A N/A N/A LOG exception msg N/A self name N/A N/A RouterNamespace N/A Namespace N/A __init__ N/A N/A self router_id agent_conf driver use_ipv6 N/A N/A N/A N/A self router_id router_id N/A name N/A N/A self _get_ns_name router_id N/A N/A N/A N/A super RouterNamespace self __init__ name agent_conf driver use_ipv6 N/A _get_ns_name N/A N/A cls router_id N/A N/A N/A N/A build_ns_name NS_PREFIX router_id N/A classmethod delete N/A N/A self N/A N/A N/A ns_ip N/A N/A ip_lib IPWrapper namespace N/A self name N/A d N/A N/A ns_ip get_devices exclude_loopback True N/A N/A N/A N/A N/A d name startswith INTERNAL_DEV_PREFIX N/A N/A N/A N/A N/A self driver unplug N/A d name namespace N/A self name prefix INTERNAL_DEV_PREFIX N/A N/A N/A N/A N/A d name startswith ROUTER_2_FIP_DEV_PREFIX N/A N/A N/A N/A ns_ip del_veth N/A d name N/A N/A N/A N/A N/A d name startswith EXTERNAL_DEV_PREFIX N/A N/A N/A N/A N/A self driver unplug N/A d name bridge N/A N/A self agent_conf external_network_bridge namespace N/A self name prefix EXTERNAL_DEV_PREFIX N/A N/A N/A N/A super RouterNamespace self delete N/A N/A