Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad AttributeLoad NameLoad attr attr For NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults kwarg body Expr Str If BoolOpOr CompareNotEq NameLoad Str CompareNotEq SubscriptLoad NameLoad Index Str Str body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str If CompareIn NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareNotEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareNotEq SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Str If NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr Call NameLoad CompareEq AttributeLoad NameLoad attr NameLoad CompareEq AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr CompareNotEq AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr UnaryOpInvert Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad ExceptHandler type NameLoad body Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If BoolOpOr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str body Return Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad BinOpAdd ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad If BoolOpOr CompareGt Call NameLoad NameLoad Num BoolOpAnd CompareEq Call NameLoad NameLoad Num CompareNotEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Str If BoolOpAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If BoolOpOr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr NameLoad body If CompareNotEq AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr Num body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword BinOpMod NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotEq NameLoad NameLoad body Assign NameStore BinOpMod Call NameLoad Str Dict Str Str NameLoad NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If BoolOpAnd BoolOpOr NameLoad NameLoad UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpAnd CompareIn Str NameLoad UnaryOpNot SubscriptLoad NameLoad Index Str body Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If BoolOpOr NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If BoolOpOr NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad TryExcept body For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Dict Str Str Str Str Str Str Str NameLoad BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn Str NameLoad body Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareEq AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Break Expr Call NameLoad NameLoad Str IfExp NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword Str keyword SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If BoolOpAnd UnaryOpNot NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad attr If NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Str If NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str UnaryOpNot NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr Assign NameStore Call NameLoad Str If BoolOpOr BoolOpAnd CompareEq NameLoad Num CompareGt NameLoad Num BoolOpAnd CompareEq NameLoad Num CompareGt NameLoad Num body Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad orelse If Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str CompareEq AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str attr If BoolOpAnd NameLoad SubscriptLoad NameLoad Index Str body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str body If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword AttributeLoad AttributeLoad NameLoad attr attr For NameStore SubscriptLoad NameLoad Index Str body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr keyword BinOpMod Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str body If CompareGt Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str Call NameLoad Str keyword AttributeLoad AttributeLoad NameLoad attr attr For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq NameLoad Num body If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore DictComp SubscriptLoad NameLoad Index Str NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp NameLoad comprehension NameStore SubscriptLoad NameLoad Index Str UnaryOpNot Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad If CompareGt NameLoad Num body Continue If BoolOpAnd CompareEq NameLoad Num CompareEq AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Str attr SubscriptLoad NameLoad Index Str body Continue Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Dict Str SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad If BoolOpAnd Call NameLoad NameLoad Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad For NameStore NameLoad body Assign NameStore Dict Str Dict Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword Str keyword NameLoad If NameLoad body Return NameLoad If UnaryOpNot NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword Str keyword NameLoad If BoolOpAnd CompareEq NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr body Return AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Return SubscriptLoad NameLoad Index Str If BoolOpAnd CompareEq NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr body Return AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareEq NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr body Return AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword Str keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword Str keyword NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body If NameLoad body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return ListComp Dict Str Str Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore CompareNotEq NameLoad AttributeLoad NameLoad attr If BoolOpOr NameLoad CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Assign NameStore Dict Str Str Str NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Dict Str Dict Str ListLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign NameStore Dict Str SubscriptLoad NameLoad Index Str If CompareIn SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore Dict Str Str Str NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad attr AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad attr AttributeLoad NameLoad attr attr UnaryOpInvert Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad attr AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore BinOpMod Call NameLoad Str Dict Str Str NameLoad NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr attr keyword NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad NameLoad Index Str If CompareIsNot NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str ListComp Call NameLoad AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr orelse Assign SubscriptStore NameLoad Index Str NameLoad For NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareIsNot NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For NameStore ListLoad Str Str Str body Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Str Str ListLoad NameLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad Str Raise Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Return Str If Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Return AttributeLoad AttributeLoad NameLoad attr attr Return BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareNotEq NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str Str Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad For NameStore NameLoad body If NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore BinOpMod Str Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str attr Str Str Assign NameStore NameLoad If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str SubscriptLoad NameLoad Index Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body TryExcept body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareIn Str NameLoad body Assign NameStore ListLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore CompareIn Str NameLoad Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore CompareNotEq Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str If BoolOpOr BoolOpAnd NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str If BoolOpAnd NameLoad CompareNotEq NameLoad SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BoolOpOr NameLoad NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad BoolOpOr NameLoad NameLoad Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIn Str NameLoad UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If SubscriptLoad NameLoad Index Str body Return Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpOr NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If BoolOpAnd NameLoad NameLoad NameLoad body Assign NameStore ListComp TupleLoad SubscriptLoad NameLoad Index Num UnaryOpNot SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore ListLoad For NameStore NameLoad body If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Return If UnaryOpNot AttributeLoad NameLoad attr body If NameLoad body If Call NameLoad NameLoad Str body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return orelse Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return orelse Raise Call AttributeLoad NameLoad attr keyword NameLoad If CompareNotEq NameLoad SubscriptLoad NameLoad Index Str body Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Str NameLoad decorator_list
N/A N/A functools N/A netaddr neutron_lib.api validators neutron_lib constants neutron_lib exceptions exc oslo_config cfg oslo_db exception db_exc oslo_log log logging oslo_utils excutils oslo_utils uuidutils sqlalchemy and_ sqlalchemy event sqlalchemy not_ neutron._i18n _ _LE _LI neutron.api.rpc.agentnotifiers l3_rpc_agent_api neutron.api.v2 attributes neutron.callbacks events neutron.callbacks exceptions neutron.callbacks registry neutron.callbacks resources neutron.common constants n_const neutron.common exceptions n_exc neutron.common ipv6_utils neutron.common utils neutron context ctx neutron.db api db_api neutron.db db_base_plugin_common neutron.db ipam_non_pluggable_backend neutron.db ipam_pluggable_backend neutron.db models_v2 neutron.db rbac_db_mixin rbac_mixin neutron.db rbac_db_models rbac_db neutron.db sqlalchemyutils neutron.db standardattrdescription_db stattr_db neutron.extensions l3 neutron ipam neutron.ipam subnet_alloc neutron manager neutron neutron_plugin_base_v2 neutron.notifiers nova nova_notifier neutron.plugins.common constants service_constants N/A LOG N/A N/A logging getLogger __name__ N/A AUTO_DELETE_PORT_OWNERS N/A N/A constants DEVICE_OWNER_DHCP N/A DNS_DOMAIN_DEFAULT openstacklocal. N/A FQDN_MAX_LEN 255 _check_subnet_not_used N/A N/A context subnet_id N/A N/A N/A N/A N/A kwargs N/A context subnet_id context subnet_id N/A N/A N/A registry notify N/A resources SUBNET N/A events BEFORE_DELETE None kwargs N/A N/A N/A N/A exceptions CallbackFailure N/A e N/A N/A N/A N/A exc SubnetInUse subnet_id subnet_id reason e N/A NeutronDbPluginV2 N/A N/A db_base_plugin_common DbBasePluginCommon N/A neutron_plugin_base_v2 NeutronPluginBaseV2 N/A rbac_mixin RbacPluginMixin N/A stattr_db StandardAttrDescriptionMixin N/A N/A V2 Neutron plugin interface implementation using SQLAlchemy models.

    Whenever a non-read call happens the plugin will call an event handler
    class method (e.g., network_created()).  The result is that this class
    can be sub-classed by other classes that add custom behaviors on certain
    events.
     N/A __native_bulk_support True N/A __native_pagination_support True N/A __native_sorting_support True __init__ N/A N/A self N/A N/A N/A N/A N/A self set_ipam_backend N/A N/A N/A cfg CONF notify_nova_on_port_status_changes N/A N/A N/A self nova_notifier N/A N/A nova_notifier Notifier N/A N/A N/A event listen N/A models_v2 Port after_insert N/A N/A self nova_notifier send_port_status N/A N/A N/A event listen N/A models_v2 Port after_update N/A N/A self nova_notifier send_port_status N/A N/A N/A event listen N/A N/A models_v2 Port status set N/A N/A self nova_notifier record_port_status_changed N/A e N/A N/A events BEFORE_CREATE N/A events BEFORE_UPDATE N/A events BEFORE_DELETE N/A N/A N/A N/A registry subscribe N/A self validate_network_rbac_policy_change N/A rbac_mixin RBAC_POLICY e N/A validate_network_rbac_policy_change N/A N/A self resource event trigger context object_type policy N/A kwargs N/A N/A Validates network RBAC policy changes.

        On creation, verify that the creator is an admin or that it owns the
        network it is sharing.

        On update and delete, make sure the tenant losing access does not have
        resources that depend on that access.
         N/A N/A N/A object_type network N/A N/A policy N/A action access_as_shared N/A N/A N/A net N/A N/A self _get_network context N/A policy N/A object_id N/A N/A event N/A N/A events BEFORE_CREATE N/A events BEFORE_UPDATE N/A N/A N/A N/A N/A context is_admin N/A N/A net N/A tenant_id N/A context tenant_id N/A N/A msg N/A _ Only admins can manipulate policies on networks they do not own. N/A N/A N/A exc InvalidInput error_message msg N/A tenant_to_check None N/A N/A event N/A events BEFORE_UPDATE N/A N/A new_tenant N/A N/A kwargs N/A policy_update N/A target_tenant N/A N/A N/A policy N/A target_tenant new_tenant N/A N/A tenant_to_check N/A policy N/A target_tenant N/A N/A event N/A events BEFORE_DELETE N/A N/A tenant_to_check N/A policy N/A target_tenant N/A tenant_to_check N/A N/A N/A N/A self ensure_no_tenant_ports_on_network N/A net N/A id N/A net N/A tenant_id tenant_to_check N/A ensure_no_tenant_ports_on_network N/A N/A self network_id net_tenant_id tenant_id N/A N/A N/A ctx_admin N/A N/A ctx get_admin_context N/A rb_model N/A rbac_db NetworkRBAC N/A other_rbac_entries N/A N/A N/A N/A self _model_query ctx_admin rb_model filter N/A and_ N/A N/A rb_model object_id network_id N/A N/A rb_model action access_as_shared N/A ports N/A N/A N/A N/A self _model_query ctx_admin N/A models_v2 Port filter N/A N/A N/A models_v2 Port network_id network_id N/A N/A tenant_id * N/A N/A other_rbac_entries N/A N/A other_rbac_entries filter N/A N/A rb_model target_tenant tenant_id N/A allowed_tenants N/A N/A entry N/A target_tenant N/A entry other_rbac_entries N/A N/A N/A allowed_tenants append net_tenant_id N/A ports N/A N/A ports filter N/A N/A N/A N/A N/A models_v2 Port tenant_id in_ allowed_tenants N/A N/A query N/A N/A other_rbac_entries filter N/A N/A rb_model target_tenant * N/A N/A N/A query count N/A N/A N/A ports N/A N/A ports filter N/A N/A N/A models_v2 Port tenant_id tenant_id N/A N/A N/A ports count N/A N/A N/A N/A n_exc InvalidSharedSetting network network_id N/A set_ipam_backend N/A N/A self N/A N/A N/A N/A N/A cfg CONF ipam_driver N/A N/A N/A self ipam N/A N/A ipam_pluggable_backend IpamPluggableBackend N/A N/A N/A self ipam N/A N/A ipam_non_pluggable_backend IpamNonPluggableBackend N/A _validate_host_route N/A N/A self route ip_version N/A N/A N/A N/A N/A N/A N/A netaddr IPNetwork N/A route N/A destination N/A N/A N/A netaddr IPAddress N/A route N/A nexthop N/A N/A N/A N/A N/A netaddr core AddrFormatError N/A N/A err_msg N/A N/A _ Invalid route: %s route N/A N/A N/A exc InvalidInput error_message err_msg N/A N/A ValueError N/A N/A err_msg N/A N/A _ Invalid route: %s route N/A N/A N/A exc InvalidInput error_message err_msg N/A N/A N/A self _validate_ip_version ip_version N/A route N/A nexthop nexthop N/A N/A N/A self _validate_ip_version ip_version N/A route N/A destination destination N/A _validate_shared_update N/A N/A self context id original updated N/A N/A N/A N/A N/A N/A updated N/A shared N/A original shared N/A updated N/A shared N/A N/A N/A ports N/A N/A N/A N/A self _model_query context N/A models_v2 Port filter N/A N/A N/A models_v2 Port network_id id N/A ports N/A N/A ports filter N/A not_ N/A N/A N/A N/A models_v2 Port device_owner startswith N/A constants DEVICE_OWNER_NETWORK_PREFIX N/A subnets N/A N/A N/A N/A self _model_query context N/A models_v2 Subnet filter N/A N/A N/A models_v2 Subnet network_id id N/A tenant_ids N/A set N/A N/A N/A port N/A tenant_id N/A port ports N/A N/A subnet N/A tenant_id N/A subnet subnets N/A N/A N/A N/A len tenant_ids 1 N/A N/A N/A len tenant_ids 1 N/A N/A N/A tenant_ids pop N/A original tenant_id N/A N/A N/A N/A n_exc InvalidSharedSetting network N/A original name N/A _validate_ipv6_attributes N/A N/A self subnet cur_subnet N/A N/A N/A cur_subnet N/A N/A N/A N/A self _validate_ipv6_update_dhcp subnet cur_subnet N/A N/A ra_mode_set N/A N/A validators is_attr_set N/A N/A subnet get ipv6_ra_mode N/A address_mode_set N/A N/A validators is_attr_set N/A N/A subnet get ipv6_address_mode N/A N/A N/A self _validate_ipv6_dhcp ra_mode_set address_mode_set N/A subnet N/A enable_dhcp N/A N/A ra_mode_set address_mode_set N/A N/A N/A N/A self _validate_ipv6_combination N/A subnet N/A ipv6_ra_mode N/A subnet N/A ipv6_address_mode N/A N/A address_mode_set ra_mode_set N/A N/A N/A N/A self _validate_eui64_applicable subnet N/A _validate_eui64_applicable N/A N/A self subnet N/A N/A N/A N/A N/A ipv6_utils is_auto_address_subnet subnet N/A N/A N/A N/A N/A N/A netaddr IPNetwork N/A subnet N/A cidr prefixlen 64 N/A N/A msg N/A _ Invalid CIDR %s for IPv6 address mode. OpenStack uses the EUI-64 address format, which requires the prefix to be /64. N/A N/A N/A exc InvalidInput error_message N/A msg N/A subnet N/A cidr N/A _validate_ipv6_combination N/A N/A self ra_mode address_mode N/A N/A N/A N/A ra_mode address_mode N/A N/A msg N/A N/A _ ipv6_ra_mode set to '%(ra_mode)s' with ipv6_address_mode set to '%(addr_mode)s' is not valid. If both attributes are set, they must be the same value N/A ra_mode addr_mode ra_mode address_mode N/A N/A N/A exc InvalidInput error_message msg N/A _validate_ipv6_dhcp N/A N/A self ra_mode_set address_mode_set enable_dhcp N/A N/A N/A N/A N/A ra_mode_set address_mode_set N/A enable_dhcp N/A N/A msg N/A _ ipv6_ra_mode or ipv6_address_mode cannot be set when enable_dhcp is set to False. N/A N/A N/A exc InvalidInput error_message msg N/A _validate_ipv6_update_dhcp N/A N/A self subnet cur_subnet N/A N/A N/A N/A N/A enable_dhcp subnet N/A N/A subnet N/A enable_dhcp N/A N/A msg N/A _ Cannot disable enable_dhcp with ipv6 attributes set N/A ra_mode_set N/A N/A validators is_attr_set N/A N/A subnet get ipv6_ra_mode N/A address_mode_set N/A N/A validators is_attr_set N/A N/A subnet get ipv6_address_mode N/A N/A ra_mode_set address_mode_set N/A N/A N/A N/A exc InvalidInput error_message msg N/A old_ra_mode_set N/A N/A validators is_attr_set N/A N/A cur_subnet get ipv6_ra_mode N/A old_address_mode_set N/A N/A validators is_attr_set N/A N/A cur_subnet get ipv6_address_mode N/A N/A old_ra_mode_set old_address_mode_set N/A N/A N/A N/A exc InvalidInput error_message msg N/A _create_bulk N/A N/A self resource context request_items N/A N/A N/A objects N/A N/A collection N/A %ss resource N/A items N/A request_items N/A collection N/A N/A N/A N/A context session begin subtransactions True N/A N/A N/A item items N/A N/A obj_creator N/A getattr self N/A create_%s resource N/A N/A N/A objects append N/A obj_creator context item N/A N/A N/A N/A context session commit N/A N/A N/A Exception N/A N/A N/A N/A N/A context session rollback N/A N/A N/A excutils save_and_reraise_exception N/A N/A N/A N/A LOG error N/A _LE An exception occurred while creating the %(resource)s:%(item)s N/A resource item resource item N/A objects N/A create_network_bulk N/A N/A self context networks N/A N/A N/A N/A N/A self _create_bulk network context networks N/A create_network N/A N/A self context network N/A N/A N/A Handle creation of a single network. N/A net_db N/A N/A self create_network_db context network N/A N/A N/A self _make_network_dict net_db process_extensions False context context N/A create_network_db N/A N/A self context network N/A N/A N/A n N/A network N/A network N/A tenant_id N/A n N/A tenant_id N/A N/A N/A N/A context session begin subtransactions True N/A N/A args N/A tenant_id id name admin_state_up mtu status description tenant_id N/A N/A N/A n get id N/A N/A uuidutils generate_uuid N/A n N/A name N/A n N/A admin_state_up N/A N/A n get mtu N/A n_const DEFAULT_NETWORK_MTU N/A N/A n get status N/A constants NET_STATUS_ACTIVE N/A N/A n get description N/A network N/A N/A models_v2 Network args N/A N/A n N/A shared N/A N/A entry N/A N/A rbac_db NetworkRBAC network network action access_as_shared target_tenant * tenant_id N/A network N/A tenant_id N/A N/A N/A N/A context session add entry N/A N/A N/A N/A context session add network N/A network N/A update_network N/A N/A self context id network N/A N/A N/A n N/A network N/A network N/A N/A N/A N/A context session begin subtransactions True N/A N/A network N/A N/A self _get_network context id N/A N/A shared n N/A N/A entry None N/A item N/A network rbac_entries N/A N/A N/A N/A N/A item action access_as_shared N/A N/A item target_tenant * N/A N/A entry item N/A N/A N/A setattr network shared N/A entry True False N/A N/A N/A self _validate_shared_update context id network n N/A update_shared N/A N/A n pop shared N/A N/A update_shared N/A entry N/A N/A entry N/A N/A rbac_db NetworkRBAC network network action access_as_shared target_tenant * tenant_id N/A network N/A tenant_id N/A N/A N/A N/A context session add entry N/A N/A N/A N/A update_shared entry N/A N/A N/A N/A N/A context session delete entry N/A N/A N/A N/A context session expire network N/A rbac_entries N/A N/A N/A network update N/A N/A self _filter_non_model_columns n N/A models_v2 Network N/A N/A N/A self _make_network_dict network context context N/A delete_network N/A N/A self context id N/A N/A N/A N/A N/A N/A context session begin subtransactions True N/A N/A network N/A N/A self _get_network context id N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A context session query N/A models_v2 Port filter_by network_id id filter N/A N/A N/A N/A models_v2 Port device_owner in_ AUTO_DELETE_PORT_OWNERS delete synchronize_session False N/A port_in_use N/A N/A N/A N/A N/A N/A N/A context session query N/A models_v2 Port filter_by network_id id first N/A port_in_use N/A N/A N/A N/A exc NetworkInUse net_id id N/A subnets N/A N/A self _get_subnets_by_network context id N/A subnet subnets N/A N/A N/A N/A self delete_subnet context N/A subnet N/A id N/A N/A N/A N/A context session delete network N/A get_network N/A N/A self context id fields N/A None N/A N/A network N/A N/A self _get_network context id N/A N/A N/A self _make_network_dict network fields context context N/A get_networks N/A N/A self context filters fields sorts limit marker page_reverse N/A None None None None None False N/A N/A marker_obj N/A N/A self _get_marker_obj context network limit marker N/A make_network_dict N/A N/A functools partial N/A self _make_network_dict context context N/A N/A N/A self _get_collection context N/A models_v2 Network make_network_dict filters filters fields fields sorts sorts limit limit marker_obj marker_obj page_reverse page_reverse N/A get_networks_count N/A N/A self context filters N/A None N/A N/A N/A N/A self _get_collection_count context N/A models_v2 Network filters filters N/A create_subnet_bulk N/A N/A self context subnets N/A N/A N/A N/A N/A self _create_bulk subnet context subnets N/A _validate_ip_version N/A N/A self ip_version addr name N/A N/A N/A Check IP field of a subnet match specified ip version. N/A ip N/A N/A netaddr IPNetwork addr N/A N/A N/A ip version ip_version N/A N/A data N/A name addr ip_version name addr ip_version N/A msg N/A N/A _ %(name)s '%(addr)s' does not match the ip_version '%(ip_version)s' data N/A N/A N/A exc InvalidInput error_message msg N/A _validate_subnet N/A N/A self context s cur_subnet N/A None N/A N/A Validate a subnet spec. N/A ip_ver N/A s N/A ip_version N/A N/A N/A validators is_attr_set N/A N/A s get cidr N/A N/A N/A N/A self _validate_ip_version ip_ver N/A s N/A cidr cidr N/A cur_subnet N/A N/A dhcp_was_enabled N/A cur_subnet enable_dhcp N/A N/A dhcp_was_enabled False N/A N/A N/A N/A s get enable_dhcp N/A dhcp_was_enabled N/A N/A subnet_prefixlen N/A N/A N/A netaddr IPNetwork N/A s N/A cidr prefixlen N/A error_message N/A _ Subnet has a prefix length that is incompatible with DHCP service enabled. N/A N/A N/A N/A ip_ver 4 N/A subnet_prefixlen 30 N/A N/A ip_ver 6 N/A subnet_prefixlen 126 N/A N/A N/A N/A exc InvalidInput error_message error_message N/A net N/A N/A netaddr IPNetwork N/A s N/A cidr N/A N/A N/A net is_multicast N/A N/A error_message N/A _ Multicast IP subnet is not supported if enable_dhcp is True. N/A N/A N/A exc InvalidInput error_message error_message N/A N/A N/A N/A net is_loopback N/A N/A error_message N/A _ Loopback IP subnet is not supported if enable_dhcp is True. N/A N/A N/A exc InvalidInput error_message error_message N/A N/A N/A validators is_attr_set N/A N/A s get gateway_ip N/A N/A N/A N/A self _validate_ip_version ip_ver N/A s N/A gateway_ip gateway_ip N/A is_gateway_not_valid N/A N/A N/A ipam utils check_gateway_invalid_in_subnet N/A s N/A cidr N/A s N/A gateway_ip N/A is_gateway_not_valid N/A N/A error_message N/A _ Gateway is not valid on subnet N/A N/A N/A exc InvalidInput error_message error_message N/A N/A cur_subnet N/A N/A N/A ipv6_utils is_ipv6_pd_enabled s N/A N/A ipal N/A models_v2 IPAllocation N/A alloc_qry N/A N/A N/A context session query ipal N/A alloc_qry N/A N/A alloc_qry join port routerport N/A allocated N/A N/A N/A N/A alloc_qry filter N/A N/A ipal ip_address N/A cur_subnet N/A gateway_ip N/A N/A ipal subnet_id N/A cur_subnet N/A id first N/A N/A allocated N/A allocated N/A port_id N/A N/A N/A N/A n_exc GatewayIpInUse ip_address N/A cur_subnet N/A gateway_ip port_id N/A allocated N/A port_id N/A N/A N/A validators is_attr_set N/A N/A s get dns_nameservers N/A N/A N/A N/A len N/A s N/A dns_nameservers N/A N/A cfg CONF max_dns_nameservers N/A N/A N/A N/A n_exc DNSNameServersExhausted subnet_id N/A N/A s get id N/A _ new subnet quota N/A N/A cfg CONF max_dns_nameservers N/A dns N/A s N/A dns_nameservers N/A N/A N/A N/A N/A N/A netaddr IPAddress dns N/A N/A N/A Exception N/A N/A N/A N/A exc InvalidInput error_message N/A N/A _ Error parsing dns address %s dns N/A N/A N/A self _validate_ip_version ip_ver dns dns_nameserver N/A N/A N/A validators is_attr_set N/A N/A s get host_routes N/A N/A N/A N/A len N/A s N/A host_routes N/A N/A cfg CONF max_subnet_host_routes N/A N/A N/A N/A n_exc HostRoutesExhausted subnet_id N/A N/A s get id N/A _ new subnet quota N/A N/A cfg CONF max_subnet_host_routes N/A rt N/A s N/A host_routes N/A N/A N/A N/A self _validate_host_route rt ip_ver N/A N/A ip_ver 4 N/A N/A N/A N/A validators is_attr_set N/A N/A s get ipv6_ra_mode N/A N/A N/A N/A exc InvalidInput error_message N/A _ ipv6_ra_mode is not valid when ip_version is 4 N/A N/A N/A validators is_attr_set N/A N/A s get ipv6_address_mode N/A N/A N/A N/A exc InvalidInput error_message N/A _ ipv6_address_mode is not valid when ip_version is 4 N/A N/A ip_ver 6 N/A N/A N/A N/A self _validate_ipv6_attributes s cur_subnet N/A _validate_subnet_for_pd N/A N/A self subnet N/A N/A N/A Validates that subnet parameters are correct for IPv6 PD N/A N/A N/A N/A subnet get ip_version N/A constants IP_VERSION_6 N/A N/A reason N/A _ Prefix Delegation can only be used with IPv6 subnets. N/A N/A N/A exc BadRequest resource subnets msg reason N/A mode_list N/A N/A n_const IPV6_SLAAC N/A n_const DHCPV6_STATELESS N/A ra_mode N/A N/A subnet get ipv6_ra_mode N/A N/A ra_mode mode_list N/A N/A reason N/A _ IPv6 RA Mode must be SLAAC or Stateless for Prefix Delegation. N/A N/A N/A exc BadRequest resource subnets msg reason N/A address_mode N/A N/A subnet get ipv6_address_mode N/A N/A address_mode mode_list N/A N/A reason N/A _ IPv6 Address Mode must be SLAAC or Stateless for Prefix Delegation. N/A N/A N/A exc BadRequest resource subnets msg reason N/A _update_router_gw_ports N/A N/A self context network subnet N/A N/A N/A l3plugin N/A N/A N/A N/A N/A manager NeutronManager get_service_plugins get N/A service_constants L3_ROUTER_NAT N/A l3plugin N/A N/A gw_ports N/A N/A self _get_router_gw_ports_by_network context N/A network N/A id N/A router_ids N/A N/A p N/A device_id N/A p gw_ports N/A ctx_admin N/A N/A context elevated N/A ext_subnets_dict N/A N/A s N/A id s N/A s N/A network N/A subnets N/A id router_ids N/A N/A router N/A N/A l3plugin get_router ctx_admin id N/A external_gateway_info N/A router N/A external_gateway_info N/A fips N/A f N/A f N/A external_gateway_info N/A external_fixed_ips N/A N/A N/A ipv6_utils is_auto_address_subnet N/A ext_subnets_dict N/A N/A f N/A subnet_id N/A num_fips N/A len fips N/A N/A num_fips 1 N/A N/A N/A N/A N/A num_fips 1 N/A N/A N/A N/A netaddr IPAddress N/A N/A fips N/A 0 N/A ip_address version N/A subnet N/A ip_version N/A N/A N/A N/A N/A N/A external_gateway_info N/A external_fixed_ips append N/A subnet_id N/A subnet N/A id N/A info N/A router N/A external_gateway_info external_gateway_info N/A N/A N/A l3plugin update_router context id info N/A _create_subnet N/A N/A self context subnet subnetpool_id N/A N/A N/A s N/A subnet N/A subnet N/A N/A N/A N/A context session begin subtransactions True N/A N/A network N/A N/A self _get_network context N/A s N/A network_id N/A N/A subnet ipam_subnet N/A N/A N/A self ipam allocate_subnet context network s subnetpool_id N/A N/A N/A hasattr network external N/A network external N/A N/A N/A N/A self _update_router_gw_ports context network subnet N/A N/A N/A ipv6_utils is_auto_address_subnet subnet N/A N/A updated_ports N/A N/A N/A self ipam add_auto_addrs_on_network_ports context subnet ipam_subnet N/A port_id updated_ports N/A N/A port_info N/A port N/A id port_id N/A N/A N/A self update_port context port_id port_info N/A N/A N/A self _make_subnet_dict subnet context context N/A _get_subnetpool_id N/A N/A self context subnet N/A N/A N/A Return the subnetpool id for this request

        :param subnet: The subnet dict from the request
         N/A use_default_subnetpool N/A N/A subnet get use_default_subnetpool N/A N/A use_default_subnetpool N/A constants ATTR_NOT_SPECIFIED N/A N/A use_default_subnetpool False N/A subnetpool_id N/A N/A subnet get subnetpool_id N/A N/A subnetpool_id N/A constants ATTR_NOT_SPECIFIED N/A N/A subnetpool_id None N/A N/A use_default_subnetpool subnetpool_id N/A N/A msg N/A _ subnetpool_id and use_default_subnetpool cannot both be specified N/A N/A N/A exc BadRequest resource subnets msg msg N/A subnetpool_id N/A N/A subnetpool_id N/A N/A use_default_subnetpool N/A N/A N/A cidr N/A N/A subnet get cidr N/A N/A N/A validators is_attr_set cidr N/A N/A ip_version N/A N/A N/A netaddr IPNetwork cidr version N/A N/A ip_version N/A N/A subnet get ip_version N/A N/A N/A N/A validators is_attr_set ip_version N/A N/A msg N/A _ ip_version must be specified in the absence of cidr and subnetpool_id N/A N/A N/A exc BadRequest resource subnets msg msg N/A N/A N/A ip_version 6 N/A N/A cfg CONF ipv6_pd_enabled N/A N/A N/A constants IPV6_PD_POOL_ID N/A subnetpool N/A N/A self get_default_subnetpool context ip_version N/A subnetpool N/A N/A N/A subnetpool N/A id N/A N/A N/A ip_version 4 N/A N/A cfg CONF default_ipv4_subnet_pool N/A N/A N/A N/A cfg CONF default_ipv4_subnet_pool N/A N/A N/A ip_version 6 N/A N/A cfg CONF default_ipv6_subnet_pool N/A N/A N/A N/A cfg CONF default_ipv6_subnet_pool N/A msg N/A N/A _ No default subnetpool found for IPv%s ip_version N/A N/A N/A exc BadRequest resource subnets msg msg N/A create_subnet N/A N/A self context subnet N/A N/A N/A s N/A subnet N/A subnet N/A cidr N/A N/A s get cidr N/A constants ATTR_NOT_SPECIFIED N/A prefixlen N/A N/A s get prefixlen N/A constants ATTR_NOT_SPECIFIED N/A has_cidr N/A N/A validators is_attr_set cidr N/A has_prefixlen N/A N/A validators is_attr_set prefixlen N/A N/A has_cidr has_prefixlen N/A N/A msg N/A _ cidr and prefixlen must not be supplied together N/A N/A N/A exc BadRequest resource subnets msg msg N/A has_cidr N/A N/A net N/A N/A netaddr IPNetwork N/A s N/A cidr N/A N/A N/A subnet N/A subnet N/A cidr N/A %s/%s N/A N/A net network N/A net prefixlen N/A subnetpool_id N/A N/A self _get_subnetpool_id context s N/A N/A N/A subnetpool_id N/A has_cidr N/A N/A msg N/A _ a subnetpool must be specified in the absence of a cidr N/A N/A N/A exc BadRequest resource subnets msg msg N/A subnetpool_id N/A N/A N/A N/A N/A self ipam validate_pools_with_subnetpool s N/A N/A subnetpool_id N/A constants IPV6_PD_POOL_ID N/A N/A has_cidr N/A N/A subnetpool_id None N/A N/A N/A self _validate_subnet context s N/A N/A prefix N/A n_const PROVISIONAL_IPV6_PD_PREFIX N/A N/A N/A subnet N/A subnet N/A cidr prefix N/A N/A N/A self _validate_subnet_for_pd s N/A N/A N/A has_cidr N/A N/A msg N/A _ A cidr must be specified in the absence of a subnet pool N/A N/A N/A exc BadRequest resource subnets msg msg N/A N/A N/A self _validate_subnet context s N/A N/A N/A self _create_subnet context subnet subnetpool_id N/A _update_allocation_pools N/A N/A self subnet N/A N/A N/A Gets new allocation pools and formats them correctly N/A allocation_pools N/A N/A N/A self ipam generate_pools N/A subnet N/A cidr N/A subnet N/A gateway_ip N/A N/A N/A start end N/A str N/A N/A netaddr IPAddress N/A p first N/A subnet N/A ip_version N/A str N/A N/A netaddr IPAddress N/A p last N/A subnet N/A ip_version N/A p allocation_pools N/A update_subnet N/A N/A self context id subnet N/A N/A N/A Update the subnet with new info.

        The change however will not be realized until the client renew the
        dns lease or we support gratuitous DHCP offers
         N/A s N/A subnet N/A subnet N/A new_cidr N/A N/A s get cidr N/A db_subnet N/A N/A self _get_subnet context id N/A N/A s N/A ip_version N/A db_subnet ip_version N/A N/A s N/A cidr N/A db_subnet cidr N/A N/A s N/A id N/A db_subnet id N/A N/A s N/A tenant_id N/A db_subnet tenant_id N/A N/A s N/A subnetpool_id N/A db_subnet subnetpool_id N/A N/A N/A self _validate_subnet context s cur_subnet db_subnet N/A db_pools N/A N/A N/A netaddr IPRange N/A p N/A first_ip N/A p N/A last_ip N/A p N/A db_subnet allocation_pools N/A update_ports_needed False N/A N/A new_cidr N/A N/A ipv6_utils is_ipv6_pd_enabled s N/A N/A N/A s N/A cidr new_cidr N/A update_ports_needed True N/A net N/A N/A netaddr IPNetwork N/A s N/A cidr N/A s N/A ip_version N/A N/A s N/A gateway_ip N/A N/A utils get_first_host_ip net N/A s N/A ip_version N/A N/A s N/A allocation_pools N/A N/A self _update_allocation_pools s N/A range_pools None N/A N/A N/A N/A s get allocation_pools None N/A N/A range_pools N/A N/A N/A self ipam pools_to_ip_range N/A s N/A allocation_pools N/A N/A N/A N/A self ipam validate_allocation_pools range_pools N/A s N/A cidr N/A N/A s N/A allocation_pools range_pools N/A gateway_ip N/A N/A s get gateway_ip N/A db_subnet gateway_ip N/A gateway_ip_changed N/A gateway_ip N/A db_subnet gateway_ip N/A N/A gateway_ip_changed N/A N/A N/A s get allocation_pools None N/A N/A pools N/A N/A range_pools None range_pools db_pools N/A gateway_ip N/A N/A N/A N/A N/A self ipam validate_gw_out_of_pools gateway_ip pools N/A gateway_ip_changed N/A N/A kwargs N/A context subnet_id network_id context id N/A db_subnet network_id N/A N/A N/A registry notify N/A resources SUBNET_GATEWAY N/A events BEFORE_UPDATE self kwargs N/A N/A N/A N/A context session begin subtransactions True N/A N/A N/A subnet changes N/A N/A N/A self ipam update_db_subnet context id s db_pools N/A result N/A N/A self _make_subnet_dict subnet context context N/A N/A N/A result update changes N/A update_ports_needed N/A N/A filters N/A fixed_ips N/A subnet_id N/A N/A s N/A id N/A ports N/A N/A self get_ports context filters filters N/A routers N/A N/A port ports N/A N/A fixed_ips N/A N/A ip N/A port N/A fixed_ips N/A N/A N/A N/A ip N/A subnet_id N/A s N/A id N/A N/A fixed_ip N/A subnet_id N/A s N/A id N/A N/A N/A port N/A device_owner N/A constants ROUTER_INTERFACE_OWNERS N/A N/A N/A N/A routers append N/A port N/A device_id N/A N/A fixed_ip N/A ip_address N/A s N/A gateway_ip N/A N/A N/A fixed_ips append fixed_ip N/A new_port N/A port port N/A N/A N/A new_port N/A port N/A fixed_ips fixed_ips N/A N/A N/A self update_port context N/A port N/A id new_port N/A routers N/A N/A l3_rpc_notifier N/A N/A l3_rpc_agent_api L3AgentNotifyAPI N/A N/A N/A l3_rpc_notifier routers_updated context routers N/A gateway_ip_changed N/A N/A kwargs N/A context subnet_id network_id context id N/A db_subnet network_id N/A N/A N/A registry notify N/A resources SUBNET_GATEWAY N/A events AFTER_UPDATE self kwargs N/A result N/A _subnet_check_ip_allocations N/A N/A self context subnet_id N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A context session query N/A models_v2 IPAllocation filter_by subnet_id subnet_id join N/A models_v2 Port first N/A _subnet_get_user_allocation N/A N/A self context subnet_id N/A N/A N/A Check if there are any user ports on subnet and return first. N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A context session query N/A models_v2 IPAllocation filter_by subnet_id subnet_id join N/A models_v2 Port filter N/A N/A N/A N/A N/A models_v2 Port device_owner in_ AUTO_DELETE_PORT_OWNERS first N/A _subnet_check_ip_allocations_internal_router_ports N/A N/A self context subnet_id N/A N/A N/A allocs N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A context session query N/A models_v2 IPAllocation filter_by subnet_id subnet_id join N/A models_v2 Port filter N/A N/A N/A N/A models_v2 Port device_owner in_ N/A constants ROUTER_INTERFACE_OWNERS first N/A allocs N/A N/A N/A N/A LOG debug Subnet %s still has internal router ports, cannot delete subnet_id N/A N/A N/A exc SubnetInUse subnet_id id N/A delete_subnet N/A N/A self context id N/A N/A N/A N/A N/A N/A context session begin subtransactions True N/A N/A subnet N/A N/A self _get_subnet context id N/A N/A _check_subnet_not_used context id N/A qry_network_ports N/A N/A N/A N/A N/A N/A N/A context session query N/A models_v2 IPAllocation filter_by subnet_id N/A subnet N/A id join N/A models_v2 Port N/A is_auto_addr_subnet N/A N/A ipv6_utils is_auto_address_subnet subnet N/A is_auto_addr_subnet N/A N/A N/A N/A self _subnet_check_ip_allocations_internal_router_ports context id N/A N/A qry_network_ports N/A N/A qry_network_ports filter N/A N/A N/A N/A models_v2 Port device_owner in_ AUTO_DELETE_PORT_OWNERS N/A network_ports N/A N/A qry_network_ports all N/A network_ports N/A N/A port network_ports N/A N/A N/A N/A N/A context session delete port N/A N/A is_auto_addr_subnet N/A N/A alloc N/A N/A self _subnet_check_ip_allocations context id N/A alloc N/A N/A N/A N/A LOG info N/A _LI Found port (%(port_id)s, %(ip)s) having IP allocation on subnet %(subnet)s, cannot delete N/A ip port_id subnet N/A alloc ip_address N/A alloc port_id id N/A N/A N/A exc SubnetInUse subnet_id id N/A N/A N/A N/A context session delete subnet N/A N/A N/A N/A self ipam delete_subnet context id N/A get_subnet N/A N/A self context id fields N/A None N/A N/A subnet N/A N/A self _get_subnet context id N/A N/A N/A self _make_subnet_dict subnet fields context context N/A get_subnets N/A N/A self context filters fields sorts limit marker page_reverse N/A None None None None None False N/A N/A N/A N/A self _get_subnets context filters fields sorts limit marker page_reverse N/A get_subnets_count N/A N/A self context filters N/A None N/A N/A N/A N/A self _get_collection_count context N/A models_v2 Subnet filters filters N/A get_subnets_by_network N/A N/A self context network_id N/A N/A N/A N/A N/A N/A self _make_subnet_dict subnet_db N/A subnet_db N/A N/A self _get_subnets_by_network context network_id N/A _create_subnetpool_prefix N/A N/A self context cidr subnetpool_id N/A N/A N/A prefix_args N/A cidr subnetpool_id cidr subnetpool_id N/A subnetpool_prefix N/A N/A models_v2 SubnetPoolPrefix prefix_args N/A N/A N/A N/A context session add subnetpool_prefix N/A _validate_address_scope_id N/A N/A self context address_scope_id subnetpool_id sp_prefixes ip_version N/A N/A N/A Validate the address scope before associating.

        Subnetpool can associate with an address scope if
          - the tenant user is the owner of both the subnetpool and
            address scope
          - the admin is associating the subnetpool with the shared
            address scope
          - there is no prefix conflict with the existing subnetpools
            associated with the address scope.
          - the address family of the subnetpool and address scope
            are the same
         N/A N/A N/A N/A validators is_attr_set address_scope_id N/A N/A N/A N/A N/A N/A self is_address_scope_owned_by_tenant context address_scope_id N/A N/A N/A N/A n_exc IllegalSubnetPoolAssociationToAddressScope subnetpool_id subnetpool_id address_scope_id address_scope_id N/A as_ip_version N/A N/A self get_ip_version_for_address_scope context address_scope_id N/A N/A ip_version as_ip_version N/A N/A N/A N/A n_exc IllegalSubnetPoolIpVersionAssociationToAddressScope subnetpool_id subnetpool_id address_scope_id address_scope_id ip_version as_ip_version N/A subnetpools N/A N/A self _get_subnetpools_by_address_scope_id context address_scope_id N/A new_set N/A N/A netaddr IPSet sp_prefixes N/A sp subnetpools N/A N/A N/A N/A sp id subnetpool_id N/A N/A N/A sp_set N/A N/A netaddr IPSet N/A N/A prefix N/A cidr N/A prefix N/A sp prefixes N/A N/A N/A sp_set intersection new_set N/A N/A N/A N/A n_exc AddressScopePrefixConflict N/A _check_subnetpool_update_allowed N/A N/A self context subnetpool_id address_scope_id N/A N/A N/A Check if the subnetpool can be updated or not.

        If the subnetpool is associated to a shared address scope not owned
        by the tenant, then the subnetpool cannot be updated.
         N/A N/A N/A N/A self is_address_scope_owned_by_tenant context address_scope_id N/A N/A msg N/A N/A _ subnetpool %(subnetpool_id)s cannot be updated when associated with shared address scope %(address_scope_id)s N/A subnetpool_id address_scope_id subnetpool_id address_scope_id N/A N/A N/A n_exc IllegalSubnetPoolUpdate reason msg N/A _check_default_subnetpool_exists N/A N/A self context ip_version N/A N/A N/A Check if a default already exists for the given IP version.

        There can only be one default subnetpool for each IP family. Raise an
        InvalidInput error if a default has already been set.
         N/A N/A N/A self get_default_subnetpool context ip_version N/A N/A msg N/A _ A default subnetpool for this IP family has already been set. Only one default may exist per IP family N/A N/A N/A exc InvalidInput error_message msg N/A create_subnetpool N/A N/A self context subnetpool N/A N/A N/A Create a subnetpool N/A sp N/A subnetpool N/A subnetpool N/A sp_reader N/A N/A subnet_alloc SubnetPoolReader sp N/A N/A N/A sp_reader address_scope_id N/A constants ATTR_NOT_SPECIFIED N/A N/A N/A sp_reader address_scope_id None N/A N/A sp_reader is_default N/A N/A N/A N/A self _check_default_subnetpool_exists context N/A sp_reader ip_version N/A N/A N/A self _validate_address_scope_id context N/A sp_reader address_scope_id id N/A sp_reader prefixes N/A sp_reader ip_version N/A N/A N/A N/A context session begin subtransactions True N/A N/A pool_args N/A tenant_id id name ip_version default_prefixlen min_prefixlen max_prefixlen is_default shared default_quota address_scope_id description N/A sp N/A tenant_id N/A sp_reader id N/A sp_reader name N/A sp_reader ip_version N/A sp_reader default_prefixlen N/A sp_reader min_prefixlen N/A sp_reader max_prefixlen N/A sp_reader is_default N/A sp_reader shared N/A sp_reader default_quota N/A sp_reader address_scope_id N/A sp_reader description N/A subnetpool N/A N/A models_v2 SubnetPool pool_args N/A N/A N/A N/A context session add subnetpool N/A prefix N/A sp_reader prefixes N/A N/A N/A N/A self _create_subnetpool_prefix context prefix N/A subnetpool id N/A N/A N/A self _make_subnetpool_dict subnetpool N/A _update_subnetpool_prefixes N/A N/A self context prefix_list id N/A N/A N/A N/A N/A N/A context session begin subtransactions True N/A N/A N/A N/A N/A N/A N/A N/A N/A context session query N/A models_v2 SubnetPoolPrefix filter_by subnetpool_id id delete N/A prefix prefix_list N/A N/A model_prefix N/A N/A models_v2 SubnetPoolPrefix cidr prefix subnetpool_id id N/A N/A N/A N/A context session add model_prefix N/A _updated_subnetpool_dict N/A N/A self model new_pool N/A N/A N/A updated N/A N/A new_prefixes N/A N/A new_pool get prefixes N/A constants ATTR_NOT_SPECIFIED N/A orig_prefixes N/A N/A str N/A x cidr N/A x N/A model N/A prefixes N/A N/A new_prefixes N/A constants ATTR_NOT_SPECIFIED N/A N/A orig_set N/A N/A netaddr IPSet orig_prefixes N/A new_set N/A N/A netaddr IPSet new_prefixes N/A N/A N/A N/A orig_set issubset new_set N/A N/A msg N/A _ Existing prefixes must be a subset of the new prefixes N/A N/A N/A n_exc IllegalSubnetPoolPrefixUpdate msg msg N/A N/A N/A new_set compact N/A N/A updated N/A prefixes N/A N/A str N/A x cidr N/A x N/A N/A new_set iter_cidrs N/A N/A N/A updated N/A prefixes orig_prefixes N/A key N/A id name ip_version min_prefixlen max_prefixlen default_prefixlen is_default shared default_quota address_scope_id standard_attr description N/A N/A N/A N/A self _write_key key updated model new_pool N/A updated N/A _write_key N/A N/A self key update orig new_dict N/A N/A N/A new_val N/A N/A new_dict get key N/A constants ATTR_NOT_SPECIFIED N/A N/A new_val N/A constants ATTR_NOT_SPECIFIED N/A N/A N/A update N/A key N/A new_dict N/A key N/A N/A N/A update N/A key N/A orig N/A key N/A update_subnetpool N/A N/A self context id subnetpool N/A N/A N/A Update a subnetpool N/A new_sp N/A subnetpool N/A subnetpool N/A N/A N/A N/A context session begin subtransactions True N/A N/A orig_sp N/A N/A self _get_subnetpool context id N/A updated N/A N/A self _updated_subnetpool_dict orig_sp new_sp N/A N/A updated N/A tenant_id N/A orig_sp tenant_id N/A reader N/A N/A subnet_alloc SubnetPoolReader updated N/A N/A N/A reader is_default N/A N/A orig_sp is_default N/A N/A N/A N/A self _check_default_subnetpool_exists context N/A reader ip_version N/A N/A orig_sp address_scope_id N/A N/A N/A N/A self _check_subnetpool_update_allowed context id N/A orig_sp address_scope_id N/A N/A N/A self _validate_address_scope_id context N/A reader address_scope_id id N/A reader prefixes N/A reader ip_version N/A address_scope_changed N/A N/A orig_sp address_scope_id N/A reader address_scope_id N/A N/A N/A orig_sp update N/A N/A self _filter_non_model_columns N/A reader subnetpool N/A models_v2 SubnetPool N/A N/A N/A self _update_subnetpool_prefixes context N/A reader prefixes id N/A address_scope_changed N/A N/A kwargs N/A context subnetpool_id context id N/A N/A N/A registry notify N/A resources SUBNETPOOL_ADDRESS_SCOPE N/A events AFTER_UPDATE N/A self update_subnetpool kwargs N/A key N/A min_prefixlen max_prefixlen default_prefixlen N/A N/A N/A updated N/A key N/A str N/A updated N/A key N/A N/A N/A self _apply_dict_extend_functions N/A attributes SUBNETPOOLS updated orig_sp N/A updated N/A get_subnetpool N/A N/A self context id fields N/A None N/A N/A Retrieve a subnetpool. N/A subnetpool N/A N/A self _get_subnetpool context id N/A N/A N/A self _make_subnetpool_dict subnetpool fields N/A get_subnetpools N/A N/A self context filters fields sorts limit marker page_reverse N/A None None None None None False N/A N/A Retrieve list of subnetpools. N/A marker_obj N/A N/A self _get_marker_obj context subnetpool limit marker N/A collection N/A N/A self _get_collection context N/A models_v2 SubnetPool N/A self _make_subnetpool_dict filters filters fields fields sorts sorts limit limit marker_obj marker_obj page_reverse page_reverse N/A collection N/A get_default_subnetpool N/A N/A self context ip_version N/A N/A N/A Retrieve the default subnetpool for the given IP version. N/A filters N/A is_default ip_version N/A True N/A ip_version N/A subnetpool N/A N/A self get_subnetpools context filters filters N/A subnetpool N/A N/A N/A subnetpool N/A 0 N/A delete_subnetpool N/A N/A self context id N/A N/A N/A Delete a subnetpool. N/A N/A N/A N/A context session begin subtransactions True N/A N/A subnetpool N/A N/A self _get_subnetpool context id N/A subnets N/A N/A self _get_subnets_by_subnetpool context id N/A subnets N/A N/A reason N/A _ Subnet pool has existing allocations N/A N/A N/A n_exc SubnetPoolDeleteError reason reason N/A N/A N/A N/A context session delete subnetpool N/A _check_mac_addr_update N/A N/A self context port new_mac device_owner N/A N/A N/A N/A device_owner N/A N/A device_owner startswith N/A constants DEVICE_OWNER_NETWORK_PREFIX N/A N/A N/A N/A n_exc UnsupportedPortDeviceOwner op N/A _ mac address update port_id id device_owner device_owner N/A create_port_bulk N/A N/A self context ports N/A N/A N/A N/A N/A self _create_bulk port context ports N/A _get_dns_domain N/A N/A self N/A N/A N/A N/A N/A N/A cfg CONF dns_domain N/A N/A N/A N/A N/A N/A N/A cfg CONF dns_domain endswith . N/A N/A N/A N/A cfg CONF dns_domain N/A N/A %s. N/A N/A cfg CONF dns_domain N/A _get_request_dns_name N/A N/A self port N/A N/A N/A dns_domain N/A N/A self _get_dns_domain N/A N/A dns_domain N/A dns_domain DNS_DOMAIN_DEFAULT N/A N/A N/A N/A port get dns_name N/A N/A _get_dns_names_for_port N/A N/A self context ips request_dns_name N/A N/A N/A dns_assignment N/A N/A dns_domain N/A N/A self _get_dns_domain N/A request_dns_name N/A N/A request_fqdn request_dns_name N/A N/A N/A N/A request_dns_name endswith . N/A N/A request_fqdn N/A %s.%s N/A request_dns_name dns_domain N/A ip ips N/A N/A request_dns_name N/A N/A hostname request_dns_name N/A fqdn request_fqdn N/A N/A hostname N/A host-%s N/A N/A N/A N/A N/A ip N/A ip_address replace . - replace : - N/A fqdn hostname N/A dns_domain N/A N/A fqdn N/A %s.%s N/A hostname dns_domain N/A N/A N/A dns_assignment append N/A ip_address hostname fqdn N/A ip N/A ip_address hostname fqdn N/A dns_assignment N/A _create_port_with_mac N/A N/A self context network_id port_data mac_address N/A N/A N/A N/A N/A N/A N/A db_api autonested_transaction N/A context session N/A N/A db_port N/A N/A models_v2 Port mac_address mac_address port_data N/A N/A N/A N/A context session add db_port N/A db_port N/A N/A N/A N/A db_exc DBDuplicateEntry N/A N/A N/A N/A exc MacAddressInUse net_id network_id mac mac_address N/A _create_port N/A N/A self context network_id port_data N/A N/A N/A max_retries N/A N/A cfg CONF mac_generation_retries N/A i N/A range max_retries N/A N/A mac N/A N/A self _generate_mac N/A N/A N/A N/A N/A self _create_port_with_mac context network_id port_data mac N/A N/A N/A N/A exc MacAddressInUse N/A N/A N/A N/A LOG debug Generated mac %(mac_address)s exists on network %(network_id)s N/A mac_address network_id mac network_id N/A N/A N/A LOG error N/A _LE Unable to generate mac address after %s attempts max_retries N/A N/A N/A n_exc MacAddressGenerationFailure net_id network_id N/A create_port N/A N/A self context port N/A N/A N/A db_port N/A N/A self create_port_db context port N/A N/A N/A self _make_port_dict db_port process_extensions False N/A create_port_db N/A N/A self context port N/A N/A N/A p N/A port N/A port N/A port_id N/A N/A N/A p get id N/A N/A uuidutils generate_uuid N/A network_id N/A p N/A network_id N/A tenant_id N/A p N/A tenant_id N/A N/A N/A p get device_owner N/A N/A N/A N/A self _enforce_device_owner_not_router_intf_or_device_id context N/A N/A p get device_owner N/A N/A p get device_id tenant_id N/A port_data N/A dict tenant_id tenant_id name N/A p N/A name id port_id network_id network_id admin_state_up N/A p N/A admin_state_up status N/A N/A p get status N/A constants PORT_STATUS_ACTIVE device_id N/A p N/A device_id device_owner N/A p N/A device_owner description N/A N/A p get description N/A N/A N/A dns-integration N/A self supported_extension_aliases N/A dns_name p N/A N/A request_dns_name N/A N/A self _get_request_dns_name p N/A N/A port_data N/A dns_name request_dns_name N/A N/A N/A N/A context session begin subtransactions True N/A N/A N/A N/A self _get_network context network_id N/A N/A N/A p N/A mac_address N/A constants ATTR_NOT_SPECIFIED N/A N/A db_port N/A N/A self _create_port context network_id port_data N/A N/A p N/A mac_address N/A db_port N/A mac_address N/A N/A db_port N/A N/A self _create_port_with_mac context network_id port_data N/A p N/A mac_address N/A ips N/A N/A N/A self ipam allocate_ips_for_port_and_store context port port_id N/A N/A N/A dns-integration N/A self supported_extension_aliases N/A dns_name p N/A N/A dns_assignment N/A N/A ips N/A N/A dns_assignment N/A N/A self _get_dns_names_for_port context ips request_dns_name N/A N/A db_port N/A dns_assignment dns_assignment N/A db_port N/A _validate_port_for_update N/A N/A self context db_port new_port new_mac N/A N/A N/A changed_owner N/A device_owner new_port N/A current_owner N/A N/A N/A new_port get device_owner N/A db_port N/A device_owner N/A changed_device_id N/A N/A N/A new_port get device_id N/A db_port N/A device_id N/A current_device_id N/A N/A N/A new_port get device_id N/A db_port N/A device_id N/A N/A N/A current_owner changed_device_id changed_owner N/A N/A N/A N/A self _enforce_device_owner_not_router_intf_or_device_id context current_owner current_device_id N/A db_port N/A tenant_id N/A N/A new_mac N/A new_mac N/A db_port N/A mac_address N/A N/A N/A N/A self _check_mac_addr_update context db_port new_mac current_owner N/A _get_dns_names_for_updated_port N/A N/A self context original_ips original_dns_name request_dns_name changes N/A N/A N/A N/A N/A changes original N/A changes add N/A changes remove N/A N/A N/A N/A self _get_dns_names_for_port context N/A N/A changes original N/A changes add N/A request_dns_name original_dns_name N/A original_ips N/A N/A N/A N/A self _get_dns_names_for_port context original_ips N/A request_dns_name original_dns_name N/A N/A N/A update_port N/A N/A self context id port N/A N/A N/A new_port N/A port N/A port N/A N/A N/A N/A context session begin subtransactions True N/A N/A port N/A N/A self _get_port context id N/A N/A dns-integration N/A self supported_extension_aliases N/A N/A original_ips N/A N/A self _make_fixed_ip_dict N/A port N/A fixed_ips N/A original_dns_name N/A N/A port get dns_name N/A request_dns_name N/A N/A self _get_request_dns_name new_port N/A N/A N/A dns_name new_port N/A request_dns_name N/A N/A N/A new_port N/A dns_name N/A new_mac N/A N/A new_port get mac_address N/A N/A N/A self _validate_port_for_update context port new_port new_mac N/A changes N/A N/A N/A self ipam update_port_with_ips context port new_port new_mac N/A N/A dns-integration N/A self supported_extension_aliases N/A N/A dns_assignment N/A N/A self _get_dns_names_for_updated_port context original_ips original_dns_name request_dns_name changes N/A result N/A N/A self _make_port_dict port N/A N/A N/A changes original N/A changes add N/A changes remove N/A N/A N/A result N/A fixed_ips N/A N/A self _make_fixed_ip_dict N/A N/A changes original N/A changes add N/A N/A dns-integration N/A self supported_extension_aliases N/A N/A N/A result N/A dns_assignment dns_assignment N/A result N/A delete_port N/A N/A self context id N/A N/A N/A N/A N/A N/A context session begin subtransactions True N/A N/A N/A N/A N/A self ipam delete_port context id N/A delete_ports_by_device_id N/A N/A self context device_id network_id N/A None N/A N/A query N/A N/A N/A N/A N/A N/A N/A context session query N/A N/A models_v2 Port id enable_eagerloads False filter N/A N/A N/A models_v2 Port device_id device_id N/A network_id N/A N/A query N/A N/A query filter N/A N/A N/A models_v2 Port network_id network_id N/A port_ids N/A N/A p N/A 0 N/A p query N/A port_id port_ids N/A N/A N/A N/A N/A N/A self delete_port context port_id N/A N/A N/A N/A exc PortNotFound N/A N/A N/A N/A LOG debug Ignoring PortNotFound when deleting port '%s'. The port has already been deleted. port_id N/A _get_dns_name_for_port_get N/A N/A self context port N/A N/A N/A N/A port N/A fixed_ips N/A N/A N/A N/A self _get_dns_names_for_port context N/A port N/A fixed_ips N/A port N/A dns_name N/A N/A N/A get_port N/A N/A self context id fields N/A None N/A N/A port N/A N/A self _get_port context id N/A N/A N/A dns-integration N/A self supported_extension_aliases N/A dns_name port N/A N/A N/A port N/A dns_assignment N/A N/A self _get_dns_name_for_port_get context port N/A N/A N/A self _make_port_dict port fields N/A _get_ports_query N/A N/A self context filters sorts limit marker_obj page_reverse N/A None None None None False N/A N/A Port N/A models_v2 Port N/A IPAllocation N/A models_v2 IPAllocation N/A N/A filters N/A N/A filters N/A N/A query N/A N/A self _model_query context Port N/A fixed_ips N/A N/A filters pop fixed_ips N/A N/A ip_addresses N/A N/A fixed_ips get ip_address N/A subnet_ids N/A N/A fixed_ips get subnet_id N/A N/A ip_addresses subnet_ids N/A N/A query N/A N/A query join N/A Port fixed_ips N/A ip_addresses N/A N/A query N/A N/A query filter N/A N/A N/A IPAllocation ip_address in_ ip_addresses N/A subnet_ids N/A N/A query N/A N/A query filter N/A N/A N/A IPAllocation subnet_id in_ subnet_ids N/A query N/A N/A self _apply_filters_to_query query Port filters context N/A N/A limit page_reverse sorts N/A N/A sorts N/A N/A N/A s N/A 0 N/A N/A s N/A 1 N/A s sorts N/A query N/A N/A sqlalchemyutils paginate_query query Port limit sorts marker_obj N/A query N/A get_ports N/A N/A self context filters fields sorts limit marker page_reverse N/A None None None None None False N/A N/A marker_obj N/A N/A self _get_marker_obj context port limit marker N/A query N/A N/A self _get_ports_query context filters filters sorts sorts limit limit marker_obj marker_obj page_reverse page_reverse N/A items N/A N/A c query N/A N/A N/A N/A dns-integration N/A self supported_extension_aliases N/A dns_name c N/A N/A N/A c N/A dns_assignment N/A N/A self _get_dns_name_for_port_get context c N/A N/A N/A items append N/A N/A self _make_port_dict c fields N/A N/A limit page_reverse N/A N/A N/A N/A items reverse N/A items N/A get_ports_count N/A N/A self context filters N/A None N/A N/A N/A N/A N/A N/A self _get_ports_query context filters count N/A _enforce_device_owner_not_router_intf_or_device_id N/A N/A self context device_owner device_id tenant_id N/A N/A N/A Prevent tenants from replacing the device id of router ports with
        a router uuid belonging to another tenant.
         N/A N/A device_owner N/A constants ROUTER_INTERFACE_OWNERS N/A N/A N/A N/A N/A context is_admin N/A N/A device_id N/A N/A N/A hasattr self get_router N/A N/A N/A N/A ctx_admin N/A N/A context elevated N/A router N/A N/A self get_router ctx_admin device_id N/A N/A N/A N/A l3 RouterNotFound N/A N/A N/A N/A l3plugin N/A N/A N/A N/A N/A manager NeutronManager get_service_plugins get N/A service_constants L3_ROUTER_NAT N/A l3plugin N/A N/A N/A N/A ctx_admin N/A N/A context elevated N/A router N/A N/A l3plugin get_router ctx_admin device_id N/A N/A N/A N/A l3 RouterNotFound N/A N/A N/A N/A N/A N/A n_exc DeviceIDNotOwnedByTenant device_id device_id N/A N/A tenant_id N/A router N/A tenant_id N/A N/A N/A N/A n_exc DeviceIDNotOwnedByTenant device_id device_id N/A N/A N/A N/A N/A db_base_plugin_common DbBasePluginCommon register_model_query_hook N/A models_v2 Port port _port_query_hook _port_filter_hook None N/A