Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Import alias Import alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias Assign NameStore BinOpSub BinOpLShift Num Num Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str ListLoad ListLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call NameLoad NameLoad Return NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call Call AttributeLoad NameLoad attr keyword NameLoad keyword BinOpMult AttributeLoad NameLoad attr Num keyword Num keyword Num keyword Lambda arguments args NameParam defaults NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Return Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TupleLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Return DictComp NameLoad Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore BinOpAdd ListLoad Str NameLoad AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Num Num body TryExcept body Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareIn Str Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Num Continue Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad NameLoad Break decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str ListLoad attr Str Slice Num Return BinOpSub Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotEq NameLoad Str body For NameStore NameLoad body If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad ListLoad Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Assign NameStore NameLoad If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad Str attr GeneratorExp Call AttributeLoad Str attr ListLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareNotIn Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListComp NameLoad comprehension NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str ListLoad attr CompareNotIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore ListLoad TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call NameLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Dict Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Str Str Str Str BinOpMod Str NameLoad TryExcept body Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad attr handlers ExceptHandler type NameLoad name NameStore body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return ListLoad Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str keyword NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str keyword NameLoad Assign NameStore Dict For NameStore NameLoad body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str keyword NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str orelse If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str SubscriptLoad NameLoad Index Str orelse If CompareIn Str SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn Str NameLoad body Return SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str keyword NameLoad Return DictComp SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Str keyword NameLoad Assign NameStore DictComp Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad comprehension NameStore NameLoad Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad AttributeLoad NameLoad attr Continue Assign NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn SubscriptLoad NameLoad Index Str ListLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str SubscriptLoad NameLoad Index Str NameLoad Return NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad Str Str Dict Str NameLoad TupleLoad Str Str Dict Str Str keyword ListLoad Str Str Str attr For NameStore NameLoad body If CompareNotEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Continue If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Continue Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Return Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore GeneratorExp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr attr If NameLoad body Return NameLoad orelse Assign NameStore BinOpMod Call NameLoad Str AttributeLoad NameLoad attr Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad TupleLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Assign NameStore IfExp Call NameLoad NameLoad AttributeLoad NameLoad attr ListLoad NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad NameStore body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad TupleLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Str Assign NameStore BoolOpOr NameLoad NameLoad Assign NameStore BoolOpOr NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad TupleLoad Str Str Str body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad If UnaryOpNot NameLoad body Return If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Str Str orelse If CompareIn Str NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad If CompareNotEq NameLoad Str body If CompareNotIn Str NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Return BinOpBitAnd AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareNotIn Str NameLoad body Return BinOpAdd NameLoad Str orelse Return NameLoad decorator_list
N/A N/A collections N/A itertools N/A operator N/A time N/A uuid neutron_lib exceptions oslo_config cfg oslo_log log logging oslo_utils excutils N/A retrying N/A six neutron._i18n _ _LE _LI _LW neutron.agent.common utils neutron.agent.linux ip_lib neutron.agent.ovsdb api ovsdb neutron.plugins.common constants p_const neutron.plugins.ml2.drivers.openvswitch.agent.common constants N/A UINT64_BITMASK N/A N/A 1 64 1 N/A DEFAULT_OVS_VSCTL_TIMEOUT 10 N/A INVALID_OFPORT -1 N/A UNASSIGNED_OFPORT N/A N/A FAILMODE_SECURE secure N/A FAILMODE_STANDALONE standalone N/A OPTS N/A N/A N/A cfg IntOpt ovs_vsctl_timeout default DEFAULT_OVS_VSCTL_TIMEOUT help N/A _ Timeout in seconds for ovs-vsctl commands. If the timeout expires, ovs commands will fail with ALARMCLOCK error. N/A N/A N/A N/A cfg CONF register_opts OPTS N/A LOG N/A N/A logging getLogger __name__ N/A OVS_DEFAULT_CAPS N/A datapath_types iface_types N/A N/A _ofport_result_pending N/A N/A result N/A N/A N/A Return True if ovs-vsctl indicates the result is still pending. N/A N/A N/A N/A int result N/A False N/A N/A N/A N/A ValueError TypeError N/A N/A True N/A _ofport_retry N/A N/A fn N/A N/A N/A Decorator for retrying when OVS has yet to assign an ofport.

    The instance's vsctl_timeout is used as the max waiting time. This relies
    on the fact that instance methods receive self as the first argument.
     wrapped N/A N/A N/A args kwargs N/A N/A self N/A args N/A 0 N/A new_fn N/A N/A N/A retrying retry retry_on_result _ofport_result_pending stop_max_delay N/A N/A self vsctl_timeout 1000 wait_exponential_multiplier 10 wait_exponential_max 1000 retry_on_exception N/A N/A N/A _ N/A False fn N/A N/A new_fn args kwargs N/A N/A N/A six wraps fn N/A wrapped N/A VifPort N/A object N/A __init__ N/A N/A self port_name ofport vif_id vif_mac switch N/A N/A N/A N/A self port_name port_name N/A N/A self ofport ofport N/A N/A self vif_id vif_id N/A N/A self vif_mac vif_mac N/A N/A self switch switch N/A __str__ N/A N/A self N/A N/A N/A N/A iface-id=%s, vif_mac=%s, port_name=%s, ofport=%s, bridge_name=%s N/A N/A self vif_id N/A self vif_mac N/A self port_name N/A self ofport N/A N/A self switch br_name N/A N/A BaseOVS N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self vsctl_timeout N/A N/A cfg CONF ovs_vsctl_timeout N/A N/A self ovsdb N/A N/A N/A ovsdb API get self N/A add_bridge N/A N/A self bridge_name datapath_type N/A N/A constants OVS_DATAPATH_SYSTEM N/A N/A N/A N/A N/A N/A N/A self ovsdb add_br bridge_name datapath_type execute N/A br N/A OVSBridge bridge_name N/A N/A N/A br get_port_ofport bridge_name N/A br N/A delete_bridge N/A N/A self bridge_name N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb del_br bridge_name execute N/A bridge_exists N/A N/A self bridge_name N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb br_exists bridge_name execute N/A port_exists N/A N/A self port_name N/A N/A N/A cmd N/A N/A N/A self ovsdb db_get Port port_name name N/A N/A bool N/A N/A cmd execute check_error False log_errors False N/A get_bridge_for_iface N/A N/A self iface N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb iface_to_br iface execute N/A get_bridges N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb list_br execute check_error True N/A get_bridge_external_bridge_id N/A N/A self bridge N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb br_get_external_id bridge bridge-id execute N/A set_db_attribute N/A N/A self table_name record column value check_error log_errors N/A False True N/A N/A N/A N/A N/A N/A N/A self ovsdb db_set table_name record N/A column value execute check_error check_error log_errors log_errors N/A clear_db_attribute N/A N/A self table_name record column N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb db_clear table_name record column execute N/A db_get_val N/A N/A self table record column check_error log_errors N/A False True N/A N/A N/A N/A N/A N/A N/A self ovsdb db_get table record column execute check_error check_error log_errors log_errors N/A config N/A N/A self N/A N/A N/A A dict containing the only row from the root Open_vSwitch table

        This row contains several columns describing the Open vSwitch install
        and the system on which it is installed. Useful keys include:
            datapath_types: a list of supported datapath types
            iface_types: a list of supported interface types
            ovs_version: the OVS version
         N/A N/A N/A N/A N/A N/A N/A self ovsdb db_list Open_vSwitch execute N/A 0 N/A property capabilities N/A N/A self N/A N/A N/A _cfg N/A self config N/A N/A k N/A N/A _cfg get k N/A OVS_DEFAULT_CAPS N/A k N/A k OVS_DEFAULT_CAPS N/A property N/A OVSBridge N/A BaseOVS N/A __init__ N/A N/A self br_name datapath_type N/A N/A constants OVS_DATAPATH_SYSTEM N/A N/A N/A N/A N/A super OVSBridge self __init__ N/A N/A self br_name br_name N/A N/A self datapath_type datapath_type N/A N/A self _default_cookie N/A generate_random_cookie N/A default_cookie N/A N/A self N/A N/A N/A N/A self _default_cookie N/A property set_agent_uuid_stamp N/A N/A self val N/A N/A N/A N/A self _default_cookie val N/A set_controller N/A N/A self controllers N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb set_controller N/A self br_name controllers execute check_error True N/A del_controller N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb del_controller N/A self br_name execute check_error True N/A get_controller N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb get_controller N/A self br_name execute check_error True N/A _set_bridge_fail_mode N/A N/A self mode N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb set_fail_mode N/A self br_name mode execute check_error True N/A set_secure_mode N/A N/A self N/A N/A N/A N/A N/A self _set_bridge_fail_mode FAILMODE_SECURE N/A set_standalone_mode N/A N/A self N/A N/A N/A N/A N/A self _set_bridge_fail_mode FAILMODE_STANDALONE N/A set_protocols N/A N/A self protocols N/A N/A N/A N/A N/A self set_db_attribute Bridge N/A self br_name protocols protocols check_error True N/A create N/A N/A self secure_mode N/A False N/A N/A N/A N/A N/A self ovsdb transaction txn N/A N/A N/A N/A txn add N/A N/A N/A self ovsdb add_br N/A self br_name datapath_type N/A self datapath_type N/A secure_mode N/A N/A N/A N/A txn add N/A N/A N/A self ovsdb set_fail_mode N/A self br_name FAILMODE_SECURE N/A N/A N/A self get_port_ofport N/A self br_name N/A destroy N/A N/A self N/A N/A N/A N/A N/A self delete_bridge N/A self br_name N/A add_port N/A N/A self port_name N/A interface_attr_tuples N/A N/A N/A N/A N/A self ovsdb transaction txn N/A N/A N/A N/A txn add N/A N/A N/A self ovsdb add_port N/A self br_name port_name N/A interface_attr_tuples N/A N/A N/A N/A txn add N/A N/A N/A self ovsdb db_set Interface port_name interface_attr_tuples N/A N/A N/A self get_port_ofport port_name N/A replace_port N/A N/A self port_name N/A interface_attr_tuples N/A N/A Replace existing port or create it, and configure port interface. N/A N/A N/A N/A N/A N/A self ovsdb del_port port_name execute N/A N/A N/A N/A self ovsdb transaction txn N/A N/A N/A N/A txn add N/A N/A N/A self ovsdb add_port N/A self br_name port_name may_exist False N/A interface_attr_tuples N/A N/A N/A N/A txn add N/A N/A N/A self ovsdb db_set Interface port_name interface_attr_tuples N/A N/A N/A self get_port_ofport port_name N/A delete_port N/A N/A self port_name N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb del_port port_name N/A self br_name execute N/A run_ofctl N/A N/A self cmd args process_input N/A None N/A N/A full_args N/A N/A ovs-ofctl cmd N/A self br_name args N/A i N/A range 1 11 N/A N/A N/A N/A N/A N/A utils execute full_args run_as_root True process_input process_input N/A N/A N/A Exception N/A e N/A N/A N/A failed to connect to socket N/A str e N/A N/A N/A N/A LOG debug Failed to connect to OVS. Retrying in 1 second. Attempt: %s/10 i N/A N/A N/A time sleep 1 N/A N/A N/A N/A LOG error N/A _LE Unable to execute %(cmd)s. Exception: %(exception)s N/A cmd exception full_args e N/A N/A count_flows N/A N/A self N/A N/A N/A flow_list N/A N/A N/A N/A N/A self run_ofctl dump-flows N/A split N/A 1 N/A N/A N/A len flow_list 1 N/A remove_all_flows N/A N/A self N/A N/A N/A N/A N/A self run_ofctl del-flows N/A N/A _get_port_ofport N/A N/A self port_name N/A N/A N/A N/A N/A self db_get_val Interface port_name ofport N/A _ofport_retry get_port_ofport N/A N/A self port_name N/A N/A N/A Get the port's assigned ofport, retrying if not yet assigned. N/A ofport INVALID_OFPORT N/A N/A N/A ofport N/A N/A self _get_port_ofport port_name N/A N/A N/A N/A retrying RetryError N/A N/A N/A N/A LOG exception N/A _LE Timed out retrieving ofport on port %s. port_name N/A ofport N/A get_datapath_id N/A N/A self N/A N/A N/A N/A N/A self db_get_val Bridge N/A self br_name datapath_id N/A do_action_flows N/A N/A self action kwargs_list N/A N/A N/A N/A action del N/A N/A kw kwargs_list N/A N/A N/A cookie kw N/A N/A N/A kw N/A cookie N/A self _default_cookie N/A flow_strs N/A N/A _build_flow_expr_str kw action N/A kw kwargs_list N/A N/A N/A self run_ofctl N/A %s-flows action N/A - N/A N/A join flow_strs N/A add_flow N/A N/A self N/A kwargs N/A N/A N/A N/A self do_action_flows add N/A kwargs N/A mod_flow N/A N/A self N/A kwargs N/A N/A N/A N/A self do_action_flows mod N/A kwargs N/A delete_flows N/A N/A self N/A kwargs N/A N/A N/A N/A self do_action_flows del N/A kwargs N/A dump_flows_for_table N/A N/A self table N/A N/A N/A N/A N/A self dump_flows_for table table N/A dump_flows_for N/A N/A self N/A kwargs N/A N/A retval None N/A N/A cookie kwargs N/A N/A N/A kwargs N/A cookie N/A check_cookie_mask N/A str N/A kwargs N/A cookie N/A flow_str N/A N/A , join N/A N/A N/A = join N/A key N/A str val N/A N/A key val N/A N/A kwargs items N/A flows N/A N/A self run_ofctl dump-flows N/A flow_str N/A flows N/A N/A retval N/A N/A join N/A item N/A item N/A N/A flows splitlines N/A NXST item N/A retval N/A dump_all_flows N/A N/A self N/A N/A N/A N/A f N/A f N/A N/A N/A N/A self run_ofctl dump-flows N/A splitlines N/A NXST f N/A deferred N/A N/A self N/A kwargs N/A N/A N/A DeferredOVSBridge self kwargs N/A add_tunnel_port N/A N/A self port_name remote_ip local_ip tunnel_type vxlan_udp_port dont_fragment tunnel_csum N/A N/A p_const TYPE_GRE N/A p_const VXLAN_UDP_PORT True False N/A N/A attrs N/A N/A type tunnel_type N/A options N/A N/A collections OrderedDict N/A vxlan_uses_custom_udp_port N/A N/A tunnel_type N/A p_const TYPE_VXLAN N/A vxlan_udp_port N/A p_const VXLAN_UDP_PORT N/A vxlan_uses_custom_udp_port N/A N/A N/A options N/A dst_port vxlan_udp_port N/A N/A options N/A df_default N/A N/A N/A str dont_fragment lower N/A N/A options N/A remote_ip remote_ip N/A N/A options N/A local_ip local_ip N/A N/A options N/A in_key flow N/A N/A options N/A out_key flow N/A tunnel_csum N/A N/A N/A options N/A csum N/A N/A N/A str tunnel_csum lower N/A N/A N/A attrs append N/A options options N/A N/A N/A self add_port port_name attrs N/A add_patch_port N/A N/A self local_name remote_name N/A N/A N/A attrs N/A N/A type patch N/A options N/A peer remote_name N/A N/A N/A self add_port local_name attrs N/A get_iface_name_list N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb list_ifaces N/A self br_name execute check_error True N/A get_port_name_list N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb list_ports N/A self br_name execute check_error True N/A get_port_stats N/A N/A self port_name N/A N/A N/A N/A N/A self db_get_val Interface port_name statistics N/A get_xapi_iface_id N/A N/A self xs_vif_uuid N/A N/A N/A args N/A xe vif-param-get param-name=other-config param-key=nicira-iface-id N/A uuid=%s xs_vif_uuid N/A N/A N/A N/A N/A N/A N/A utils execute args run_as_root True strip N/A N/A N/A Exception N/A e N/A N/A N/A N/A excutils save_and_reraise_exception N/A N/A N/A N/A LOG error N/A _LE Unable to execute %(cmd)s. Exception: %(exception)s N/A cmd exception args e N/A get_ports_attributes N/A N/A self table columns ports check_error log_errors if_exists N/A None None True True False N/A N/A port_names N/A ports N/A N/A self get_port_name_list N/A N/A port_names N/A N/A N/A N/A N/A N/A N/A N/A N/A self ovsdb db_list table port_names columns columns if_exists if_exists execute check_error check_error log_errors log_errors N/A get_vif_ports N/A N/A self N/A N/A N/A edge_ports N/A N/A port_info N/A N/A self get_ports_attributes Interface columns N/A name external_ids ofport if_exists True N/A port port_info N/A N/A name N/A port N/A name N/A external_ids N/A port N/A external_ids N/A ofport N/A port N/A ofport N/A N/A N/A iface-id external_ids N/A attached-mac external_ids N/A N/A p N/A VifPort name ofport N/A external_ids N/A iface-id N/A external_ids N/A attached-mac self N/A N/A N/A edge_ports append p N/A N/A N/A N/A xs-vif-uuid external_ids N/A attached-mac external_ids N/A N/A iface_id N/A N/A self get_xapi_iface_id N/A external_ids N/A xs-vif-uuid N/A p N/A VifPort name ofport iface_id N/A external_ids N/A attached-mac self N/A N/A N/A edge_ports append p N/A edge_ports N/A get_vif_port_to_ofport_map N/A N/A self N/A N/A N/A results N/A N/A self get_ports_attributes Interface columns N/A name external_ids ofport if_exists True N/A port_map N/A N/A r results N/A N/A key N/A N/A N/A self portid_from_external_ids N/A r N/A external_ids N/A r N/A name N/A N/A N/A N/A port_map N/A key N/A int N/A r N/A ofport N/A N/A N/A TypeError N/A N/A N/A port_map N/A get_vif_port_set N/A N/A self N/A N/A N/A edge_ports N/A set N/A results N/A N/A self get_ports_attributes Interface columns N/A name external_ids ofport if_exists True N/A result results N/A N/A N/A N/A result N/A ofport UNASSIGNED_OFPORT N/A N/A N/A N/A LOG warning N/A _LW Found not yet ready openvswitch port: %s N/A result N/A name N/A N/A N/A N/A result N/A ofport INVALID_OFPORT N/A N/A N/A N/A LOG warning N/A _LW Found failed openvswitch port: %s N/A result N/A name N/A N/A N/A attached-mac N/A result N/A external_ids N/A N/A port_id N/A N/A self portid_from_external_ids N/A result N/A external_ids N/A port_id N/A N/A N/A N/A edge_ports add port_id N/A edge_ports N/A portid_from_external_ids N/A N/A self external_ids N/A N/A N/A N/A iface-id external_ids N/A N/A N/A external_ids N/A iface-id N/A N/A xs-vif-uuid external_ids N/A N/A iface_id N/A N/A self get_xapi_iface_id N/A external_ids N/A xs-vif-uuid N/A iface_id N/A get_port_tag_dict N/A N/A self N/A N/A N/A Get a dict of port names and associated vlan tags.

        e.g. the returned dict is of the following form::

            {u'int-br-eth2': [],
             u'patch-tun': [],
             u'qr-76d9e6b6-21': 1,
             u'tapce5318ff-78': 1,
             u'tape1400310-e6': 1}

        The TAG ID is only available in the "Port" table and is not available
        in the "Interface" table queried by the get_vif_port_set() method.

         N/A results N/A N/A self get_ports_attributes Port columns N/A name tag if_exists True N/A N/A N/A p N/A name N/A p N/A tag N/A p results N/A get_vifs_by_ids N/A N/A self port_ids N/A N/A N/A interface_info N/A N/A self get_ports_attributes Interface columns N/A name external_ids ofport if_exists True N/A by_id N/A N/A N/A N/A x N/A external_ids get iface-id x N/A x interface_info N/A result N/A N/A port_id port_ids N/A N/A N/A result N/A port_id None N/A N/A port_id by_id N/A N/A N/A N/A LOG info N/A _LI Port %(port_id)s not present in bridge %(br_name)s N/A port_id br_name port_id N/A self br_name N/A N/A pinfo N/A by_id N/A port_id N/A N/A N/A N/A self _check_ofport port_id pinfo N/A N/A N/A mac N/A N/A N/A pinfo N/A external_ids get attached-mac N/A N/A result N/A port_id N/A VifPort N/A pinfo N/A name N/A pinfo N/A ofport port_id mac self N/A result N/A _check_ofport N/A N/A port_id port_info N/A N/A N/A N/A N/A port_info N/A ofport N/A UNASSIGNED_OFPORT INVALID_OFPORT N/A N/A N/A N/A LOG warning N/A _LW ofport: %(ofport)s for VIF: %(vif)s is not a positive integer N/A ofport vif N/A port_info N/A ofport port_id N/A False N/A True N/A staticmethod get_vif_port_by_id N/A N/A self port_id N/A N/A N/A ports N/A N/A N/A N/A N/A self ovsdb db_find Interface N/A external_ids = N/A iface-id port_id N/A external_ids != N/A attached-mac columns N/A external_ids name ofport execute N/A port ports N/A N/A N/A N/A self br_name N/A N/A self get_bridge_for_iface N/A port N/A name N/A N/A N/A N/A N/A N/A self _check_ofport port_id port N/A N/A N/A mac N/A N/A N/A port N/A external_ids get attached-mac N/A N/A VifPort N/A port N/A name N/A port N/A ofport port_id mac self N/A N/A N/A LOG info N/A _LI Port %(port_id)s not present in bridge %(br_name)s N/A port_id br_name port_id N/A self br_name N/A delete_ports N/A N/A self all_ports N/A False N/A N/A all_ports N/A N/A port_names N/A N/A self get_port_name_list N/A N/A port_names N/A N/A port port_name N/A port N/A N/A self get_vif_ports N/A port_name port_names N/A N/A N/A N/A self delete_port port_name N/A get_local_port_mac N/A N/A self N/A N/A N/A Retrieve the mac of the bridge's local port. N/A address N/A N/A N/A N/A ip_lib IPDevice N/A self br_name link address N/A address N/A N/A address N/A N/A msg N/A N/A _ Unable to determine mac address for %s N/A self br_name N/A N/A Exception msg N/A set_controllers_connection_mode N/A N/A self connection_mode N/A N/A N/A Set bridge controllers connection mode.

        :param connection_mode: "out-of-band" or "in-band"
         N/A attr N/A N/A connection_mode connection_mode N/A controllers N/A N/A self db_get_val Bridge N/A self br_name controller N/A controllers N/A N/A isinstance controllers N/A uuid UUID N/A controllers controllers N/A N/A N/A N/A self ovsdb transaction check_error True txn N/A N/A controller_uuid controllers N/A N/A N/A N/A txn add N/A N/A N/A self ovsdb db_set Controller controller_uuid attr N/A _set_egress_bw_limit_for_port N/A N/A self port_name max_kbps max_burst_kbps N/A N/A N/A N/A N/A N/A self ovsdb transaction check_error True txn N/A N/A N/A N/A txn add N/A N/A N/A self ovsdb db_set Interface port_name N/A ingress_policing_rate max_kbps N/A N/A N/A txn add N/A N/A N/A self ovsdb db_set Interface port_name N/A ingress_policing_burst max_burst_kbps N/A create_egress_bw_limit_for_port N/A N/A self port_name max_kbps max_burst_kbps N/A N/A N/A N/A N/A self _set_egress_bw_limit_for_port port_name max_kbps max_burst_kbps N/A get_egress_bw_limit_for_port N/A N/A self port_name N/A N/A N/A max_kbps N/A N/A self db_get_val Interface port_name ingress_policing_rate N/A max_burst_kbps N/A N/A self db_get_val Interface port_name ingress_policing_burst N/A max_kbps N/A max_kbps None N/A max_burst_kbps N/A max_burst_kbps None N/A N/A max_kbps max_burst_kbps N/A delete_egress_bw_limit_for_port N/A N/A self port_name N/A N/A N/A N/A N/A self _set_egress_bw_limit_for_port port_name 0 0 N/A __enter__ N/A N/A self N/A N/A N/A N/A N/A self create N/A self N/A __exit__ N/A N/A self exc_type exc_value exc_tb N/A N/A N/A N/A N/A self destroy N/A N/A DeferredOVSBridge N/A object N/A N/A Deferred OVSBridge.

    This class wraps add_flow, mod_flow and delete_flows calls to an OVSBridge
    and defers their application until apply_flows call in order to perform
    bulk calls. It wraps also ALLOWED_PASSTHROUGHS calls to avoid mixing
    OVSBridge and DeferredOVSBridge uses.
    This class can be used as a context, in such case apply_flows is called on
    __exit__ except if an exception is raised.
    This class is not thread-safe, that's why for every use a new instance
    must be implemented.
     N/A ALLOWED_PASSTHROUGHS N/A add_port add_tunnel_port delete_port __init__ N/A N/A self br full_ordered order N/A False N/A add mod del N/A N/A Constructor.

        :param br: wrapped bridge
        :param full_ordered: Optional, disable flow reordering (slower)
        :param order: Optional, define in which order flow are applied
         N/A N/A self br br N/A N/A self full_ordered full_ordered N/A N/A self order order N/A N/A N/A self full_ordered N/A N/A N/A self weights N/A dict N/A N/A y x N/A N/A x y N/A enumerate N/A self order N/A N/A self action_flow_tuples N/A N/A __getattr__ N/A N/A self name N/A N/A N/A N/A name N/A self ALLOWED_PASSTHROUGHS N/A N/A N/A getattr N/A self br name N/A N/A AttributeError name N/A add_flow N/A N/A self N/A kwargs N/A N/A N/A N/A N/A self action_flow_tuples append N/A add kwargs N/A mod_flow N/A N/A self N/A kwargs N/A N/A N/A N/A N/A self action_flow_tuples append N/A mod kwargs N/A delete_flows N/A N/A self N/A kwargs N/A N/A N/A N/A N/A self action_flow_tuples append N/A del kwargs N/A apply_flows N/A N/A self N/A N/A N/A action_flow_tuples N/A self action_flow_tuples N/A N/A self action_flow_tuples N/A N/A N/A action_flow_tuples N/A N/A N/A N/A N/A self full_ordered N/A N/A N/A N/A action_flow_tuples sort key N/A N/A N/A af N/A N/A N/A self weights N/A N/A af N/A 0 N/A grouped N/A N/A itertools groupby action_flow_tuples key N/A N/A operator itemgetter 0 N/A itemgetter_1 N/A N/A operator itemgetter 1 N/A N/A action action_flow_list grouped N/A N/A flows N/A list N/A map itemgetter_1 action_flow_list N/A N/A N/A N/A self br do_action_flows action flows N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self exc_type exc_value traceback N/A N/A N/A N/A exc_type None N/A N/A N/A N/A self apply_flows N/A N/A N/A N/A LOG exception N/A _LE OVS flows could not be applied on bridge %s N/A N/A self br br_name N/A N/A _build_flow_expr_str N/A N/A flow_dict cmd N/A N/A N/A flow_expr_arr N/A N/A actions None N/A N/A cmd add N/A N/A N/A N/A flow_expr_arr append N/A hard_timeout=%s N/A N/A flow_dict pop hard_timeout 0 N/A N/A N/A flow_expr_arr append N/A idle_timeout=%s N/A N/A flow_dict pop idle_timeout 0 N/A N/A N/A flow_expr_arr append N/A priority=%s N/A N/A flow_dict pop priority 1 N/A N/A N/A priority flow_dict N/A N/A msg N/A _ Cannot match priority on flow deletion or modification N/A N/A N/A exceptions InvalidInput error_message msg N/A N/A cmd del N/A N/A N/A actions flow_dict N/A N/A msg N/A _ Must specify one or more actions on flow addition or modification N/A N/A N/A exceptions InvalidInput error_message msg N/A actions N/A actions=%s N/A N/A flow_dict pop actions N/A N/A key value N/A N/A six iteritems flow_dict N/A N/A N/A key proto N/A N/A N/A N/A flow_expr_arr append value N/A N/A N/A N/A flow_expr_arr append N/A %s=%s N/A key N/A str value N/A actions N/A N/A N/A N/A flow_expr_arr append actions N/A N/A N/A , join flow_expr_arr N/A generate_random_cookie N/A N/A N/A N/A N/A N/A N/A N/A N/A uuid uuid4 int UINT64_BITMASK N/A check_cookie_mask N/A N/A cookie N/A N/A N/A N/A / cookie N/A N/A N/A cookie /-1 N/A N/A cookie N/A