Module Import alias Import alias Import alias ImportFrom alias Import alias Import alias identifier ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd NameLoad CompareIn Str AttributeLoad SubscriptLoad NameLoad Index Num attr body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num attr Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore NameLoad body If CompareEq Call AttributeLoad NameLoad attr Str Str body Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr Str Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num If CompareEq Call AttributeLoad NameLoad attr Str Str body Return Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str body If CompareEq Call AttributeLoad NameLoad attr Str Str body Return Str Return Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad Call NameLoad FunctionDef arguments args NameParam defaults body Return ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword Call NameLoad keyword TupleLoad NameLoad Str Str Str Str Str Str Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword ListLoad Assign NameStore Call NameLoad keyword Call NameLoad keyword NameLoad keyword Call NameLoad keyword NameLoad keyword Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot NameLoad body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Call NameLoad AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Str If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad Str body If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad Str attr NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad Str attr keyword Call AttributeLoad NameLoad attr keyword NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body If AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse Raise decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword TupleLoad Str Str Assign NameStore Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad NameLoad Str Call NameLoad NameLoad Str AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad BinOpMult AttributeLoad NameLoad attr BinOpPow Num Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body If AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Return Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Num keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad keyword Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse Raise decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword Str keyword TupleLoad Str Str Assign NameStore Call NameLoad keyword Str keyword ListLoad Str Assign NameStore Call NameLoad keyword Str keyword ListLoad Str Str Assign NameStore Call NameLoad keyword ListLoad Str Str Str Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword ListLoad FunctionDef arguments args NameParam defaults body TryExcept body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return NameLoad orelse Raise decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad For NameStore NameLoad body If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body If CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call NameLoad Num Continue Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Call NameLoad NameLoad Call NameLoad NameLoad Num decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call NameLoad NameLoad Str AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call NameLoad keyword Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body If AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body If Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If CompareEq SubscriptLoad Call AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr While CompareIsNot NameLoad NameLoad body AugAssignAdd NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareGt NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr If BoolOpAnd NameLoad CompareEq NameLoad Str body Raise Call NameLoad Str If BoolOpAnd UnaryOpNot NameLoad CompareEq NameLoad Str body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body If Call AttributeLoad NameLoad attr NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore ListLoad If NameLoad body If CompareLt Call AttributeLoad AttributeLoad NameLoad attr attr Num body Raise Call NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore NameLoad While Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad AugAssignAdd NameStore Num For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr If BoolOpAnd Call AttributeLoad NameLoad attr UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Str Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body For NameStore Call AttributeLoad NameLoad attr NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num If CompareIsNot Call AttributeLoad NameLoad attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad Str body Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore BinOpAdd NameLoad Str Assign NameStore Num Assign NameStore NameLoad While Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore NameLoad Break orelse Assign NameStore BinOpAdd BinOpAdd NameLoad Str Call NameLoad NameLoad AugAssignAdd NameStore Num If NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Num orelse Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num orelse Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body If CompareGt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str Return Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Num decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpMult NameLoad Num Num Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareIsNot NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad decorator_list
N/A N/A datetime N/A os N/A subprocess time sleep N/A uuid N/A xml.etree.ElementTree ET django.conf settings django.utils.functional cached_property N/A libvirt N/A netaddr devops.driver.libvirt.libvirt_xml_builder LibvirtXMLBuilder devops.error DevopsError devops.helpers.helpers deepgetattr devops.helpers.helpers get_file_size devops.helpers.helpers underscored devops.helpers.retry retry devops.helpers scancodes devops logger devops.models.base ParamField devops.models.base ParamMultiField devops.models.driver Driver devops.models.network L2NetworkDevice devops.models.node Node devops.models.volume Volume _LibvirtManager N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A N/A libvirt virInitialize N/A N/A self connections N/A N/A get_connection N/A N/A self connection_string N/A N/A N/A N/A connection_string N/A self connections N/A N/A conn N/A N/A libvirt open connection_string N/A N/A N/A self connections N/A connection_string conn N/A N/A conn N/A N/A self connections N/A connection_string N/A conn N/A N/A N/A LibvirtManager N/A _LibvirtManager Snapshot N/A object N/A __init__ N/A N/A self snapshot N/A N/A N/A N/A self _snapshot snapshot N/A xml N/A N/A self N/A N/A N/A xml N/A N/A N/A self _snapshot getXMLDesc 0 N/A snapshot_xmltree N/A N/A ET fromstring xml N/A cpu N/A N/A snapshot_xmltree findall ./domain/cpu N/A N/A cpu N/A mode N/A N/A cpu N/A 0 attrib N/A N/A cpu_mode N/A N/A N/A cpu N/A 0 get mode N/A N/A cpu_mode host-passthrough N/A N/A domain N/A N/A N/A self _snapshot getDomain N/A domain_xml N/A N/A domain XMLDesc N/A libvirt VIR_DOMAIN_XML_UPDATE_CPU N/A domain_xmltree N/A N/A ET fromstring domain_xml N/A cpu_element N/A N/A domain_xmltree find ./cpu N/A domain_element N/A N/A N/A snapshot_xmltree findall ./domain N/A 0 N/A N/A N/A domain_element remove N/A N/A N/A domain_element findall ./cpu N/A 0 N/A N/A N/A domain_element append cpu_element N/A N/A N/A ET tostring snapshot_xmltree N/A property _xml_tree N/A N/A self N/A N/A N/A N/A N/A ET fromstring N/A self xml N/A property children_num N/A N/A self N/A N/A N/A N/A N/A N/A self _snapshot numChildren N/A property created N/A N/A self N/A N/A N/A timestamp N/A N/A N/A N/A N/A self _xml_tree findall ./creationTime N/A 0 text N/A N/A N/A N/A datetime datetime utcfromtimestamp N/A float timestamp N/A property disks N/A N/A self N/A N/A N/A disks N/A N/A xml_snapshot_disks N/A N/A N/A self _xml_tree find ./disks N/A xml_disk xml_snapshot_disks N/A N/A N/A N/A N/A xml_disk get snapshot external N/A N/A N/A disks N/A N/A N/A xml_disk get name N/A N/A N/A N/A xml_disk find source get file N/A disks N/A property get_type N/A N/A self N/A N/A N/A Return snapshot type N/A snap_memory N/A N/A N/A N/A self _xml_tree findall ./memory N/A 0 N/A N/A N/A N/A snap_memory get snapshot external N/A N/A external N/A disk N/A N/A N/A self _xml_tree iter disk N/A N/A N/A N/A N/A disk get snapshot external N/A N/A external N/A internal N/A property memory_file N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self _xml_tree findall ./memory N/A 0 get file N/A property name N/A N/A self N/A N/A N/A N/A N/A N/A self _snapshot getName N/A property parent N/A N/A self N/A N/A N/A N/A N/A N/A self _snapshot getParent N/A property state N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self _xml_tree findall state N/A 0 text N/A property delete N/A N/A self flags N/A N/A N/A N/A N/A N/A self _snapshot delete flags N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A <{0} {1}/{2}> format N/A N/A self __class__ __name__ N/A self name N/A self created N/A N/A LibvirtDriver N/A Driver N/A N/A libvirt driver

    :param use_host_cpu: When creating nodes, should libvirt's
        CPU "host-model" mode be used to set CPU settings. If set to False,
        default mode ("custom") will be used.  (default: True)

    Note: This class is imported as Driver at .__init__.py
     N/A connection_string N/A ParamField default qemu:///system N/A storage_pool_name N/A ParamField default default N/A stp N/A ParamField default True N/A hpet N/A ParamField default True N/A use_host_cpu N/A ParamField default True N/A enable_acpi N/A ParamField default False N/A reboot_timeout N/A ParamField N/A use_hugepages N/A ParamField default False N/A vnc_password N/A ParamField conn N/A N/A self N/A N/A N/A Connection to libvirt api N/A N/A N/A LibvirtManager get_connection N/A self connection_string N/A cached_property get_capabilities N/A N/A self N/A N/A N/A Get host capabilities

        This method is deprecated. Use `capabilities` property instead.

        :rtype : ET
         N/A N/A self capabilities N/A capabilities N/A N/A self N/A N/A N/A N/A N/A ET fromstring N/A N/A N/A self conn getCapabilities N/A cached_property N/A retry node_list N/A N/A self N/A N/A N/A N/A N/A N/A item name N/A item N/A N/A N/A self conn listAllDomains N/A N/A retry get_allocated_networks N/A N/A self N/A N/A N/A Get list of allocated networks

            :rtype : List
         N/A allocated_networks N/A N/A network_name N/A N/A N/A self conn listDefinedNetworks N/A N/A et N/A N/A ET fromstring N/A N/A N/A N/A N/A self conn networkLookupByName network_name XMLDesc 0 N/A ip N/A N/A et find ip[@address] N/A N/A ip None N/A N/A address N/A N/A ip get address N/A prefix_or_netmask N/A N/A N/A ip get prefix N/A N/A ip get netmask N/A N/A N/A allocated_networks append N/A N/A netaddr IPNetwork N/A N/A {0:>s}/{1:>s} format address prefix_or_netmask N/A allocated_networks N/A N/A retry get_libvirt_version N/A N/A self N/A N/A N/A N/A N/A N/A self conn getLibVersion N/A N/A LibvirtL2NetworkDevice N/A L2NetworkDevice N/A N/A L2 network device based on libvirt Network

       Template example
       ----------------
       # Nodes should have at least two interfaces connected to the following
       # L2 networks:
       # admin: for admin/PXE network
       # openstack_br: for all other tagged networks.

       l2_network_devices:  # Libvirt bridges. It is *NOT* Nailgun networks

         # Admin/PXE network
         # Virtual nodes can be connected here (Fuel master, OpenStack nodes).
         # A physical interface ${BAREMETAL_ADMIN_IFACE} will be added
         # to the libvirt network with name 'admin' to allow connectivity
         # between VMs, baremetal servers and system tests on this server.
         admin:
           address_pool: fuelweb_admin-pool01
           dhcp: false
           forward:
             mode: nat
           parent_iface:
             phys_dev: !os_env BAREMETAL_ADMIN_IFACE

         # Libvirt bridge dedicated for access to a baremetal network
         # ${BAREMETAL_OS_NETS_IFACE} with tagged OpenStack networks.
         # This is intermediate bridge, where tagged interfaces with tags
         # 100, 101 and 102 will be created, to get untagged access
         # to the tagged networks.
         # IT IS *NOT* FOR ADDING ADDRESS POOLS!
         # ONLY FOR CONNECTING VM's INTERFACES!
         openstack_br:
           vlan_ifaces:
            - 100
            - 101
            - 102
            - 103
           parent_iface:
             phys_dev: !os_env BAREMETAL_OS_NETS_IFACE

         # Public libvirt bridge, only for keeping IP address.
         # 'nat' forward can be ommited if the baremetal network has
         # it's own gateway.
         # This l2 libvirt network can be ommited if no access required
         # from system tests to the nodes via public addresses.
         # IT IS *NOT* FOR CONNECTING VM's INTERFACES!
         # ONLY FOR ACCESS TO THE PUBLIC NETWORK ADDRESSES
         # AND 'NAT' FROM PUBLIC TO WAN.
         public:
           address_pool: public-pool01
           dhcp: false
           forward:
             mode: nat
           parent_iface:
             l2_net_dev: openstack_br
             tag: 100

         # Storage libvirt bridge, only for keeping IP address.
         # This l2 libvirt network can be ommited if no access required
         # from system tests to the nodes via storage addresses.
         # IT IS *NOT* FOR CONNECTING VM's INTERFACES!
         # ONLY FOR ACCESS TO THE STORAGE NETWORK ADDRESSES
         storage:
           address_pool: storage-pool01
           dhcp: false
           parent_iface:
             l2_net_dev: openstack_br
             tag: 101

         # Management libvirt bridge, only for keeping IP address.
         # This l2 libvirt network can be ommited if no access required
         # from system tests to the nodes via management addresses.
         # IT IS *NOT* FOR CONNECTING VM's INTERFACES!
         # ONLY FOR ACCESS TO THE MANAGEMENT NETWORK ADDRESSES
         management:
           address_pool: management-pool01
           dhcp: false
           parent_iface:
             l2_net_dev: openstack_br
             tag: 102

         # Private libvirt bridge, only for keeping IP address.
         # This l2 libvirt network can be ommited if no access required
         # from system tests to the nodes via private addresses.
         # IT IS *NOT* FOR CONNECTING VM's INTERFACES!
         # ONLY FOR ACCESS TO THE PRIVATE NETWORK ADDRESSES
         private:
           address_pool: private-pool01
           dhcp: false
           parent_iface:
             l2_net_dev: openstack_br
             tag: 103

    Note: This class is imported as L2NetworkDevice at .__init__.py
     N/A uuid N/A ParamField N/A forward N/A ParamMultiField mode N/A ParamField choices N/A None nat route bridge private vepa passthrough hostdev N/A dhcp N/A ParamField default False N/A has_pxe_server N/A ParamField default False N/A has_dhcp_server N/A ParamField default False N/A tftp_root_dir N/A ParamField N/A vlan_ifaces N/A ParamField default N/A N/A parent_iface N/A ParamMultiField phys_dev N/A ParamField default None l2_net_dev N/A ParamField default None tag N/A ParamField default None _libvirt_network N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self driver conn networkLookupByUUIDString N/A self uuid N/A N/A N/A N/A libvirt libvirtError N/A N/A N/A N/A logger error N/A N/A Network not found by UUID: {} format N/A self uuid N/A None N/A property bridge_name N/A N/A self N/A N/A N/A N/A N/A N/A self _libvirt_network bridgeName N/A N/A retry network_name N/A N/A self N/A N/A N/A Get network name

            :rtype : String
         N/A N/A N/A N/A self _libvirt_network name N/A N/A retry is_active N/A N/A self N/A N/A N/A Check if network is active

        :type network_uuid: str
            :rtype : Boolean
         N/A N/A N/A N/A self _libvirt_network isActive N/A N/A retry define N/A N/A self N/A N/A N/A network_name N/A underscored N/A deepgetattr self group.environment.name N/A self name N/A bridge_name N/A N/A virbr{0} format N/A self id N/A vlanid N/A self vlan_ifaces N/A N/A N/A N/A self iface_define name bridge_name vlanid vlanid N/A ip_network_address None N/A ip_network_prefixlen None N/A dhcp_range_start None N/A dhcp_range_end None N/A addresses N/A N/A N/A N/A self address_pool None N/A N/A ip_network_address N/A N/A N/A self address_pool get_ip l2_network_device N/A N/A ip_network_address N/A N/A ip_network_address N/A str N/A N/A N/A self address_pool ip_network N/A 1 N/A ip_network_prefixlen N/A str N/A N/A N/A self address_pool ip_network prefixlen N/A dhcp_range_start N/A N/A N/A self address_pool ip_range_start dhcp N/A dhcp_range_end N/A N/A N/A self address_pool ip_range_end dhcp N/A interface N/A self interfaces N/A N/A address N/A interface addresses N/A N/A ip_addr N/A N/A netaddr IPAddress N/A address ip_address N/A N/A ip_addr N/A N/A self address_pool ip_network N/A N/A N/A N/A addresses append N/A dict mac N/A str N/A interface mac_address ip N/A str N/A address ip_address name N/A N/A interface node name N/A xml N/A N/A LibvirtXMLBuilder build_network_xml network_name network_name bridge_name bridge_name addresses addresses forward N/A N/A self forward mode ip_network_address ip_network_address ip_network_prefixlen ip_network_prefixlen dhcp_range_start dhcp_range_start dhcp_range_end dhcp_range_end stp N/A N/A self driver stp has_pxe_server N/A self has_pxe_server has_dhcp_server N/A self has_dhcp_server tftp_root_dir N/A self tftp_root_dir N/A ret N/A N/A N/A N/A self driver conn networkDefineXML xml N/A N/A N/A ret setAutostart True N/A N/A self uuid N/A N/A ret UUIDString N/A N/A N/A N/A super LibvirtL2NetworkDevice self define N/A N/A retry start N/A N/A self N/A N/A N/A N/A N/A self create N/A create N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A self is_active N/A N/A N/A N/A N/A self _libvirt_network create N/A parent_name N/A N/A N/A N/A self parent_iface phys_dev None N/A N/A parent_name N/A N/A self parent_iface phys_dev N/A N/A N/A N/A N/A self parent_iface l2_net_dev None N/A N/A l2_net_dev N/A N/A N/A N/A self group environment get_env_l2_network_device name N/A N/A self parent_iface l2_net_dev N/A parent_name N/A N/A l2_net_dev bridge_name N/A N/A parent_name N/A N/A N/A N/A self parent_iface tag N/A N/A parent_iface_name N/A N/A {0}.{1} format parent_name N/A str N/A N/A self parent_iface tag N/A N/A parent_iface_name parent_name N/A cmd N/A N/A sudo brctl addif {br} {iface} format br N/A N/A self bridge_name iface parent_iface_name N/A N/A N/A N/A N/A subprocess check_output N/A N/A cmd split N/A N/A N/A Exception N/A N/A N/A N/A retry destroy N/A N/A self N/A N/A N/A N/A N/A N/A self _libvirt_network destroy N/A N/A retry remove N/A N/A self N/A args kwargs N/A N/A N/A self uuid N/A N/A N/A N/A self exists N/A N/A N/A N/A self is_active N/A N/A N/A N/A N/A self _libvirt_network destroy N/A vlanid N/A self vlan_ifaces N/A N/A iface_name N/A N/A {}.{} format N/A N/A self bridge_name N/A str vlanid N/A N/A N/A self iface_undefine iface_name iface_name N/A N/A self _libvirt_network N/A N/A N/A N/A N/A self _libvirt_network undefine N/A N/A N/A N/A super LibvirtL2NetworkDevice self remove N/A N/A retry exists N/A N/A self N/A N/A N/A Check if network exists

        :type network_uuid: str
            :rtype : Boolean
         N/A N/A N/A N/A N/A N/A N/A self driver conn networkLookupByUUIDString N/A self uuid N/A True N/A N/A N/A N/A libvirt libvirtError N/A e N/A N/A N/A N/A N/A e get_error_code N/A libvirt VIR_ERR_NO_NETWORK N/A N/A False N/A N/A N/A N/A retry iface_define N/A N/A self name ip prefix vlanid N/A None None None N/A N/A Define bridge interface

        :type name: String
        :type ip: IPAddress
        :type prefix: Integer
        :type vlanid: Integer
            :rtype : None
         N/A N/A N/A N/A N/A self driver conn interfaceDefineXML N/A N/A LibvirtXMLBuilder build_iface_xml name ip prefix vlanid N/A N/A retry iface_undefine N/A N/A self iface_name N/A N/A N/A Start interface

        :type iface_name: String
            :rtype : None
         N/A N/A N/A iface N/A N/A N/A N/A self driver conn interfaceLookupByName iface_name N/A N/A N/A N/A libvirt libvirtError N/A N/A None N/A N/A N/A iface undefine N/A N/A retry N/A LibvirtVolume N/A Volume N/A N/A Note: This class is imported as Volume at .__init__.py  N/A uuid N/A ParamField N/A capacity N/A ParamField default None N/A format N/A ParamField default qcow2 choices N/A qcow2 raw N/A source_image N/A ParamField default None _libvirt_volume N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self driver conn storageVolLookupByKey N/A self uuid N/A N/A N/A N/A libvirt libvirtError N/A N/A N/A N/A logger error N/A N/A Volume not found by UUID: {} format N/A self uuid N/A None N/A property define N/A N/A self N/A N/A N/A name N/A underscored N/A deepgetattr self node.group.environment.name N/A deepgetattr self node.name N/A self name N/A backing_store_path None N/A backing_store_format None N/A N/A N/A self backing_store None N/A N/A backing_store_path N/A N/A N/A self backing_store get_path N/A backing_store_format N/A N/A self backing_store format N/A N/A N/A self source_image None N/A N/A capacity N/A get_file_size N/A self source_image N/A N/A capacity N/A int N/A N/A self capacity N/A 1024 3 N/A pool_name N/A N/A self driver storage_pool_name N/A pool N/A N/A N/A N/A self driver conn storagePoolLookupByName pool_name N/A xml N/A N/A LibvirtXMLBuilder build_volume_xml name name capacity capacity format N/A self format backing_store_path backing_store_path backing_store_format backing_store_format N/A libvirt_volume N/A N/A pool createXML xml 0 N/A N/A self uuid N/A N/A libvirt_volume key N/A N/A N/A N/A super LibvirtVolume self define N/A N/A N/A self source_image None N/A N/A N/A N/A self upload N/A self source_image N/A N/A retry remove N/A N/A self N/A args kwargs N/A N/A N/A self uuid N/A N/A N/A N/A self exists N/A N/A N/A N/A N/A self _libvirt_volume delete 0 N/A N/A N/A N/A super LibvirtVolume self remove N/A N/A retry get_capacity N/A N/A self N/A N/A N/A Get volume capacity N/A N/A N/A N/A N/A self _libvirt_volume info N/A 1 N/A N/A retry get_format N/A N/A self N/A N/A N/A xml_desc N/A N/A ET fromstring N/A N/A N/A self _libvirt_volume XMLDesc 0 N/A N/A N/A N/A N/A xml_desc find target/format[@type] get type N/A N/A retry get_path N/A N/A self N/A N/A N/A N/A N/A N/A self _libvirt_volume path N/A N/A retry fill_from_exist N/A N/A self N/A N/A N/A N/A self capacity N/A N/A self get_capacity N/A N/A self format N/A N/A self get_format N/A upload N/A N/A self path N/A N/A N/A size N/A get_file_size path N/A N/A open path rb fd N/A N/A stream N/A N/A N/A N/A self driver conn newStream 0 N/A N/A N/A N/A self _libvirt_volume upload stream stream offset 0 length size flags 0 N/A N/A N/A stream sendAll N/A self chunk_render fd N/A N/A N/A stream finish N/A N/A retry count 2 chunk_render N/A N/A self stream size fd N/A N/A N/A N/A N/A fd read size N/A get_allocation N/A N/A self N/A N/A N/A Get allocated volume size

        :rtype : int
         N/A N/A N/A N/A N/A self _libvirt_volume info N/A 2 N/A N/A retry exists N/A N/A self N/A N/A N/A Check if volume exists N/A N/A N/A N/A N/A N/A N/A self driver conn storageVolLookupByKey N/A self uuid N/A True N/A N/A N/A N/A libvirt libvirtError N/A e N/A N/A N/A N/A N/A e get_error_code N/A libvirt VIR_ERR_NO_STORAGE_VOL N/A N/A False N/A N/A N/A N/A retry create_child N/A N/A self name N/A N/A N/A Create new volume based on current volume

        :rtype : Volume
         N/A cls N/A N/A N/A self driver get_model_class Volume N/A N/A N/A N/A cls objects create name name capacity N/A self capacity node N/A self node format N/A self format backing_store self N/A volume_get_predefined N/A N/A cls uuid N/A N/A N/A Get predefined volume

        :rtype : Volume
         N/A N/A N/A volume N/A N/A N/A cls objects get uuid uuid N/A N/A N/A N/A cls DoesNotExist N/A N/A volume N/A cls uuid uuid N/A N/A N/A volume fill_from_exist N/A N/A N/A volume save N/A volume N/A classmethod N/A LibvirtNode N/A Node N/A N/A Note: This class is imported as Node at .__init__.py  N/A uuid N/A ParamField N/A hypervisor N/A ParamField default kvm choices N/A kvm test N/A os_type N/A ParamField default hvm choices N/A hvm N/A architecture N/A ParamField default x86_64 choices N/A x86_64 i686 N/A boot N/A ParamField default N/A network cdrom hd N/A vcpu N/A ParamField default 1 N/A memory N/A ParamField default 1024 N/A has_vnc N/A ParamField default True N/A bootmenu_timeout N/A ParamField default 0 N/A numa N/A ParamField default N/A _libvirt_node N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self driver conn lookupByUUIDString N/A self uuid N/A N/A N/A N/A libvirt libvirtError N/A N/A N/A N/A logger error N/A N/A Domain not found by UUID: {} format N/A self uuid N/A None N/A property get_vnc_port N/A N/A self N/A N/A N/A Get VNC port

            :rtype : String
         N/A xml_desc N/A N/A ET fromstring N/A N/A N/A self _libvirt_node XMLDesc 0 N/A vnc_element N/A N/A xml_desc find devices/graphics[@type="vnc"][@port] N/A N/A vnc_element None N/A N/A N/A N/A vnc_element get port N/A N/A retry vnc_password N/A N/A self N/A N/A N/A N/A N/A self driver vnc_password N/A property exists N/A N/A self N/A N/A N/A Check if node exists

            :rtype : Boolean
         N/A N/A N/A N/A N/A N/A N/A self driver conn lookupByUUIDString N/A self uuid N/A True N/A N/A N/A N/A libvirt libvirtError N/A e N/A N/A N/A N/A N/A e get_error_code N/A libvirt VIR_ERR_NO_DOMAIN N/A N/A False N/A N/A N/A N/A retry is_active N/A N/A self N/A N/A N/A Check if node is active

            :rtype : Boolean
         N/A N/A N/A N/A self _libvirt_node isActive N/A N/A retry send_keys N/A N/A self keys N/A N/A N/A Send keys to node

        :type keys: String
            :rtype : None
         N/A key_codes N/A N/A scancodes from_string N/A str keys N/A key_code key_codes N/A N/A N/A isinstance N/A key_code N/A 0 str N/A N/A N/A N/A key_code N/A 0 wait N/A N/A N/A sleep 1 N/A N/A N/A N/A N/A self _libvirt_node sendKey 0 0 N/A list key_code N/A len key_code 0 N/A N/A retry define N/A N/A self N/A N/A N/A Define node

            :rtype : None
         N/A name N/A underscored N/A deepgetattr self group.environment.name N/A self name N/A local_disk_devices N/A N/A disk N/A self disk_devices N/A N/A N/A N/A local_disk_devices append N/A dict disk_type N/A disk type disk_device N/A disk device disk_volume_format N/A N/A disk volume format disk_volume_path N/A N/A N/A disk volume get_path disk_bus N/A disk bus disk_target_dev N/A disk target_dev disk_serial N/A N/A N/A uuid uuid4 hex N/A local_interfaces N/A N/A interface N/A self interfaces N/A N/A N/A N/A interface type network N/A N/A N/A NotImplementedError message Interface types different from network are not implemented yet N/A l2_dev N/A interface l2_network_device N/A N/A N/A local_interfaces append N/A dict interface_type N/A interface type interface_mac_address N/A interface mac_address interface_network_name N/A N/A l2_dev network_name interface_id N/A interface id interface_model N/A interface model N/A emulator N/A N/A N/A N/A N/A N/A self driver get_capabilities find N/A N/A guest/arch[@name="{0:>s}"]/domain[@type="{1:>s}"]/emulator format N/A self architecture N/A self hypervisor text N/A node_xml N/A N/A LibvirtXMLBuilder build_node_xml name name hypervisor N/A self hypervisor use_host_cpu N/A N/A self driver use_host_cpu vcpu N/A self vcpu memory N/A self memory use_hugepages N/A N/A self driver use_hugepages hpet N/A N/A self driver hpet os_type N/A self os_type architecture N/A self architecture boot N/A self boot reboot_timeout N/A N/A self driver reboot_timeout bootmenu_timeout N/A self bootmenu_timeout emulator emulator has_vnc N/A self has_vnc vnc_password N/A N/A self driver vnc_password local_disk_devices local_disk_devices interfaces local_interfaces acpi N/A N/A self driver enable_acpi numa N/A self numa N/A N/A N/A logger info node_xml N/A N/A self uuid N/A N/A N/A N/A N/A N/A self driver conn defineXML node_xml UUIDString N/A N/A N/A N/A super LibvirtNode self define N/A N/A retry start N/A N/A self N/A N/A N/A N/A N/A self create N/A create N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A self is_active N/A N/A N/A N/A N/A self _libvirt_node create N/A N/A retry destroy N/A N/A self N/A args kwargs N/A N/A N/A N/A self is_active N/A N/A N/A N/A N/A self _libvirt_node destroy N/A N/A retry remove N/A N/A self N/A args kwargs N/A N/A N/A self uuid N/A N/A N/A N/A self exists N/A N/A N/A N/A self destroy N/A snapshot N/A N/A self get_snapshots N/A N/A N/A N/A self _delete_snapshot_files snapshot N/A N/A self _libvirt_node N/A N/A N/A N/A N/A self _libvirt_node undefineFlags N/A libvirt VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA N/A N/A N/A N/A super LibvirtNode self remove N/A N/A retry suspend N/A N/A self N/A args kwargs N/A N/A N/A N/A self is_active N/A N/A N/A N/A N/A self _libvirt_node suspend N/A N/A retry resume N/A N/A self N/A args kwargs N/A N/A N/A N/A self is_active N/A N/A domain N/A self _libvirt_node N/A N/A N/A N/A N/A domain info N/A 0 N/A libvirt VIR_DOMAIN_PAUSED N/A N/A N/A N/A domain resume N/A N/A retry reboot N/A N/A self N/A N/A N/A Reboot node

            :rtype : None
         N/A N/A N/A N/A self _libvirt_node reboot N/A N/A retry shutdown N/A N/A self N/A N/A N/A Shutdown node

            :rtype : None
         N/A N/A N/A N/A self _libvirt_node shutdown N/A N/A retry reset N/A N/A self N/A N/A N/A N/A N/A N/A self _libvirt_node reset N/A N/A retry has_snapshot N/A N/A self name N/A N/A N/A N/A name N/A N/A N/A self _libvirt_node snapshotListNames N/A N/A retry snapshot_create_child_volumes N/A N/A self name N/A N/A N/A disk N/A self disk_devices N/A N/A N/A N/A disk device disk N/A N/A back_vol_name N/A N/A disk volume name N/A back_count 0 N/A disk_test N/A N/A disk volume backing_store N/A N/A disk_test None N/A N/A back_count 1 N/A back_vol_name N/A disk_test name N/A disk_test N/A disk_test backing_store N/A N/A back_count 500 N/A N/A N/A DevopsError N/A N/A More then 500 snapshots in chain for {0}.{1} format back_vol_name name N/A vol_child N/A N/A N/A disk volume create_child name N/A N/A {0}.{1} format back_vol_name name N/A N/A N/A vol_child define N/A N/A disk volume vol_child N/A N/A N/A disk save N/A _assert_snapshot_type N/A N/A self external N/A False N/A N/A snap_list N/A N/A self get_snapshots N/A N/A N/A len snap_list 0 N/A N/A snap_type N/A N/A snap_list N/A 0 get_type N/A N/A external N/A snap_type internal N/A N/A N/A DevopsError Cannot create external snapshot when internal exists N/A N/A N/A external N/A snap_type external N/A N/A N/A DevopsError Cannot create internal snapshot when external exists N/A set_snapshot_current N/A N/A self name N/A N/A N/A snapshot N/A N/A self _get_snapshot name N/A N/A N/A N/A self _libvirt_node snapshotCreateXML N/A snapshot xml N/A N/A libvirt VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE N/A libvirt VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT N/A snapshot N/A N/A self name force description disk_only external N/A None False None False False N/A N/A N/A N/A self has_snapshot name N/A N/A force N/A N/A N/A N/A self erase_snapshot name N/A N/A N/A DevopsError N/A N/A Snapshot with name {0} already exists format name N/A N/A N/A self _assert_snapshot_type external external N/A local_disk_devices N/A N/A external N/A N/A N/A N/A N/A N/A self driver get_libvirt_version 1002012 N/A N/A N/A DevopsError For external snapshots we need libvirtd >= 1.2.12 N/A N/A N/A N/A N/A os path exists N/A settings SNAPSHOTS_EXTERNAL_DIR N/A N/A N/A N/A os makedirs N/A settings SNAPSHOTS_EXTERNAL_DIR N/A N/A N/A self snapshot_create_child_volumes name N/A base_memory_file N/A N/A {0}/snapshot-memory-{1}_{2}.{3} format N/A settings SNAPSHOTS_EXTERNAL_DIR N/A deepgetattr self group.environment.name N/A self name name N/A file_count 0 N/A memory_file base_memory_file N/A N/A N/A N/A os path exists memory_file N/A N/A memory_file N/A N/A base_memory_file - N/A str file_count N/A file_count 1 N/A disk N/A self disk_devices N/A N/A N/A N/A disk device disk N/A N/A N/A N/A local_disk_devices append N/A dict disk_volume_path N/A N/A N/A disk volume get_path disk_target_dev N/A disk target_dev N/A N/A N/A N/A self is_active N/A disk_only N/A N/A create_xml_flag N/A libvirt VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT N/A N/A create_xml_flag N/A N/A libvirt VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY N/A libvirt VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT N/A N/A memory_file N/A create_xml_flag 0 N/A xml N/A N/A LibvirtXMLBuilder build_snapshot_xml name name description description external external disk_only disk_only memory_file memory_file domain_isactive N/A N/A self is_active local_disk_devices local_disk_devices N/A domain N/A self _libvirt_node N/A N/A N/A logger info xml N/A N/A N/A logger info N/A N/A domain state 0 N/A N/A N/A domain snapshotCreateXML xml create_xml_flag N/A external N/A N/A N/A N/A self set_snapshot_current name N/A N/A N/A logger info N/A N/A domain state 0 N/A N/A retry _delete_snapshot_files N/A N/A self snapshot N/A N/A N/A Delete snapshot external files N/A snap_type N/A snapshot get_type N/A N/A snap_type external N/A N/A snap_file N/A N/A self _get_snapshot_files snapshot N/A N/A N/A N/A N/A os path isfile snap_file N/A N/A N/A N/A N/A N/A os remove snap_file N/A N/A N/A logger info N/A N/A Delete external snapshot file {0} format snap_file N/A N/A N/A Exception N/A N/A N/A N/A logger info N/A N/A Cannot delete external snapshot file {0} must be deleted from cron script format snap_file N/A _get_snapshot_files N/A N/A self snapshot N/A N/A N/A Return snapshot files N/A snap_files N/A N/A snap_memory N/A N/A N/A N/A snapshot _xml_tree findall ./memory N/A 0 N/A N/A N/A N/A snap_memory get file None N/A N/A N/A N/A snap_files append N/A N/A snap_memory get file N/A snap_files N/A _redefine_external_snapshot N/A N/A self name N/A None N/A N/A snapshot N/A N/A self _get_snapshot name N/A N/A N/A logger info N/A N/A Revert {0} ({1}) from external snapshot {2} format N/A self name N/A snapshot state name N/A N/A N/A self destroy N/A xml_domain N/A N/A N/A snapshot _xml_tree find domain N/A N/A N/A snapshot children_num 0 N/A N/A domain_disks N/A N/A xml_domain findall ./devices/disk N/A N/A s_disk s_disk_data N/A N/A N/A snapshot disks items N/A N/A d_disk domain_disks N/A N/A d_disk_dev N/A N/A N/A N/A d_disk find target get dev N/A d_disk_device N/A N/A d_disk get device N/A N/A N/A d_disk_dev s_disk N/A d_disk_device disk N/A N/A N/A N/A N/A N/A d_disk find source set file s_disk_data N/A N/A N/A snapshot state shutoff N/A N/A N/A N/A N/A N/A self driver conn defineXML N/A N/A ET tostring xml_domain N/A N/A N/A N/A N/A N/A self driver conn restoreFlags N/A snapshot memory_file dxml N/A N/A ET tostring xml_domain flags N/A libvirt VIR_DOMAIN_SAVE_PAUSED N/A N/A N/A self set_snapshot_current name N/A _update_disks_from_snapshot N/A N/A self name N/A N/A N/A Update actual node disks volumes to disks from snapshot

           This method change disks attached to actual node to
           disks used in snapshot. This is required to save correct
           state of node disks. We use node disks as a backend when
           new snapshots are created.
         N/A snapshot N/A N/A self _get_snapshot name N/A N/A snap_disk snap_disk_file N/A N/A N/A snapshot disks items N/A N/A disk N/A self disk_devices N/A N/A N/A snap_disk N/A disk target_dev N/A N/A N/A N/A snapshot children_num 0 N/A N/A N/A disk volume N/A N/A self get_volume uuid snap_disk_file N/A N/A N/A disk volume N/A N/A N/A self get_volume uuid snap_disk_file backing_store N/A N/A N/A disk save N/A _node_revert_snapshot_recreate_disks N/A N/A self name N/A N/A N/A Recreate snapshot disks. N/A snapshot N/A N/A self _get_snapshot name N/A N/A N/A snapshot children_num 0 N/A N/A s_disk_data N/A N/A N/A snapshot disks values N/A N/A N/A N/A logger info N/A N/A Recreate {0} format s_disk_data N/A volume N/A N/A N/A N/A self driver conn storageVolLookupByKey s_disk_data N/A volume_xml N/A N/A volume XMLDesc N/A volume_pool N/A N/A volume storagePoolLookupByVolume N/A N/A N/A volume delete N/A N/A N/A volume_pool createXML volume_xml N/A N/A retry _revert_external_snapshot N/A N/A self name N/A None N/A N/A snapshot N/A N/A self _get_snapshot name N/A N/A N/A self destroy N/A N/A N/A snapshot children_num 0 N/A N/A N/A N/A logger info Reuse last snapshot N/A N/A N/A self _update_disks_from_snapshot name N/A N/A N/A self _node_revert_snapshot_recreate_disks name N/A N/A N/A self _redefine_external_snapshot name name N/A N/A revert_name N/A name -revert N/A revert_count 0 N/A create_new True N/A N/A N/A self has_snapshot revert_name N/A N/A snapshot_revert N/A N/A self _get_snapshot revert_name N/A N/A N/A snapshot_revert children_num 0 N/A N/A N/A N/A logger info Revert snapshot exists, clean and reuse it N/A N/A N/A self _update_disks_from_snapshot revert_name N/A N/A N/A self _node_revert_snapshot_recreate_disks revert_name N/A N/A N/A self _redefine_external_snapshot name revert_name N/A create_new False N/A N/A N/A revert_name N/A N/A name -revert N/A str revert_count N/A revert_count 1 N/A create_new N/A N/A N/A N/A logger info Create new revert snapshot N/A N/A N/A self _update_disks_from_snapshot name N/A N/A N/A self _redefine_external_snapshot name name N/A N/A N/A self snapshot name revert_name external True N/A revert N/A N/A self name destroy N/A None True N/A N/A Method to revert node in state from snapshot

           For external snapshots in libvirt we use restore function.
           After reverting in this way we get situation when node is connected
           to original volume disk, without snapshot point. To solve this
           problem we need to switch it to correct volume.

           In case of usage external snapshots we clean snapshot disk when
           revert to snapshot without childs and create new snapshot point
           when reverting to snapshots with childs.
         N/A destroy N/A N/A N/A N/A self destroy N/A N/A N/A self has_snapshot name N/A N/A snapshot N/A N/A self _get_snapshot name N/A N/A N/A snapshot get_type external N/A N/A N/A N/A self _revert_external_snapshot name N/A N/A N/A N/A logger info N/A N/A Revert {0} ({1}) to internal snapshot {2} format N/A self name N/A snapshot state name N/A N/A N/A N/A self _libvirt_node revertToSnapshot N/A snapshot _snapshot 0 N/A N/A N/A DevopsError N/A N/A Domain snapshot for {0} node not found: no domain snapshot with matching name {1} format N/A self name name N/A N/A retry _get_snapshot N/A N/A self name N/A N/A N/A Get snapshot

        :type name: String
            :rtype : Snapshot(libvirt.virDomainSnapshot)
         N/A N/A name None N/A N/A N/A Snapshot N/A N/A N/A self _libvirt_node snapshotCurrent 0 N/A N/A N/A Snapshot N/A N/A N/A self _libvirt_node snapshotLookupByName name 0 N/A get_snapshots N/A N/A self N/A N/A N/A Return full snapshots objects N/A snapshots N/A N/A N/A self _libvirt_node listAllSnapshots 0 N/A N/A N/A Snapshot snap N/A snap snapshots N/A N/A retry erase_snapshot N/A N/A self name N/A N/A N/A N/A N/A self has_snapshot name N/A N/A snapshot N/A N/A self _get_snapshot name N/A snap_type N/A snapshot get_type N/A N/A snap_type external N/A N/A N/A N/A snapshot children_num 0 N/A N/A N/A N/A logger error Cannot delete external snapshots with children N/A N/A N/A N/A self destroy N/A xml_domain N/A N/A N/A snapshot _xml_tree find domain N/A N/A N/A N/A N/A self driver conn defineXML N/A N/A ET tostring xml_domain N/A N/A N/A self _delete_snapshot_files snapshot N/A N/A N/A snapshot delete 2 N/A disk N/A self disk_devices N/A N/A N/A N/A disk device disk N/A N/A snap_disk N/A disk volume N/A N/A disk volume N/A N/A disk volume backing_store N/A N/A N/A disk save N/A N/A N/A snap_disk remove N/A N/A N/A N/A snapshot delete 0 N/A N/A retry set_vcpu N/A N/A self vcpu N/A N/A N/A Set vcpu count on node

        param: vcpu: Integer
            :rtype : None
         N/A N/A N/A vcpu None N/A vcpu N/A self vcpu N/A N/A N/A self vcpu vcpu N/A domain N/A self _libvirt_node N/A N/A N/A domain setVcpusFlags vcpu 4 N/A N/A N/A domain setVcpusFlags vcpu 2 N/A N/A N/A self save N/A N/A retry set_memory N/A N/A self memory N/A N/A N/A Set memory size on node

        param: memory: Integer
            :rtype : None
         N/A N/A N/A memory None N/A memory N/A self memory N/A N/A N/A self memory memory N/A domain N/A self _libvirt_node N/A N/A N/A domain setMaxMemory N/A memory 1024 N/A N/A N/A domain setMemoryFlags N/A memory 1024 2 N/A N/A N/A self save N/A N/A retry get_interface_target_dev N/A N/A self mac N/A N/A N/A Get target device

        :type mac: String
            :rtype : String
         N/A xml_desc N/A N/A ET fromstring N/A N/A N/A self _libvirt_node XMLDesc 0 N/A target N/A N/A xml_desc find N/A .//mac[@address="%s"]/../target mac N/A N/A target None N/A N/A N/A N/A target get dev N/A N/A retry N/A