Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Yield NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Str attr TupleLoad Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad Str attr TupleLoad NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad AttributeLoad NameLoad attr decorator_list decorator_list Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return CompareNotEq Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Index NameLoad NameLoad If BoolOpAnd NameLoad CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Delete SubscriptDel SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BoolOpOr NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return UnaryOpNot BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad GeneratorExp CompareIn NameLoad AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If NameLoad body If Call AttributeLoad NameLoad attr NameLoad NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A N/A abc N/A collections neutron_lib exceptions oslo_concurrency lockutils oslo_log log logging N/A six neutron._i18n _LW _LI neutron.agent.l2 agent_extension neutron.api.rpc.callbacks.consumer registry neutron.api.rpc.callbacks events neutron.api.rpc.callbacks resources neutron.api.rpc.handlers resources_rpc neutron manager N/A LOG N/A N/A logging getLogger __name__ QosAgentDriver N/A object N/A N/A Defines stable abstract interface for QoS Agent Driver.

    QoS Agent driver defines the interface to be implemented by Agent
    for applying QoS Rules on a port.
     N/A SUPPORTED_RULES N/A set initialize N/A N/A self N/A N/A N/A Perform QoS agent driver initialization.
         N/A N/A abc abstractmethod create N/A N/A self port qos_policy N/A N/A N/A Apply QoS rules on port for the first time.

        :param port: port object.
        :param qos_policy: the QoS policy to be applied on port.
         N/A N/A N/A self _handle_update_create_rules create port qos_policy N/A consume_api N/A N/A self agent_api N/A N/A N/A Consume the AgentAPI instance from the QoSAgentExtension class

        This allows QosAgentDrivers to gain access to resources limited to the
        NeutronAgent when this method is overridden.

        :param agent_api: An instance of an agent specific API
         N/A update N/A N/A self port qos_policy N/A N/A N/A Apply QoS rules on port.

        :param port: port object.
        :param qos_policy: the QoS policy to be applied on port.
         N/A N/A N/A self _handle_update_create_rules update port qos_policy N/A delete N/A N/A self port qos_policy N/A None N/A N/A Remove QoS rules from port.

        :param port: port object.
        :param qos_policy: the QoS policy to be removed from port.
         N/A N/A qos_policy None N/A N/A rule_types N/A self SUPPORTED_RULES N/A N/A rule_types N/A set N/A N/A rule rule_type N/A rule N/A N/A self _iterate_rules N/A qos_policy rules N/A rule_type rule_types N/A N/A N/A N/A self _handle_rule_delete port rule_type N/A _iterate_rules N/A N/A self rules N/A N/A N/A rule rules N/A N/A rule_type N/A rule rule_type N/A N/A rule_type N/A self SUPPORTED_RULES N/A N/A N/A rule N/A N/A N/A N/A LOG warning N/A _LW Unsupported QoS rule type for %(rule_id)s: %(rule_type)s; skipping N/A rule_id rule_type N/A rule id rule_type N/A _handle_rule_delete N/A N/A self port rule_type N/A N/A N/A handler_name N/A N/A join N/A delete_ rule_type N/A handler N/A getattr self handler_name N/A N/A handler port N/A _handle_update_create_rules N/A N/A self action port qos_policy N/A N/A N/A rule N/A N/A self _iterate_rules N/A qos_policy rules N/A N/A N/A N/A rule should_apply_to_port port N/A N/A handler_name N/A N/A join N/A action _ N/A rule rule_type N/A handler N/A getattr self handler_name N/A N/A handler port rule N/A N/A N/A N/A LOG debug Port %(port)s excluded from QoS rule %(rule)s N/A port rule port N/A rule id N/A N/A N/A N/A six add_metaclass N/A abc ABCMeta PortPolicyMap N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self qos_policy_ports N/A N/A collections defaultdict dict N/A N/A self known_policies N/A N/A N/A self port_policies N/A N/A get_ports N/A N/A self policy N/A N/A N/A N/A N/A N/A N/A self qos_policy_ports N/A N/A policy id values N/A get_policy N/A N/A self policy_id N/A N/A N/A N/A N/A N/A self known_policies get policy_id N/A update_policy N/A N/A self policy N/A N/A N/A N/A N/A self known_policies N/A N/A policy id policy N/A has_policy_changed N/A N/A self port policy_id N/A N/A N/A N/A N/A N/A N/A self port_policies get N/A port N/A port_id policy_id N/A get_port_policy N/A N/A self port N/A N/A N/A policy_id N/A N/A N/A self port_policies get N/A port N/A port_id N/A policy_id N/A N/A N/A N/A self get_policy policy_id N/A set_port_policy N/A N/A self port policy N/A N/A N/A Attach a port to policy and return any previous policy on port. N/A port_id N/A port N/A port_id N/A old_policy N/A N/A self get_port_policy port N/A N/A N/A self known_policies N/A N/A policy id policy N/A N/A N/A self port_policies N/A port_id N/A policy id N/A N/A N/A N/A self qos_policy_ports N/A N/A policy id N/A port_id port N/A N/A old_policy N/A N/A old_policy id N/A policy id N/A N/A N/A N/A N/A self qos_policy_ports N/A N/A old_policy id N/A port_id N/A old_policy N/A clean_by_port N/A N/A self port N/A N/A N/A Detach port from policy and cleanup data we don't need anymore. N/A port_id N/A port N/A port_id N/A N/A port_id N/A self port_policies N/A N/A N/A N/A self port_policies N/A port_id N/A N/A qos_policy_id port_dict N/A N/A N/A self qos_policy_ports items N/A N/A N/A port_id port_dict N/A N/A N/A port_dict N/A port_id N/A N/A port_dict N/A N/A N/A N/A self _clean_policy_info qos_policy_id N/A N/A N/A N/A exceptions PortNotFound port_id N/A port N/A port_id N/A _clean_policy_info N/A N/A self qos_policy_id N/A N/A N/A N/A N/A self qos_policy_ports N/A qos_policy_id N/A N/A N/A self known_policies N/A qos_policy_id N/A N/A QosAgentExtension N/A N/A agent_extension AgentCoreResourceExtension N/A N/A SUPPORTED_RESOURCES N/A N/A resources QOS_POLICY initialize N/A N/A self connection driver_type N/A N/A N/A Perform Agent Extension initialization.

         N/A N/A self resource_rpc N/A N/A resources_rpc ResourcesPullRpcApi N/A N/A self qos_driver N/A N/A N/A N/A manager NeutronManager load_class_for_provider neutron.qos.agent_drivers driver_type N/A N/A N/A N/A self qos_driver consume_api N/A self agent_api N/A N/A N/A N/A self qos_driver initialize N/A N/A self policy_map N/A PortPolicyMap N/A N/A N/A registry subscribe N/A self _handle_notification N/A resources QOS_POLICY N/A N/A N/A self _register_rpc_consumers connection N/A consume_api N/A N/A self agent_api N/A N/A N/A N/A self agent_api agent_api N/A _register_rpc_consumers N/A N/A self connection N/A N/A N/A endpoints N/A N/A N/A resources_rpc ResourcesPushRpcCallback N/A resource_type N/A self SUPPORTED_RESOURCES N/A N/A topic N/A N/A resources_rpc resource_type_versioned_topic resource_type N/A N/A N/A connection create_consumer topic endpoints fanout True N/A _handle_notification N/A N/A self qos_policy event_type N/A N/A N/A N/A event_type N/A events UPDATED N/A N/A N/A N/A self _process_update_policy qos_policy N/A N/A N/A lockutils synchronized qos-port handle_port N/A N/A self context port N/A N/A N/A Handle agent QoS extension for port.

        This method applies a new policy to a port using the QoS driver.
        Update events are handled in _handle_notification.
         N/A port_id N/A port N/A port_id N/A port_qos_policy_id N/A N/A port get qos_policy_id N/A network_qos_policy_id N/A N/A port get network_qos_policy_id N/A qos_policy_id N/A port_qos_policy_id network_qos_policy_id N/A N/A qos_policy_id None N/A N/A N/A N/A self _process_reset_port port N/A N/A N/A N/A N/A N/A self policy_map has_policy_changed port qos_policy_id N/A N/A N/A qos_policy N/A N/A N/A self resource_rpc pull context N/A resources QOS_POLICY qos_policy_id N/A N/A qos_policy None N/A N/A N/A N/A LOG info N/A _LI QoS policy %(qos_policy_id)s applied to port %(port_id)s is not available on server, it has been deleted. Skipping. N/A qos_policy_id port_id qos_policy_id port_id N/A N/A N/A self _process_reset_port port N/A N/A old_qos_policy N/A N/A N/A self policy_map set_port_policy port qos_policy N/A old_qos_policy N/A N/A N/A N/A N/A self qos_driver delete port old_qos_policy N/A N/A N/A N/A self qos_driver update port qos_policy N/A N/A N/A N/A N/A self qos_driver create port qos_policy N/A N/A N/A lockutils synchronized qos-port delete_port N/A N/A self context port N/A N/A N/A N/A N/A self _process_reset_port port N/A _policy_rules_modified N/A N/A self old_policy policy N/A N/A N/A N/A N/A N/A N/A len N/A old_policy rules N/A len N/A policy rules N/A all N/A N/A i N/A old_policy rules N/A i N/A policy rules N/A _process_update_policy N/A N/A self qos_policy N/A N/A N/A old_qos_policy N/A N/A N/A self policy_map get_policy N/A qos_policy id N/A old_qos_policy N/A N/A N/A N/A self _policy_rules_modified old_qos_policy qos_policy N/A N/A port N/A N/A N/A self policy_map get_ports qos_policy N/A N/A N/A N/A N/A self qos_driver delete port old_qos_policy N/A N/A N/A N/A self qos_driver update port qos_policy N/A N/A N/A N/A self policy_map update_policy qos_policy N/A _process_reset_port N/A N/A self port N/A N/A N/A N/A N/A N/A N/A N/A self policy_map clean_by_port port N/A N/A N/A N/A self qos_driver delete port N/A N/A N/A N/A exceptions PortNotFound N/A N/A N/A N/A LOG info N/A _LI QoS extension did have no information about the port %s that we were trying to reset N/A port N/A port_id N/A N/A