Module Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias Import alias identifier ImportFrom alias Import alias ImportFrom alias ImportFrom alias identifier 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 Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Pass decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore IfExp CompareIsNot NameLoad NameLoad Dict Str NameLoad Dict If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Str Assign NameStore ListComp Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict SubscriptLoad NameLoad Index Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore ListComp TupleLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr ListLoad ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict SubscriptLoad NameLoad Index Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore ListComp TupleLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad ListLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad ListLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Index Str Return Call NameLoad NameLoad NameLoad decorator_list With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword UnaryOpNot NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword Call NameLoad Call NameLoad Num Num FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str SubscriptLoad SubscriptLoad NameLoad Index Num Index Str decorator_list Call AttributeLoad NameLoad attr Str keyword Call NameLoad Call NameLoad Num Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Call NameLoad NameStore body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str keyword Num FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str ListLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str NameStore body Expr 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 Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad FunctionDef arguments args defaults vararg kwarg body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Raise Call AttributeLoad NameLoad attr keyword ListLoad Str decorator_list With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad body Expr 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 Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str NameLoad body Expr Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str NameLoad body Expr Call NameLoad NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Dict Str ListLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore TupleLoad Str Str Str body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict SubscriptLoad NameLoad Index Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore Dict SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Dict SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Num Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword ListLoad NameLoad body With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr keyword Str body Assign NameStore Dict SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr keyword Str Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict SubscriptLoad NameLoad Index Str Str With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str Str body Assign NameStore Dict Str Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Str body Assign NameStore Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str NameLoad Num NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str ListLoad NameLoad ListLoad AttributeLoad NameLoad attr Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict SubscriptLoad NameLoad Index Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Dict SubscriptLoad NameLoad Index Str Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad SubscriptLoad NameLoad Index Str Index Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A N/A mock neutron_lib constants neutron_lib exceptions n_exc oslo_config cfg oslo_db exception db_exc oslo_utils uuidutils N/A sqlalchemy sa sqlalchemy orm N/A testtools neutron.api.rpc.handlers l3_rpc neutron.common constants n_const neutron context neutron.db agents_db neutron.db common_db_mixin neutron.db l3_agentschedulers_db neutron.db l3_hamode_db neutron.extensions l3 neutron.extensions l3_ext_ha_mode neutron.extensions portbindings neutron.extensions providernet neutron manager neutron.scheduler l3_agent_scheduler neutron.tests.common helpers neutron.tests.unit testlib_api N/A _uuid N/A uuidutils generate_uuid FakeL3PluginWithAgents N/A N/A common_db_mixin CommonDbMixin N/A l3_hamode_db L3_HA_NAT_db_mixin N/A l3_agentschedulers_db L3AgentSchedulerDbMixin N/A agents_db AgentDbMixin N/A N/A N/A L3HATestFramework N/A N/A testlib_api SqlTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super L3HATestFramework self setUp N/A N/A self admin_ctx N/A N/A context get_admin_context N/A N/A N/A self setup_coreplugin neutron.plugins.ml2.plugin.Ml2Plugin N/A N/A self core_plugin N/A N/A N/A manager NeutronManager get_plugin N/A notif_p N/A N/A N/A mock patch object N/A l3_hamode_db L3_HA_NAT_db_mixin _notify_ha_interfaces_updated N/A N/A self notif_m N/A N/A notif_p start N/A N/A N/A N/A cfg CONF set_override allow_overlapping_ips True N/A N/A self plugin N/A FakeL3PluginWithAgents N/A N/A N/A self plugin router_scheduler N/A N/A l3_agent_scheduler ChanceScheduler N/A N/A self agent1 N/A N/A helpers register_l3_agent N/A N/A self agent2 N/A N/A helpers register_l3_agent host_2 N/A n_const L3_AGENT_MODE_DVR_SNAT N/A _create_router N/A N/A self ha tenant_id distributed ctx admin_state_up N/A True tenant1 None None True N/A N/A N/A ctx None N/A N/A ctx N/A self admin_ctx N/A N/A ctx tenant_id tenant_id N/A router N/A name admin_state_up tenant_id router1 admin_state_up tenant_id N/A N/A ha None N/A N/A N/A router N/A ha ha N/A N/A distributed None N/A N/A N/A router N/A distributed distributed N/A N/A N/A N/A self plugin create_router ctx N/A router router N/A _migrate_router N/A N/A self router_id ha N/A N/A N/A N/A N/A self _update_router router_id admin_state False N/A N/A N/A self _update_router router_id ha ha N/A N/A N/A self _update_router router_id admin_state True N/A _update_router N/A N/A self router_id ha distributed ctx admin_state N/A None None None None N/A N/A N/A ctx None N/A N/A ctx N/A self admin_ctx N/A data N/A N/A ha None N/A ha ha N/A N/A N/A distributed None N/A N/A N/A data N/A distributed distributed N/A N/A admin_state None N/A N/A N/A data N/A admin_state_up admin_state N/A N/A N/A N/A self plugin _update_router_db ctx router_id data N/A N/A L3HATestCase N/A L3HATestFramework N/A test_verify_configuration_succeed N/A N/A self N/A N/A N/A N/A N/A N/A self plugin _verify_configuration N/A test_verify_configuration_l3_ha_net_cidr_is_not_a_cidr N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override l3_ha_net_cidr not a cidr N/A N/A N/A self assertRaises N/A l3_ext_ha_mode HANetworkCIDRNotValid N/A N/A self plugin _verify_configuration N/A test_verify_configuration_l3_ha_net_cidr_is_not_a_subnet N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override l3_ha_net_cidr 10.0.0.1/8 N/A N/A N/A self assertRaises N/A l3_ext_ha_mode HANetworkCIDRNotValid N/A N/A self plugin _verify_configuration N/A test_verify_configuration_min_l3_agents_per_router_below_minimum N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override min_l3_agents_per_router 0 N/A N/A N/A self assertRaises N/A l3_ext_ha_mode HAMinimumAgentsNumberNotValid N/A N/A self plugin _check_num_agents_per_router N/A test_verify_configuration_max_l3_agents_below_min_l3_agents N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override max_l3_agents_per_router 3 N/A N/A N/A N/A cfg CONF set_override min_l3_agents_per_router 4 N/A N/A N/A self assertRaises N/A l3_ext_ha_mode HAMaximumAgentsNumberNotValid N/A N/A self plugin _check_num_agents_per_router N/A test_verify_configuration_max_l3_agents_unlimited N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override max_l3_agents_per_router N/A l3_hamode_db UNLIMITED_AGENTS_PER_ROUTER N/A N/A N/A N/A self plugin _check_num_agents_per_router N/A test_get_ha_router_port_bindings N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A bindings N/A N/A N/A self plugin get_ha_router_port_bindings N/A self admin_ctx N/A N/A router N/A id N/A binding_dicts N/A N/A router_id l3_agent_id N/A binding N/A router_id N/A binding N/A l3_agent_id N/A binding bindings N/A N/A N/A self assertIn N/A router_id l3_agent_id N/A router N/A id N/A N/A self agent1 N/A id binding_dicts N/A N/A N/A self assertIn N/A router_id l3_agent_id N/A router N/A id N/A N/A self agent2 N/A id binding_dicts N/A test_get_l3_bindings_hosting_router_with_ha_states_ha_router N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A N/A N/A N/A self plugin update_routers_states N/A self admin_ctx N/A N/A router N/A id active N/A N/A self agent1 N/A host N/A bindings N/A N/A N/A self plugin get_l3_bindings_hosting_router_with_ha_states N/A self admin_ctx N/A router N/A id N/A agent_ids N/A N/A N/A N/A agent N/A 0 N/A id N/A agent N/A 1 N/A agent bindings N/A N/A N/A self assertIn N/A N/A N/A self agent1 N/A id active agent_ids N/A N/A N/A self assertIn N/A N/A N/A self agent2 N/A id standby agent_ids N/A test_get_l3_bindings_hosting_router_with_ha_states_agent_none N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object N/A self plugin schedule_router N/A N/A router N/A N/A self _create_router N/A res N/A N/A N/A N/A N/A N/A N/A N/A self admin_ctx session query N/A l3_hamode_db L3HARouterAgentPortBinding filter N/A N/A N/A l3_hamode_db L3HARouterAgentPortBinding router_id N/A router N/A id all N/A N/A N/A self assertEqual N/A None None N/A N/A r agent N/A r res N/A bindings N/A N/A N/A self plugin get_l3_bindings_hosting_router_with_ha_states N/A self admin_ctx N/A router N/A id N/A N/A N/A self assertEqual N/A bindings N/A test_get_l3_bindings_hosting_router_with_ha_states_not_scheduled N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False N/A res N/A N/A N/A N/A N/A N/A N/A N/A self admin_ctx session query N/A l3_hamode_db L3HARouterAgentPortBinding filter N/A N/A N/A l3_hamode_db L3HARouterAgentPortBinding router_id N/A router N/A id all N/A N/A N/A self assertEqual N/A N/A N/A r agent N/A r res N/A bindings N/A N/A N/A self plugin get_l3_bindings_hosting_router_with_ha_states N/A self admin_ctx N/A router N/A id N/A N/A N/A self assertEqual N/A bindings N/A test_get_l3_bindings_hosting_router_with_ha_states_active_and_dead N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A N/A N/A N/A mock patch object N/A agents_db Agent is_active new_callable N/A mock PropertyMock return_value False N/A N/A N/A N/A N/A self plugin update_routers_states N/A self admin_ctx N/A N/A router N/A id active N/A N/A self agent1 N/A host N/A bindings N/A N/A N/A self plugin get_l3_bindings_hosting_router_with_ha_states N/A self admin_ctx N/A router N/A id N/A agent_ids N/A N/A N/A N/A agent N/A 0 N/A id N/A agent N/A 1 N/A agent bindings N/A N/A N/A self assertIn N/A N/A N/A self agent1 N/A id standby agent_ids N/A test_router_created_in_active_state N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A N/A N/A self assertEqual N/A n_const ROUTER_STATUS_ACTIVE N/A router N/A status N/A test_router_update_stay_active N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A N/A router N/A name test_update N/A router_updated N/A N/A N/A self plugin _update_router_db N/A self admin_ctx N/A router N/A id router N/A N/A N/A self assertEqual N/A n_const ROUTER_STATUS_ACTIVE N/A router_updated N/A status N/A test_allocating_router_hidden_from_sync N/A N/A self N/A N/A N/A N/A r1 r2 N/A N/A N/A self _create_router N/A N/A self _create_router N/A N/A r1 N/A status N/A n_const ROUTER_STATUS_ALLOCATING N/A N/A N/A N/A self plugin _update_router_db N/A self admin_ctx N/A r1 N/A id r1 N/A get_method N/A N/A self plugin _get_active_l3_agent_routers_sync_data N/A expected N/A N/A N/A N/A self plugin get_router N/A self admin_ctx N/A r2 N/A id N/A N/A N/A self assertEqual expected N/A get_method N/A self admin_ctx None None N/A N/A r1 N/A id N/A r2 N/A id N/A N/A r1 N/A status N/A n_const ROUTER_STATUS_ACTIVE N/A N/A N/A N/A self plugin _update_router_db N/A self admin_ctx N/A r1 N/A id r1 N/A N/A N/A expected append N/A N/A N/A self plugin get_router N/A self admin_ctx N/A r1 N/A id N/A expected N/A sorted N/A N/A r N/A id N/A r expected N/A result N/A sorted N/A N/A r N/A id N/A r N/A get_method N/A self admin_ctx None None N/A N/A r1 N/A id N/A r2 N/A id N/A N/A N/A self assertEqual expected result N/A test_router_ha_update_allocating_then_active N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A _orig N/A N/A self plugin _delete_ha_interfaces check_state N/A N/A context router_id N/A N/A N/A N/A N/A self assertEqual N/A n_const ROUTER_STATUS_ALLOCATING N/A N/A N/A N/A self plugin _get_router context router_id N/A status N/A N/A _orig context router_id N/A N/A N/A N/A N/A mock patch object N/A self plugin _delete_ha_interfaces side_effect check_state ha_mock N/A N/A router N/A N/A self _migrate_router N/A router N/A id ha False N/A N/A N/A self assertTrue N/A ha_mock called N/A N/A N/A self assertEqual N/A n_const ROUTER_STATUS_ACTIVE N/A router N/A status N/A test_router_created_allocating_state_during_interface_create N/A N/A self N/A N/A N/A _orig N/A N/A self plugin _create_ha_interfaces check_state N/A N/A context router_db ha_network N/A N/A N/A N/A N/A self assertEqual N/A n_const ROUTER_STATUS_ALLOCATING N/A router_db status N/A N/A _orig context router_db ha_network N/A N/A N/A N/A N/A mock patch object N/A self plugin _create_ha_interfaces side_effect check_state ha_mock N/A N/A router N/A N/A self _create_router N/A N/A N/A self assertTrue N/A ha_mock called N/A N/A N/A self assertEqual N/A n_const ROUTER_STATUS_ACTIVE N/A router N/A status N/A test_ha_router_create N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A N/A N/A self assertTrue N/A router N/A ha N/A test_ha_router_create_with_distributed N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha True distributed True N/A N/A N/A self assertTrue N/A router N/A ha N/A N/A N/A self assertTrue N/A router N/A distributed N/A ha_network N/A N/A N/A self plugin get_ha_network N/A self admin_ctx N/A router N/A tenant_id N/A N/A N/A self assertIsNotNone ha_network N/A test_no_ha_router_create N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False N/A N/A N/A self assertFalse N/A router N/A ha N/A test_add_ha_network_settings N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override l3_ha_network_type abc N/A N/A N/A N/A cfg CONF set_override l3_ha_network_physical_name def N/A network N/A N/A N/A N/A N/A self plugin _add_ha_network_settings network N/A N/A N/A self assertEqual abc N/A network N/A N/A providernet NETWORK_TYPE N/A N/A N/A self assertEqual def N/A network N/A N/A providernet PHYSICAL_NETWORK N/A test_router_create_with_ha_conf_enabled N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override l3_ha True N/A router N/A N/A self _create_router ha None N/A N/A N/A self assertTrue N/A router N/A ha N/A test_ha_router_delete_with_distributed N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha True distributed True N/A N/A N/A N/A self plugin delete_router N/A self admin_ctx N/A router N/A id N/A N/A N/A self assertRaises N/A l3 RouterNotFound N/A N/A self plugin _get_router N/A self admin_ctx N/A router N/A id N/A test_migration_from_ha N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A N/A N/A self assertTrue N/A router N/A ha N/A router N/A N/A self _migrate_router N/A router N/A id False N/A N/A N/A self assertFalse N/A N/A router extra_attributes N/A ha N/A N/A N/A self assertIsNone N/A N/A router extra_attributes N/A ha_vr_id N/A test_migration_to_ha N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False N/A N/A N/A self assertFalse N/A router N/A ha N/A router N/A N/A self _migrate_router N/A router N/A id True N/A N/A N/A self assertTrue N/A N/A router extra_attributes N/A ha N/A N/A N/A self assertIsNotNone N/A N/A router extra_attributes N/A ha_vr_id N/A test_migration_requires_admin_state_down N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False N/A N/A N/A self assertRaises N/A n_exc BadRequest N/A self _update_router N/A router N/A id ha True N/A test_migrate_ha_router_to_distributed_and_ha N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha True admin_state_up False distributed False N/A N/A N/A self assertTrue N/A router N/A ha N/A N/A N/A self assertRaises N/A l3_ext_ha_mode DVRmodeUpdateOfHaNotSupported N/A self _update_router N/A router N/A id ha True distributed True N/A test_migrate_ha_router_to_distributed_and_not_ha N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha True admin_state_up False distributed False N/A N/A N/A self assertTrue N/A router N/A ha N/A N/A N/A self assertRaises N/A l3_ext_ha_mode DVRmodeUpdateOfHaNotSupported N/A self _update_router N/A router N/A id ha False distributed True N/A test_migrate_dvr_router_to_ha_and_not_dvr N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False admin_state_up False distributed True N/A N/A N/A self assertTrue N/A router N/A distributed N/A N/A N/A self assertRaises N/A l3_ext_ha_mode HAmodeUpdateOfDvrNotSupported N/A self _update_router N/A router N/A id ha True distributed True N/A test_migrate_dvr_router_to_ha_and_dvr N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False admin_state_up False distributed True N/A N/A N/A self assertTrue N/A router N/A distributed N/A N/A N/A self assertRaises N/A l3_ext_ha_mode HAmodeUpdateOfDvrNotSupported N/A self _update_router N/A router N/A id ha True distributed True N/A test_migrate_distributed_router_to_ha N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False distributed True N/A N/A N/A self assertFalse N/A router N/A ha N/A N/A N/A self assertTrue N/A router N/A distributed N/A N/A N/A self assertRaises N/A l3_ext_ha_mode HAmodeUpdateOfDvrNotSupported N/A self _update_router N/A router N/A id ha True N/A test_migrate_legacy_router_to_distributed_and_ha N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False distributed False N/A N/A N/A self assertFalse N/A router N/A ha N/A N/A N/A self assertFalse N/A router N/A distributed N/A N/A N/A self assertRaises N/A l3_ext_ha_mode UpdateToDvrHamodeNotSupported N/A self _update_router N/A router N/A id ha True distributed True N/A test_unbind_ha_router N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A bound_agents N/A N/A N/A self plugin get_l3_agents_hosting_routers N/A self admin_ctx N/A N/A router N/A id N/A N/A N/A self assertEqual 2 N/A len bound_agents N/A N/A N/A N/A mock patch object N/A manager NeutronManager get_service_plugins mock_manager N/A N/A N/A N/A N/A self plugin _unbind_ha_router N/A self admin_ctx N/A router N/A id N/A bound_agents N/A N/A N/A self plugin get_l3_agents_hosting_routers N/A self admin_ctx N/A N/A router N/A id N/A N/A N/A self assertEqual 0 N/A len bound_agents N/A N/A N/A self assertEqual 2 N/A mock_manager call_count N/A test_get_ha_sync_data_for_host_with_non_dvr_agent N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object N/A self plugin _get_dvr_sync_data mock_get_sync N/A N/A N/A N/A self plugin supported_extension_aliases N/A dvr l3-ha N/A N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A N/A N/A self assertFalse N/A mock_get_sync called N/A test_get_ha_sync_data_for_host_with_dvr_agent N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object N/A self plugin _get_dvr_sync_data mock_get_sync N/A N/A N/A N/A self plugin supported_extension_aliases N/A dvr l3-ha N/A N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent2 N/A host N/A self agent2 N/A N/A N/A self assertTrue N/A mock_get_sync called N/A test_l3_agent_routers_query_interface N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A routers N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A N/A N/A self assertEqual 1 N/A len routers N/A router N/A routers N/A 0 N/A N/A N/A self assertIsNotNone N/A N/A router get ha N/A interface N/A N/A router get N/A constants HA_INTERFACE_KEY N/A N/A N/A self assertIsNotNone interface N/A N/A N/A self assertEqual N/A constants DEVICE_OWNER_ROUTER_HA_INTF N/A interface N/A device_owner N/A subnets N/A interface N/A subnets N/A N/A N/A self assertEqual 1 N/A len subnets N/A N/A N/A self assertEqual N/A N/A cfg CONF l3_ha_net_cidr N/A N/A subnets N/A 0 N/A cidr N/A test_unique_ha_network_per_tenant N/A N/A self N/A N/A N/A tenant1 N/A _uuid N/A tenant2 N/A _uuid N/A N/A N/A self _create_router tenant_id tenant1 N/A N/A N/A self _create_router tenant_id tenant2 N/A ha_network1 N/A N/A N/A self plugin get_ha_network N/A self admin_ctx tenant1 N/A ha_network2 N/A N/A N/A self plugin get_ha_network N/A self admin_ctx tenant2 N/A N/A N/A self assertNotEqual N/A ha_network1 N/A network_id N/A ha_network2 N/A network_id N/A _deployed_router_change_ha_flag N/A N/A self to_ha N/A N/A N/A router1 N/A N/A self _create_router ha N/A to_ha N/A routers N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A router N/A routers N/A 0 N/A interface N/A N/A router get N/A constants HA_INTERFACE_KEY N/A to_ha N/A N/A N/A N/A self assertIsNone interface N/A N/A N/A N/A self assertIsNotNone interface N/A N/A N/A self _migrate_router N/A router N/A id to_ha N/A N/A N/A N/A self plugin schedule_router N/A self admin_ctx N/A router1 N/A id N/A routers N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A router N/A routers N/A 0 N/A interface N/A N/A router get N/A constants HA_INTERFACE_KEY N/A to_ha N/A N/A N/A N/A self assertIsNotNone interface N/A N/A N/A N/A self assertIsNone interface N/A test_deployed_router_can_have_ha_enabled N/A N/A self N/A N/A N/A N/A N/A self _deployed_router_change_ha_flag to_ha True N/A test_deployed_router_can_have_ha_disabled N/A N/A self N/A N/A N/A N/A N/A self _deployed_router_change_ha_flag to_ha False N/A test_create_ha_router_notifies_agent N/A N/A self N/A N/A N/A N/A N/A self _create_router N/A N/A N/A self assertTrue N/A N/A self notif_m called N/A test_update_router_to_ha_notifies_agent N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False N/A N/A N/A N/A self notif_m reset_mock N/A N/A N/A self _migrate_router N/A router N/A id True N/A N/A N/A self assertTrue N/A N/A self notif_m called N/A test_unique_vr_id_between_routers N/A N/A self N/A N/A N/A N/A N/A self _create_router N/A N/A N/A self _create_router N/A routers N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A N/A N/A self assertEqual 2 N/A len routers N/A N/A N/A self assertNotEqual N/A N/A routers N/A 0 N/A ha_vr_id N/A N/A routers N/A 1 N/A ha_vr_id N/A test_vr_id_depleted N/A N/A self N/A N/A N/A N/A N/A self assertRaises N/A l3_ext_ha_mode NoVRIDAvailable N/A self _create_router N/A N/A N/A mock patch neutron.db.l3_hamode_db.VR_ID_RANGE new N/A set N/A range 1 1 test_vr_id_unique_range_per_tenant N/A N/A self N/A N/A N/A N/A N/A self _create_router N/A N/A N/A self _create_router tenant_id N/A _uuid N/A routers N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A N/A N/A self assertEqual 2 N/A len routers N/A N/A N/A self assertEqual N/A N/A routers N/A 0 N/A ha_vr_id N/A N/A routers N/A 1 N/A ha_vr_id N/A N/A N/A mock patch neutron.db.l3_hamode_db.VR_ID_RANGE new N/A set N/A range 1 2 test_vr_id_allocation_contraint_conflict N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A network N/A N/A N/A self plugin get_ha_network N/A self admin_ctx N/A router N/A tenant_id N/A N/A N/A N/A mock patch object N/A self plugin _get_allocated_vr_id return_value N/A set alloc N/A N/A N/A N/A self assertRaises N/A l3_ext_ha_mode MaxVRIDAllocationTriesReached N/A N/A self plugin _allocate_vr_id N/A self admin_ctx N/A network network_id N/A router N/A id N/A N/A N/A self assertEqual 2 N/A len N/A alloc mock_calls N/A N/A N/A mock patch neutron.db.l3_hamode_db.MAX_ALLOCATION_TRIES new 2 test_vr_id_allocation_delete_router N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A network N/A N/A N/A self plugin get_ha_network N/A self admin_ctx N/A router N/A tenant_id N/A allocs_before N/A N/A N/A self plugin _get_allocated_vr_id N/A self admin_ctx N/A network network_id N/A router N/A N/A self _create_router N/A allocs_current N/A N/A N/A self plugin _get_allocated_vr_id N/A self admin_ctx N/A network network_id N/A N/A N/A self assertNotEqual allocs_before allocs_current N/A N/A N/A N/A self plugin delete_router N/A self admin_ctx N/A router N/A id N/A allocs_after N/A N/A N/A self plugin _get_allocated_vr_id N/A self admin_ctx N/A network network_id N/A N/A N/A self assertEqual allocs_before allocs_after N/A test_vr_id_allocation_router_migration N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A network N/A N/A N/A self plugin get_ha_network N/A self admin_ctx N/A router N/A tenant_id N/A allocs_before N/A N/A N/A self plugin _get_allocated_vr_id N/A self admin_ctx N/A network network_id N/A router N/A N/A self _create_router N/A N/A N/A self _migrate_router N/A router N/A id False N/A allocs_after N/A N/A N/A self plugin _get_allocated_vr_id N/A self admin_ctx N/A network network_id N/A N/A N/A self assertEqual allocs_before allocs_after N/A test_one_ha_router_one_not N/A N/A self N/A N/A N/A N/A N/A self _create_router ha False N/A N/A N/A self _create_router N/A routers N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A ha0 N/A N/A routers N/A 0 N/A ha N/A ha1 N/A N/A routers N/A 1 N/A ha N/A N/A N/A self assertNotEqual ha0 ha1 N/A test_add_ha_port_subtransactions_blocked N/A N/A self N/A N/A N/A N/A N/A N/A N/A self admin_ctx session begin N/A N/A N/A N/A self assertRaises RuntimeError N/A N/A self plugin add_ha_port N/A self admin_ctx id id id N/A test_add_ha_port_binding_failure_rolls_back_port N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A device_filter N/A device_id N/A N/A router N/A id N/A ports_before N/A N/A N/A self core_plugin get_ports N/A self admin_ctx filters device_filter N/A network N/A N/A N/A self plugin get_ha_network N/A self admin_ctx N/A router N/A tenant_id N/A N/A N/A N/A mock patch object l3_hamode_db L3HARouterAgentPortBinding side_effect ValueError N/A N/A N/A N/A self assertRaises ValueError N/A N/A self plugin add_ha_port N/A self admin_ctx N/A router N/A id N/A network network_id N/A router N/A tenant_id N/A ports_after N/A N/A N/A self core_plugin get_ports N/A self admin_ctx filters device_filter N/A N/A N/A self assertEqual ports_before ports_after N/A test_create_ha_network_binding_failure_rolls_back_network N/A N/A self N/A N/A N/A networks_before N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A N/A mock patch object l3_hamode_db L3HARouterNetwork side_effect ValueError N/A N/A N/A N/A self assertRaises ValueError N/A N/A self plugin _create_ha_network N/A self admin_ctx N/A _uuid N/A networks_after N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertEqual networks_before networks_after N/A test_create_ha_network_subnet_failure_rolls_back_network N/A N/A self N/A N/A N/A networks_before N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A N/A mock patch object N/A self plugin _create_ha_subnet side_effect ValueError N/A N/A N/A N/A self assertRaises ValueError N/A N/A self plugin _create_ha_network N/A self admin_ctx N/A _uuid N/A networks_after N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertEqual networks_before networks_after N/A test_create_ha_interfaces_and_ensure_network_net_exists N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A router_db N/A N/A N/A self plugin _get_router N/A self admin_ctx N/A router N/A id N/A N/A N/A N/A mock patch object N/A self plugin _create_ha_network create N/A N/A N/A N/A N/A self plugin _create_ha_interfaces_and_ensure_network N/A self admin_ctx router_db N/A N/A N/A self assertFalse N/A create called N/A test_create_ha_interfaces_and_ensure_network_concurrent_create N/A N/A self N/A N/A N/A router N/A N/A self _create_router ha False N/A router_db N/A N/A N/A self plugin _get_router N/A self admin_ctx N/A router N/A id N/A orig_create N/A N/A self plugin _create_ha_network N/A created_nets N/A _create_ha_network N/A N/A N/A args kwargs N/A N/A N/A N/A created_nets append N/A orig_create args kwargs N/A N/A N/A db_exc DBDuplicateEntry columns N/A tenant_id N/A N/A N/A N/A N/A mock patch object N/A self plugin _create_ha_network new _create_ha_network N/A N/A net N/A N/A N/A N/A self plugin _create_ha_interfaces_and_ensure_network N/A self admin_ctx router_db N/A 1 N/A N/A N/A self assertEqual N/A net created_nets N/A _test_ensure_with_patched_int_create N/A N/A self _create_ha_interfaces N/A N/A N/A router N/A N/A self _create_router ha False N/A router_db N/A N/A N/A self plugin _get_router N/A self admin_ctx N/A router N/A id N/A N/A N/A N/A mock patch object N/A self plugin _create_ha_interfaces new _create_ha_interfaces N/A N/A N/A N/A N/A self plugin _create_ha_interfaces_and_ensure_network N/A self admin_ctx router_db N/A N/A N/A self assertTrue N/A _create_ha_interfaces called N/A test_create_ha_interfaces_and_ensure_network_concurrent_delete N/A N/A self N/A N/A N/A orig_create N/A N/A self plugin _create_ha_interfaces _create_ha_interfaces N/A N/A ctx rdb ha_net N/A N/A N/A N/A N/A getattr _create_ha_interfaces called False N/A N/A N/A setattr _create_ha_interfaces called True N/A N/A N/A N/A self core_plugin delete_network N/A self admin_ctx N/A ha_net N/A network_id N/A N/A orig_create ctx rdb ha_net N/A N/A N/A N/A self _test_ensure_with_patched_int_create _create_ha_interfaces N/A test_create_ha_interfaces_and_ensure_network_concurrent_swap N/A N/A self N/A N/A N/A orig_create N/A N/A self plugin _create_ha_interfaces _create_ha_interfaces N/A N/A ctx rdb ha_net N/A N/A N/A N/A N/A getattr _create_ha_interfaces called False N/A N/A N/A setattr _create_ha_interfaces called True N/A N/A N/A N/A self core_plugin delete_network N/A self admin_ctx N/A ha_net N/A network_id N/A N/A N/A N/A self plugin _create_ha_network N/A self admin_ctx N/A rdb tenant_id N/A N/A orig_create ctx rdb ha_net N/A N/A N/A N/A self _test_ensure_with_patched_int_create _create_ha_interfaces N/A test_create_ha_network_tenant_binding_raises_duplicate N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A network N/A N/A N/A self plugin get_ha_network N/A self admin_ctx N/A router N/A tenant_id N/A N/A N/A N/A self plugin _create_ha_network_tenant_binding N/A self admin_ctx t1 N/A network N/A network_id N/A N/A N/A testtools ExpectedException N/A db_exc DBDuplicateEntry N/A N/A N/A N/A N/A self plugin _create_ha_network_tenant_binding N/A self admin_ctx t1 N/A network N/A network_id N/A test_create_ha_interfaces_binding_failure_rolls_back_ports N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A network N/A N/A N/A self plugin get_ha_network N/A self admin_ctx N/A router N/A tenant_id N/A device_filter N/A device_id N/A N/A router N/A id N/A ports_before N/A N/A N/A self core_plugin get_ports N/A self admin_ctx filters device_filter N/A router_db N/A N/A N/A self plugin _get_router N/A self admin_ctx N/A router N/A id N/A N/A N/A N/A mock patch object l3_hamode_db L3HARouterAgentPortBinding side_effect ValueError N/A N/A N/A N/A self assertRaises ValueError N/A N/A self plugin _create_ha_interfaces N/A self admin_ctx router_db network N/A ports_after N/A N/A N/A self core_plugin get_ports N/A self admin_ctx filters device_filter N/A N/A N/A self assertEqual ports_before ports_after N/A test_create_router_db_ha_attribute_failure_rolls_back_router N/A N/A self N/A N/A N/A routers_before N/A N/A N/A self plugin get_routers N/A self admin_ctx N/A method N/A _set_vr_id _create_ha_interfaces _notify_ha_interfaces_updated N/A N/A N/A N/A N/A mock patch object N/A self plugin method side_effect ValueError N/A N/A N/A N/A self assertRaises ValueError N/A self _create_router N/A routers_after N/A N/A N/A self plugin get_routers N/A self admin_ctx N/A N/A N/A self assertEqual routers_before routers_after N/A test_get_active_host_for_ha_router N/A N/A self N/A N/A N/A router N/A N/A self _create_router N/A N/A N/A self assertEqual None N/A N/A N/A self plugin get_active_host_for_ha_router N/A self admin_ctx N/A router N/A id N/A N/A N/A N/A self plugin update_routers_states N/A self admin_ctx N/A N/A router N/A id active N/A N/A self agent2 N/A host N/A N/A N/A self assertEqual N/A N/A self agent2 N/A host N/A N/A N/A self plugin get_active_host_for_ha_router N/A self admin_ctx N/A router N/A id N/A test_update_routers_states N/A N/A self N/A N/A N/A router1 N/A N/A self _create_router N/A router2 N/A N/A self _create_router N/A routers N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A router routers N/A N/A N/A N/A self assertEqual standby N/A router N/A N/A n_const HA_ROUTER_STATE_KEY N/A states N/A N/A router1 N/A id N/A router2 N/A id active standby N/A N/A N/A N/A self plugin update_routers_states N/A self admin_ctx states N/A N/A self agent1 N/A host N/A routers N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A router routers N/A N/A N/A N/A self assertEqual N/A states N/A N/A router N/A id N/A router N/A N/A n_const HA_ROUTER_STATE_KEY N/A test_set_router_states_handles_concurrently_deleted_router N/A N/A self N/A N/A N/A router1 N/A N/A self _create_router N/A router2 N/A N/A self _create_router N/A bindings N/A N/A N/A self plugin get_ha_router_port_bindings N/A self admin_ctx N/A N/A router1 N/A id N/A router2 N/A id N/A N/A N/A N/A self plugin delete_router N/A self admin_ctx N/A router1 N/A id N/A N/A N/A N/A self plugin _set_router_states N/A self admin_ctx bindings N/A N/A router1 N/A id N/A router2 N/A id active active N/A routers N/A N/A N/A self plugin get_ha_sync_data_for_host N/A self admin_ctx N/A N/A self agent1 N/A host N/A self agent1 N/A N/A N/A self assertEqual active N/A N/A routers N/A 0 N/A N/A n_const HA_ROUTER_STATE_KEY N/A test_update_routers_states_port_not_found N/A N/A self N/A N/A N/A router1 N/A N/A self _create_router N/A port N/A id device_id foo N/A router1 N/A id N/A N/A N/A N/A mock patch object N/A self core_plugin get_ports return_value N/A port N/A N/A N/A N/A N/A mock patch object N/A self core_plugin update_port side_effect N/A N/A n_exc PortNotFound port_id foo N/A N/A states N/A N/A router1 N/A id active N/A N/A N/A N/A self plugin update_routers_states N/A self admin_ctx states N/A N/A self agent1 N/A host N/A test_exclude_dvr_agents_for_ha_candidates N/A N/A self N/A N/A N/A Test dvr agents configured with "dvr" only, as opposed to "dvr_snat",
        are excluded.
        This test case tests that when get_number_of_agents_for_scheduling
        is called, it does not count dvr only agents.
         N/A N/A N/A helpers register_l3_agent host_3 N/A n_const L3_AGENT_MODE_DVR N/A num_ha_candidates N/A N/A N/A self plugin get_number_of_agents_for_scheduling N/A self admin_ctx N/A N/A N/A self assertEqual 2 num_ha_candidates N/A test_include_dvr_snat_agents_for_ha_candidates N/A N/A self N/A N/A N/A Test dvr agents configured with "dvr_snat" are excluded.
        This test case tests that when get_number_of_agents_for_scheduling
        is called, it ounts dvr_snat agents.
         N/A N/A N/A helpers register_l3_agent host_3 N/A n_const L3_AGENT_MODE_DVR_SNAT N/A num_ha_candidates N/A N/A N/A self plugin get_number_of_agents_for_scheduling N/A self admin_ctx N/A N/A N/A self assertEqual 3 num_ha_candidates N/A test_get_number_of_agents_for_scheduling_not_enough_agents N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF set_override min_l3_agents_per_router 3 N/A N/A N/A helpers kill_agent N/A N/A N/A helpers register_l3_agent host l3host_3 N/A id N/A N/A N/A self assertRaises N/A l3_ext_ha_mode HANotEnoughAvailableAgents N/A N/A self plugin get_number_of_agents_for_scheduling N/A self admin_ctx N/A test_ha_network_deleted_if_no_ha_router_present_two_tenants N/A N/A self N/A N/A N/A router1 N/A N/A self _create_router N/A router2 N/A N/A self _create_router tenant_id tenant2 N/A nets_before N/A N/A net N/A name N/A net N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertIn N/A HA network tenant %s N/A router1 N/A tenant_id nets_before N/A N/A N/A self assertIn N/A HA network tenant %s N/A router2 N/A tenant_id nets_before N/A N/A N/A N/A self plugin delete_router N/A self admin_ctx N/A router1 N/A id N/A nets_after N/A N/A net N/A name N/A net N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertNotIn N/A HA network tenant %s N/A router1 N/A tenant_id nets_after N/A N/A N/A self assertIn N/A HA network tenant %s N/A router2 N/A tenant_id nets_after N/A test_ha_network_is_not_delete_if_ha_router_is_present N/A N/A self N/A N/A N/A router1 N/A N/A self _create_router N/A router2 N/A N/A self _create_router N/A nets_before N/A N/A net N/A name N/A net N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertIn N/A HA network tenant %s N/A router1 N/A tenant_id nets_before N/A N/A N/A N/A self plugin delete_router N/A self admin_ctx N/A router2 N/A id N/A nets_after N/A N/A net N/A name N/A net N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertIn N/A HA network tenant %s N/A router1 N/A tenant_id nets_after N/A test_ha_network_delete_ha_and_non_ha_router N/A N/A self N/A N/A N/A router1 N/A N/A self _create_router ha False N/A router2 N/A N/A self _create_router N/A nets_before N/A N/A net N/A name N/A net N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertIn N/A HA network tenant %s N/A router1 N/A tenant_id nets_before N/A N/A N/A N/A self plugin delete_router N/A self admin_ctx N/A router2 N/A id N/A nets_after N/A N/A net N/A name N/A net N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertNotIn N/A HA network tenant %s N/A router1 N/A tenant_id nets_after N/A _test_ha_network_is_not_deleted_raise_exception N/A N/A self exception N/A N/A N/A router1 N/A N/A self _create_router N/A nets_before N/A N/A net N/A name N/A net N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertIn N/A HA network tenant %s N/A router1 N/A tenant_id nets_before N/A N/A N/A N/A mock patch object N/A self plugin _delete_ha_network side_effect exception N/A N/A N/A N/A N/A self plugin delete_router N/A self admin_ctx N/A router1 N/A id N/A nets_after N/A N/A net N/A name N/A net N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertIn N/A HA network tenant %s N/A router1 N/A tenant_id nets_after N/A test_ha_network_is_not_deleted_if_another_ha_router_is_created N/A N/A self N/A N/A N/A N/A N/A self _test_ha_network_is_not_deleted_raise_exception N/A N/A sa exc InvalidRequestError N/A test_ha_network_is_not_deleted_if_network_in_use N/A N/A self N/A N/A N/A N/A N/A self _test_ha_network_is_not_deleted_raise_exception N/A N/A n_exc NetworkInUse net_id foo_net_id N/A test_ha_network_is_not_deleted_if_db_deleted_error N/A N/A self N/A N/A N/A N/A N/A self _test_ha_network_is_not_deleted_raise_exception N/A N/A N/A orm exc ObjectDeletedError None N/A test_ha_router_create_failed_no_ha_network_delete N/A N/A self N/A N/A N/A tenant_id foo_tenant_id N/A nets_before N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertNotIn N/A HA network tenant %s tenant_id nets_before N/A N/A N/A N/A mock patch object N/A self core_plugin create_network side_effect N/A n_exc NoNetworkAvailable N/A N/A N/A N/A self assertRaises N/A n_exc NoNetworkAvailable N/A self _create_router True tenant_id N/A nets_after N/A N/A N/A self core_plugin get_networks N/A self admin_ctx N/A N/A N/A self assertEqual nets_before nets_after N/A N/A N/A self assertNotIn N/A HA network tenant %s tenant_id nets_after N/A test_update_port_status_port_bingding_deleted_concurrently N/A N/A self N/A N/A N/A router1 N/A N/A self _create_router N/A states N/A N/A router1 N/A id active N/A N/A N/A N/A mock patch object N/A self plugin get_ha_router_port_bindings N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self admin_ctx session query N/A l3_hamode_db L3HARouterAgentPortBinding filter_by router_id N/A router1 N/A id delete N/A N/A N/A N/A self plugin update_routers_states N/A self admin_ctx states N/A N/A self agent1 N/A host N/A N/A L3HAModeDbTestCase N/A L3HATestFramework N/A _create_network N/A N/A self plugin ctx name tenant_id N/A net tenant1 N/A N/A network N/A network N/A name shared admin_state_up tenant_id name False True tenant_id N/A N/A N/A N/A plugin create_network ctx network N/A id N/A _create_subnet N/A N/A self plugin ctx network_id cidr name tenant_id N/A 10.0.0.0/8 subnet tenant1 N/A N/A subnet N/A subnet N/A name ip_version network_id cidr gateway_ip allocation_pools dns_nameservers host_routes tenant_id enable_dhcp ipv6_ra_mode name 4 network_id cidr N/A constants ATTR_NOT_SPECIFIED N/A constants ATTR_NOT_SPECIFIED N/A constants ATTR_NOT_SPECIFIED N/A constants ATTR_NOT_SPECIFIED tenant_id True N/A constants ATTR_NOT_SPECIFIED N/A created_subnet N/A N/A plugin create_subnet ctx subnet N/A created_subnet N/A test_remove_ha_in_use N/A N/A self N/A N/A N/A router N/A N/A self _create_router ctx N/A self admin_ctx N/A network_id N/A N/A self _create_network N/A self core_plugin N/A self admin_ctx N/A subnet N/A N/A self _create_subnet N/A self core_plugin N/A self admin_ctx network_id N/A interface_info N/A subnet_id N/A subnet N/A id N/A N/A N/A N/A self plugin add_router_interface N/A self admin_ctx N/A router N/A id interface_info N/A N/A N/A self assertRaises N/A l3 RouterInUse N/A N/A self plugin delete_router N/A self admin_ctx N/A router N/A id N/A bindings N/A N/A N/A self plugin get_ha_router_port_bindings N/A self admin_ctx N/A N/A router N/A id N/A N/A N/A self assertEqual 2 N/A len bindings N/A test_update_router_port_bindings_no_ports N/A N/A self N/A N/A N/A N/A N/A N/A self plugin _update_router_port_bindings N/A self admin_ctx N/A N/A N/A self agent1 N/A host N/A _get_first_interface N/A N/A self router_id N/A N/A N/A device_filter N/A device_id device_owner N/A router_id N/A N/A constants DEVICE_OWNER_HA_REPLICATED_INT N/A N/A N/A N/A N/A self core_plugin get_ports N/A self admin_ctx filters device_filter N/A 0 N/A test_update_router_port_bindings_updates_host N/A N/A self N/A N/A N/A network_id N/A N/A self _create_network N/A self core_plugin N/A self admin_ctx N/A subnet N/A N/A self _create_subnet N/A self core_plugin N/A self admin_ctx network_id N/A interface_info N/A subnet_id N/A subnet N/A id N/A router N/A N/A self _create_router N/A N/A N/A N/A self plugin add_router_interface N/A self admin_ctx N/A router N/A id interface_info N/A N/A N/A N/A self plugin _update_router_port_bindings N/A self admin_ctx N/A N/A router N/A id active N/A N/A self agent1 N/A host N/A port N/A N/A self _get_first_interface N/A router N/A id N/A N/A N/A self assertEqual N/A N/A self agent1 N/A host N/A port N/A N/A portbindings HOST_ID N/A N/A N/A N/A self plugin _update_router_port_bindings N/A self admin_ctx N/A N/A router N/A id active N/A N/A self agent2 N/A host N/A port N/A N/A self _get_first_interface N/A router N/A id N/A N/A N/A self assertEqual N/A N/A self agent2 N/A host N/A port N/A N/A portbindings HOST_ID N/A test_ensure_host_set_on_ports_binds_correctly N/A N/A self N/A N/A N/A network_id N/A N/A self _create_network N/A self core_plugin N/A self admin_ctx N/A subnet N/A N/A self _create_subnet N/A self core_plugin N/A self admin_ctx network_id N/A interface_info N/A subnet_id N/A subnet N/A id N/A router N/A N/A self _create_router N/A N/A N/A N/A self plugin add_router_interface N/A self admin_ctx N/A router N/A id interface_info N/A port N/A N/A self _get_first_interface N/A router N/A id N/A N/A N/A self assertEqual N/A port N/A N/A portbindings HOST_ID N/A router N/A N/A N/A N/A self plugin list_active_sync_routers_on_active_l3_agent N/A self admin_ctx N/A N/A self agent1 N/A host N/A N/A router N/A id N/A 0 N/A callback N/A N/A l3_rpc L3RpcCallback N/A N/A callback _l3plugin N/A self plugin N/A N/A N/A callback _ensure_host_set_on_ports N/A self admin_ctx N/A N/A self agent1 N/A host N/A router N/A port N/A N/A self _get_first_interface N/A router N/A id N/A N/A N/A self assertEqual N/A N/A self agent1 N/A host N/A port N/A N/A portbindings HOST_ID N/A router N/A N/A N/A N/A self plugin list_active_sync_routers_on_active_l3_agent N/A self admin_ctx N/A N/A self agent1 N/A host N/A N/A router N/A id N/A 0 N/A N/A N/A callback _ensure_host_set_on_ports N/A self admin_ctx N/A N/A self agent2 N/A host N/A router N/A port N/A N/A self _get_first_interface N/A router N/A id N/A N/A N/A self assertEqual N/A N/A self agent1 N/A host N/A port N/A N/A portbindings HOST_ID N/A N/A L3HAUserTestCase N/A L3HATestFramework N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super L3HAUserTestCase self setUp N/A N/A self user_ctx N/A N/A context Context N/A _uuid N/A test_create_ha_router N/A N/A self N/A N/A N/A N/A N/A self _create_router ctx N/A self user_ctx N/A test_update_router N/A N/A self N/A N/A N/A router N/A N/A self _create_router ctx N/A self user_ctx N/A N/A N/A self _update_router N/A router N/A id ctx N/A self user_ctx N/A test_delete_router N/A N/A self N/A N/A N/A router N/A N/A self _create_router ctx N/A self user_ctx N/A N/A N/A N/A self plugin delete_router N/A self user_ctx N/A router N/A id N/A N/A