Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str FunctionDef arguments args defaults body Expr Str If BoolOpAnd CompareIn Str NameLoad CompareIn Str NameLoad body Return NameLoad orelse Return TupleLoad NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Dict If Call AttributeLoad AttributeLoad NameLoad attr attr Str body With Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameStore body For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Num Str body Continue If CompareNotIn Str NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Call AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body With Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str NameStore body Expr Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr body If CompareIn Str Call NameLoad SubscriptLoad NameLoad Index NameLoad body If BoolOpOr UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Str UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Str body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad handlers ExceptHandler type NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If Call NameLoad NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad orelse If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Continue Assign SubscriptStore NameLoad Index NameLoad ListLoad For NameStore SubscriptLoad NameLoad Index NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd CompareIn NameLoad NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Str body Delete SubscriptDel NameLoad Index NameLoad If BoolOpAnd CompareIn NameLoad NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str Str body Delete SubscriptDel NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore Call NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore IfExp NameLoad Str Str If UnaryOpNot NameLoad body Assign NameStore Str If CompareIn NameLoad NameLoad body If CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If BoolOpAnd UnaryOpNot SubscriptLoad NameLoad Index Str CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore Call NameLoad If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Delete SubscriptDel NameLoad Index NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad If BoolOpAnd UnaryOpNot SubscriptLoad NameLoad Index Str CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str If CompareIn NameLoad Call SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign NameStore Call SubscriptLoad NameLoad Index Str If CompareIn NameLoad NameLoad body If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse Expr Call SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str CompareIn NameLoad Call SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str If CompareNotIn NameLoad Call SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse If CompareIn NameLoad Call SubscriptLoad NameLoad Index Str keyword Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse Expr Call SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str CompareNotIn NameLoad Call SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore ListLoad For NameStore Call SubscriptLoad NameLoad Index Str body If CompareNotIn Str NameLoad body Continue If CompareNotEq SubscriptLoad NameLoad Index Str NameLoad body Continue If CompareNotIn SubscriptLoad NameLoad Index Str ListLoad Str body Continue If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str For NameStore Call SubscriptLoad NameLoad Index Str keyword Str body If CompareIn NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad For NameStore Call SubscriptLoad NameLoad Index Str body If CompareIn NameLoad NameLoad body Continue If CompareIn NameLoad Call SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str If BoolOpAnd SubscriptLoad NameLoad Index Str CompareEq Call NameLoad SubscriptLoad NameLoad Index Str Num body Assign SubscriptStore NameLoad Index Str Str orelse If BoolOpAnd SubscriptLoad NameLoad Index Str CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore IfExp NameLoad NameLoad Dict Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Dict Str Str Str ListLoad Str Str Str Str Dict Str Str Str Str Str Str ListLoad Str Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareIn SubscriptLoad NameLoad Index Str Call SubscriptLoad NameLoad Index Str keyword Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Dict Str Str Str Str NameLoad Call SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str keyword Str Dict NameLoad If CompareIn Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareIn Str SubscriptLoad NameLoad Index Str body Assign NameStore ListLoad For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str body Assign NameStore NameLoad If CompareIn Str SubscriptLoad NameLoad Index Str body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str body If Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str Break If UnaryOpNot NameLoad body Delete SubscriptDel NameLoad Index Str orelse Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad For NameStore SubscriptLoad NameLoad Index Str body If BoolOpOr CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIn NameLoad SubscriptLoad NameLoad Index Str body Continue If CompareIn NameLoad SubscriptLoad NameLoad Index Str body If BoolOpOr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Continue orelse If CompareEq Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Continue Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Continue If BoolOpAnd CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIsNot SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body If BoolOpAnd CompareIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad CompareEq SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index NameLoad body Continue If CompareNotIn Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad Dict Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad Index NameLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Index NameLoad If BoolOpAnd CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIsNot SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body If BoolOpAnd CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIsNot SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body If CompareIn NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Continue If CompareNotIn Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareIn NameLoad SubscriptLoad NameLoad Index Str body Continue If BoolOpAnd CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIsNot SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Assign NameStore NameLoad For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body If CompareNotIn SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body Continue If CompareEq SubscriptLoad NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Dict If CompareGt Call NameLoad NameLoad Num body For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body If BoolOpAnd Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad Num body Continue If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If CompareGt Call NameLoad NameLoad Num body If CompareNotIn Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad ListLoad Assign SubscriptStore NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad attr NameLoad If NameLoad body If CompareNotIn Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad attr NameLoad If BoolOpAnd CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIsNot SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Assign NameStore NameLoad If BoolOpAnd CompareIn NameLoad SubscriptLoad NameLoad Index Str CompareIsNot SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body If CompareNotIn SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad NameLoad body Continue If CompareEq SubscriptLoad NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad SubscriptLoad NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad body Assign NameStore NameLoad If NameLoad body If CompareNotIn Call AttributeLoad Str attr NameLoad SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Call AttributeLoad Str attr NameLoad attr SubscriptLoad NameLoad Index SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Assign NameStore NameLoad If BoolOpAnd UnaryOpNot SubscriptLoad NameLoad Index Str CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num body If BoolOpAnd CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str SubscriptLoad NameLoad Index Str body If BoolOpOr CompareIn Str SubscriptLoad NameLoad Index Str CompareIn Str SubscriptLoad NameLoad Index Str CompareIn Str SubscriptLoad NameLoad Index Str body If CompareIn SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call SubscriptLoad NameLoad Index Str keyword Str keyword Str body Assign NameStore NameLoad Expr Call SubscriptLoad NameLoad Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword Str Assign NameStore Call SubscriptLoad NameLoad Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword Str SubscriptLoad NameLoad Index Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str If SubscriptLoad NameLoad Index Str body If SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str If BoolOpAnd CompareIn SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str CompareGt Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Num body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If BoolOpAnd SubscriptLoad NameLoad Index Str CompareEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Str UnaryOpNot SubscriptLoad NameLoad Index Str body If CompareIn SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Call SubscriptLoad NameLoad Index Str keyword Str keyword Str body Expr Call SubscriptLoad NameLoad Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword Str If NameLoad body Expr Call SubscriptLoad NameLoad Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword Str orelse Assign SubscriptStore NameLoad Index Str Dict Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If BoolOpAnd CompareIn Str SubscriptLoad NameLoad Index Str CompareNotEq SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str body If SubscriptLoad NameLoad Index Str body If CompareNotIn SubscriptLoad NameLoad Index Str Call SubscriptLoad NameLoad Index Str body If SubscriptLoad NameLoad Index Str body Assign NameStore Call SubscriptLoad NameLoad Index Str If BoolOpAnd CompareIn SubscriptLoad NameLoad Index Str NameLoad UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call SubscriptLoad NameLoad Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str keyword Str keyword SubscriptLoad NameLoad Index Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If CompareNotIn SubscriptLoad NameLoad Index Str Call SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareNotIn SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Dict Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str SubscriptLoad NameLoad Index Str orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd CompareIn Str NameLoad CompareNotIn SubscriptLoad NameLoad Index Str Call SubscriptLoad NameLoad Index Str body If SubscriptLoad NameLoad Index Str body Assign NameStore Call SubscriptLoad NameLoad Index Str If CompareNotIn SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str orelse If UnaryOpNot SubscriptLoad NameLoad Index Str body If CompareNotIn SubscriptLoad NameLoad Index Str Call SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If SubscriptLoad NameLoad Index Str body Assign NameStore IfExp UnaryOpNot SubscriptLoad NameLoad Index Str Call SubscriptLoad NameLoad Index Str NameLoad NameLoad If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str If CompareNotIn NameLoad Call SubscriptLoad NameLoad Index Str keyword Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse If UnaryOpNot SubscriptLoad NameLoad Index Str body If NameLoad body Expr Call SubscriptLoad NameLoad Index Str keyword NameLoad keyword Str keyword NameLoad Assign SubscriptStore NameLoad Index Str Call SubscriptLoad NameLoad Index Str NameLoad keyword Str orelse Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str If CompareIn NameLoad Call SubscriptLoad NameLoad Index Str keyword Str keyword Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore NameLoad Index Str IfExp SubscriptLoad NameLoad Index Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad keyword Str If BoolOpAnd UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str If CompareIn NameLoad Call SubscriptLoad NameLoad Index Str keyword Str keyword Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore NameLoad Index Str IfExp SubscriptLoad NameLoad Index Str NameLoad Call SubscriptLoad NameLoad Index Str NameLoad keyword Str If BoolOpAnd UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list
N/A N/A 
Management of SmartOS Standalone Compute Nodes

:maintainer:    Jorge Schrauwen <sjorge@blackdot.be>
:maturity:      new
:depends:       vmadm, imgadm
:platform:      smartos

.. versionadded:: 2016.3.0

.. code-block:: yaml

    vmtest.example.org:
      smartos.vm_present:
        - config:
            reprovision: true
        - vmconfig:
            image_uuid: c02a2044-c1bd-11e4-bd8c-dfc1db8b0182
            brand: joyent
            alias: vmtest
            quota: 5
            max_physical_memory: 512
            tags:
              label: 'test vm'
              owner: 'sjorge'
            nics:
              "82:1b:8e:49:e9:12"
                nic_tag: trunk
                mtu: 1500
                ips:
                  - 172.16.1.123/16
                  - 192.168.2.123/24
                vlan_id: 10
              "82:1b:8e:49:e9:13"
                nic_tag: trunk
                mtu: 1500
                ips:
                  - dhcp
                vlan_id: 30
            filesystems:
              "/bigdata":
                source: "/bulk/data"
                type: lofs
                options:
                  - ro
                  - nodevices

    kvmtest.example.org:
      smartos.vm_present:
        - vmconfig:
            brand: kvm
            alias: kvmtest
            cpu_type: host
            ram: 512
            vnc_port: 9
            tags:
              label: 'test kvm'
              owner: 'sjorge'
            disks:
              disk0
                size: 2048
                model: virtio
                compression: lz4
                boot: true
            nics:
              "82:1b:8e:49:e9:15"
                nic_tag: trunk
                mtu: 1500
                ips:
                  - dhcp
                vlan_id: 30

    cleanup_images:
      smartos.image_vacuum

.. note::

    Keep in mind that when removing properties from vmconfig they will not get
    removed from the vm's current configuration, except for nics, disk, tags, ...
    they get removed via add_*, set_*, update_*, and remove_*. Properties must
    be manually reset to their default value.
    The same behavior as when using 'vmadm update'.
 __future__ absolute_import N/A logging N/A os N/A salt.utils N/A salt.utils.files N/A salt.utils.atomicfile salt.utils.odict OrderedDict N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ smartos __virtual__ N/A N/A N/A N/A N/A 
    Provides smartos state provided for SmartOS
     N/A N/A N/A vmadm.create __salt__ N/A imgadm.list __salt__ N/A N/A True N/A N/A N/A False N/A N/A {0} state module can only be loaded on SmartOS computed nodes format __virtualname__ N/A _load_config N/A N/A N/A N/A N/A 
    Loads and parses /usbkey/config
     N/A config N/A N/A N/A N/A N/A os path isfile /usbkey/config N/A N/A N/A N/A N/A salt utils fopen /usbkey/config r config_file N/A N/A optval config_file N/A N/A N/A N/A optval N/A 0 # N/A N/A N/A N/A = optval N/A N/A N/A optval N/A N/A optval split = N/A N/A config N/A N/A N/A N/A optval N/A 0 lower N/A N/A N/A N/A N/A optval N/A 1 strip strip " N/A N/A N/A log debug N/A N/A smartos.config - read /usbkey/config: {0} format config N/A config N/A _write_config N/A N/A config N/A N/A N/A 
    writes /usbkey/config
     N/A N/A N/A N/A N/A N/A N/A salt utils atomicfile atomic_open /usbkey/config w config_file N/A N/A N/A N/A config_file write #
# This file was generated by salt
#
 N/A prop N/A OrderedDict N/A sorted N/A N/A config items N/A N/A N/A N/A str N/A config N/A prop N/A N/A N/A N/A N/A N/A N/A config N/A prop startswith " N/A N/A N/A N/A config N/A prop endswith " N/A N/A N/A config N/A prop N/A N/A "{0}" format N/A config N/A prop N/A N/A N/A config_file write N/A N/A {0}={1}
 format prop N/A config N/A prop N/A N/A N/A log debug N/A N/A smartos.config - wrote /usbkey/config: {0} format config N/A N/A N/A IOError N/A N/A False N/A True N/A _parse_vmconfig N/A N/A config instances N/A N/A N/A 
    Parse vm_present vm config
     N/A vmconfig None N/A N/A isinstance config N/A N/A N/A salt utils odict OrderedDict N/A N/A vmconfig N/A OrderedDict N/A prop N/A N/A config keys N/A N/A N/A prop instances N/A N/A N/A vmconfig N/A prop N/A config N/A prop N/A N/A N/A N/A isinstance N/A config N/A prop N/A N/A N/A salt utils odict OrderedDict N/A N/A N/A N/A vmconfig N/A prop N/A N/A instance N/A config N/A prop N/A N/A instance_config N/A N/A config N/A prop N/A instance N/A N/A instance_config N/A N/A instances N/A prop instance N/A N/A N/A N/A vmconfig N/A prop append instance_config N/A N/A N/A N/A log error smartos.vm_present::parse_vmconfig - failed to parse N/A vmconfig N/A _get_instance_changes N/A N/A current state N/A N/A N/A 
    get modified properties
     N/A current_keys N/A set N/A N/A current keys N/A state_keys N/A set N/A N/A state keys N/A changed N/A N/A N/A salt utils compare_dicts current state N/A change N/A N/A changed keys N/A N/A N/A N/A change changed N/A N/A N/A changed N/A change N/A old N/A N/A N/A changed N/A change N/A N/A N/A change changed N/A N/A N/A changed N/A change N/A new N/A N/A N/A changed N/A change N/A changed N/A config_present N/A N/A name value N/A N/A N/A 
    Ensure configuration property is set to value in /usbkey/config

    name : string
        name of property
    value : string
        value of property

     N/A name N/A N/A name lower N/A ret N/A name changes result comment name N/A None N/A config N/A _load_config N/A N/A isinstance value bool N/A N/A value N/A value true false N/A N/A value N/A N/A value N/A N/A name config N/A N/A N/A N/A str N/A config N/A name N/A str value N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A property {0} already has value "{1}" format name value N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A updated property {0} with value "{1}" format name value N/A N/A N/A ret N/A changes N/A name value N/A N/A config N/A name value N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A added property {0} with value "{1}" format name value N/A N/A N/A ret N/A changes N/A name value N/A N/A config N/A name value N/A N/A N/A N/A __opts__ N/A test N/A N/A len N/A ret N/A changes 0 N/A N/A N/A ret N/A result N/A _write_config config N/A ret N/A config_absent N/A N/A name N/A N/A N/A 
    Ensure configuration property is absent in /usbkey/config

    name : string
        name of property

     N/A name N/A N/A name lower N/A ret N/A name changes result comment name N/A None N/A config N/A _load_config N/A N/A name config N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A property {0} deleted format name N/A N/A N/A ret N/A changes N/A name None N/A N/A config N/A name N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A property {0} is absent format name N/A N/A N/A N/A __opts__ N/A test N/A N/A len N/A ret N/A changes 0 N/A N/A N/A ret N/A result N/A _write_config config N/A ret N/A image_present N/A N/A name N/A N/A N/A 
    Ensure image is present on the computenode

    name : string
        uuid of image
     N/A ret N/A name changes result comment name N/A None N/A N/A name N/A N/A __salt__ N/A imgadm.list N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A image {0} is present format name N/A N/A available_images N/A N/A __salt__ N/A imgadm.avail N/A N/A name available_images N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A result True N/A N/A N/A N/A __salt__ N/A imgadm.import name N/A N/A ret N/A result N/A name N/A N/A __salt__ N/A imgadm.list N/A N/A ret N/A comment N/A N/A image {0} installed format name N/A N/A N/A ret N/A changes N/A name N/A available_images N/A name N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A image {0} does not exists format name N/A ret N/A image_absent N/A N/A name N/A N/A N/A 
    Ensure image is absent on the computenode

    name : string
        uuid of image

    .. note::

        computenode.image_absent will only remove the image if it is not used
        by a vm.
     N/A ret N/A name changes result comment name N/A None N/A N/A name N/A N/A __salt__ N/A imgadm.list N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A image {0} is absent format name N/A N/A N/A name N/A N/A __salt__ N/A vmadm.list order image_uuid N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A image {0} currently in use by a vm format name N/A N/A N/A __opts__ N/A test N/A N/A N/A ret N/A result True N/A N/A N/A N/A __salt__ N/A imgadm.delete name N/A N/A ret N/A result N/A name N/A N/A __salt__ N/A imgadm.list N/A N/A ret N/A comment N/A N/A image {0} deleted format name N/A N/A N/A ret N/A changes N/A name None N/A ret N/A image_vacuum N/A N/A name N/A N/A N/A 
    Delete images not in use or installed via image_present
     N/A name N/A N/A name lower N/A ret N/A name changes result comment name N/A None N/A images N/A N/A state N/A N/A __salt__ N/A state.show_lowstate N/A N/A N/A state state N/A N/A N/A N/A N/A state N/A state __virtualname__ N/A N/A N/A N/A N/A state N/A fun N/A image_present N/A N/A N/A N/A name state N/A N/A N/A N/A images append N/A state N/A name N/A image_uuid N/A N/A __salt__ N/A vmadm.list order image_uuid N/A N/A N/A image_uuid images N/A N/A N/A N/A N/A images append image_uuid N/A N/A ret N/A result True N/A image_uuid N/A N/A __salt__ N/A imgadm.list N/A N/A N/A image_uuid images N/A N/A N/A N/A image_uuid N/A N/A __salt__ N/A imgadm.delete image_uuid N/A N/A N/A N/A ret N/A changes N/A image_uuid None N/A N/A N/A ret N/A result False N/A N/A ret N/A comment failed to delete images N/A N/A N/A ret N/A result N/A N/A len N/A ret N/A changes 0 N/A N/A N/A ret N/A comment no images deleted N/A N/A N/A N/A ret N/A result N/A N/A len N/A ret N/A changes 0 N/A N/A N/A ret N/A comment images deleted N/A ret N/A vm_present N/A N/A name vmconfig config N/A None N/A N/A 
    Ensure vm is present on the computenode

    name : string
        hostname of vm
    vmconfig : dict
        options to set for the vm
    config : dict
        fine grain control over vm_present

    .. note::

        The following configuration properties can be toggled in the config parameter.
          - kvm_reboot (true) - reboots of kvm zones if needed for a config update
          - auto_import (false) - automatic importing of missing images
          - reprovision (false) - reprovision on image_uuid changes

    .. note::

        State ID is used as hostname. Hostnames must be unique.

    .. note::

        If hostname is provided in vmconfig this will take president over the State ID.
        This allows multiple states to be applied to the same vm.

    .. note::

        The following instances should have a unique ID.
          - nic : mac
          - filesystem: target
          - disk : path or diskN for zvols

        e.g. disk0 will be the first disk added, disk1 the 2nd,...

     N/A name N/A N/A name lower N/A ret N/A name changes result comment name N/A None N/A state_config N/A config config N/A N/A config N/A kvm_reboot auto_import reprovision True False False N/A N/A N/A config update state_config N/A N/A N/A log debug N/A N/A smartos.vm_present::{0}::config - {1} format name config N/A vmconfig_type N/A collection instance create_only N/A tags customer_metadata internal_metadata routes N/A nics disks filesystems mac path target N/A filesystems N/A vmconfig N/A _parse_vmconfig vmconfig N/A vmconfig_type N/A instance N/A N/A N/A log debug N/A N/A smartos.vm_present::{0}::vmconfig - {1} format name vmconfig N/A N/A hostname vmconfig N/A N/A N/A vmconfig N/A hostname name N/A N/A N/A vmconfig N/A hostname N/A N/A __salt__ N/A vmadm.list order hostname N/A N/A N/A ret N/A result True N/A vmconfig N/A state current changed reprovision_uuid vmconfig N/A N/A __salt__ N/A vmadm.get N/A vmconfig N/A hostname key hostname N/A None N/A N/A image_uuid N/A vmconfig N/A state N/A N/A N/A vmconfig N/A reprovision_uuid N/A N/A vmconfig N/A state N/A image_uuid N/A N/A N/A vmconfig N/A state N/A image_uuid N/A N/A vmconfig N/A current N/A image_uuid N/A N/A disks N/A vmconfig N/A state N/A N/A new_disks N/A N/A disk N/A N/A vmconfig N/A state N/A disks N/A N/A path False N/A N/A disks N/A vmconfig N/A current N/A N/A cdisk N/A N/A vmconfig N/A current N/A disks N/A N/A N/A N/A N/A cdisk N/A path endswith N/A disk N/A path N/A N/A path N/A cdisk N/A path N/A N/A N/A path N/A N/A N/A disk N/A path N/A N/A N/A disk N/A path path N/A N/A N/A new_disks append disk N/A N/A N/A vmconfig N/A state N/A disks new_disks N/A prop N/A vmconfig N/A state N/A N/A N/A N/A prop N/A vmconfig_type N/A instance N/A prop N/A vmconfig_type N/A collection N/A prop N/A vmconfig_type N/A create_only N/A N/A N/A N/A prop N/A vmconfig N/A current N/A N/A N/A N/A isinstance N/A N/A vmconfig N/A current N/A prop list N/A isinstance N/A N/A vmconfig N/A current N/A prop dict N/A N/A N/A N/A N/A vmconfig N/A current N/A prop N/A N/A vmconfig N/A state N/A prop N/A N/A N/A N/A N/A N/A N/A {0} format N/A N/A vmconfig N/A current N/A prop N/A N/A {0} format N/A N/A vmconfig N/A state N/A prop N/A N/A N/A N/A N/A vmconfig N/A changed N/A prop N/A N/A vmconfig N/A state N/A prop N/A collection N/A vmconfig_type N/A collection N/A N/A N/A collection N/A vmconfig_type N/A create_only N/A N/A N/A N/A N/A collection N/A vmconfig N/A state N/A N/A N/A vmconfig N/A state N/A collection None N/A N/A prop N/A N/A vmconfig N/A state N/A collection N/A N/A N/A N/A prop N/A N/A vmconfig N/A current N/A collection N/A N/A N/A N/A vmconfig N/A current N/A collection N/A prop N/A N/A N/A vmconfig N/A state N/A collection N/A prop N/A N/A N/A N/A N/A N/A set_{0} format collection N/A vmconfig N/A changed N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A set_{0} format collection N/A N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A set_{0} format collection N/A prop N/A N/A N/A vmconfig N/A state N/A collection N/A prop N/A N/A N/A collection N/A vmconfig N/A current N/A N/A N/A vmconfig N/A current N/A collection None N/A N/A prop N/A N/A vmconfig N/A current N/A collection N/A N/A N/A N/A collection N/A vmconfig N/A state N/A N/A N/A vmconfig N/A state N/A collection None N/A N/A N/A prop N/A N/A vmconfig N/A state N/A collection N/A N/A N/A N/A N/A N/A remove_{0} format collection N/A vmconfig N/A changed N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A remove_{0} format collection N/A N/A N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A remove_{0} format collection append prop N/A instance N/A vmconfig_type N/A instance N/A N/A N/A instance N/A vmconfig_type N/A create_only N/A N/A N/A N/A N/A instance N/A vmconfig N/A state N/A N/A N/A vmconfig N/A state N/A instance None N/A N/A state_cfg N/A N/A vmconfig N/A state N/A instance N/A N/A add_instance True N/A current_cfg N/A N/A vmconfig N/A current N/A instance N/A N/A N/A N/A N/A vmconfig_type N/A instance N/A instance state_cfg N/A N/A N/A N/A N/A state_cfg N/A N/A N/A vmconfig_type N/A instance N/A instance N/A current_cfg N/A N/A N/A vmconfig_type N/A instance N/A instance N/A N/A add_instance False N/A changed N/A _get_instance_changes current_cfg state_cfg N/A update_cfg N/A N/A N/A N/A len changed 0 N/A N/A prop changed N/A N/A N/A update_cfg N/A prop N/A state_cfg N/A prop N/A prop state_cfg N/A N/A N/A N/A isinstance N/A state_cfg N/A prop list N/A N/A len N/A state_cfg N/A prop 0 N/A N/A N/A N/A prop current_cfg N/A N/A N/A update_cfg N/A prop N/A state_cfg N/A prop N/A N/A N/A len update_cfg 0 N/A N/A N/A N/A N/A update_{0} format instance N/A vmconfig N/A changed N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A update_{0} format instance N/A N/A N/A update_cfg N/A N/A N/A vmconfig_type N/A instance N/A instance N/A state_cfg N/A N/A N/A vmconfig_type N/A instance N/A instance N/A N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A update_{0} format instance append update_cfg N/A add_instance N/A N/A N/A N/A N/A add_{0} format instance N/A vmconfig N/A changed N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A add_{0} format instance N/A N/A N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A add_{0} format instance append state_cfg N/A N/A N/A instance N/A vmconfig N/A current N/A N/A N/A vmconfig N/A current N/A instance None N/A N/A current_cfg N/A N/A vmconfig N/A current N/A instance N/A N/A remove_instance True N/A N/A N/A instance N/A vmconfig N/A state N/A N/A N/A vmconfig N/A state N/A instance None N/A N/A state_cfg N/A N/A vmconfig N/A state N/A instance N/A N/A N/A N/A N/A vmconfig_type N/A instance N/A instance state_cfg N/A N/A N/A N/A N/A state_cfg N/A N/A N/A vmconfig_type N/A instance N/A instance N/A current_cfg N/A N/A N/A vmconfig_type N/A instance N/A instance N/A N/A remove_instance False N/A remove_instance N/A N/A N/A N/A N/A remove_{0} format instance N/A vmconfig N/A changed N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A remove_{0} format instance N/A N/A N/A N/A N/A N/A vmconfig N/A changed N/A N/A N/A remove_{0} format instance append N/A current_cfg N/A N/A N/A vmconfig_type N/A instance N/A instance N/A kvm_needs_start False N/A N/A N/A N/A __opts__ N/A test N/A N/A len N/A vmconfig N/A changed 0 N/A N/A N/A N/A N/A N/A vmconfig N/A current N/A brand kvm N/A config N/A kvm_reboot N/A N/A N/A N/A add_disks N/A vmconfig N/A changed N/A update_disks N/A vmconfig N/A changed N/A remove_disks N/A vmconfig N/A changed N/A N/A N/A N/A N/A vmconfig N/A state N/A hostname N/A N/A __salt__ N/A vmadm.list order hostname search state=running N/A N/A kvm_needs_start True N/A N/A N/A __salt__ N/A vmadm.stop vm N/A N/A vmconfig N/A state N/A hostname key hostname N/A rret N/A N/A __salt__ N/A vmadm.update vm N/A N/A vmconfig N/A state N/A hostname key hostname N/A vmconfig N/A changed N/A N/A N/A N/A isinstance rret bool N/A Error rret N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A {0} format N/A rret N/A Error N/A N/A N/A ret N/A result True N/A N/A N/A ret N/A changes N/A N/A N/A vmconfig N/A state N/A hostname N/A vmconfig N/A changed N/A N/A ret N/A result N/A N/A N/A __opts__ N/A test N/A N/A N/A N/A ret N/A changes N/A N/A N/A vmconfig N/A state N/A hostname N/A vmconfig N/A changed N/A N/A N/A N/A N/A vmconfig N/A state N/A hostname N/A ret N/A changes N/A N/A len N/A N/A ret N/A changes N/A N/A N/A vmconfig N/A state N/A hostname 0 N/A N/A N/A ret N/A comment N/A N/A vm {0} updated format N/A N/A vmconfig N/A state N/A hostname N/A N/A N/A config N/A kvm_reboot N/A N/A N/A vmconfig N/A current N/A brand kvm N/A N/A __opts__ N/A test N/A N/A N/A N/A N/A vmconfig N/A state N/A hostname N/A N/A __salt__ N/A vmadm.list order hostname search state=running N/A N/A N/A N/A __salt__ N/A vmadm.reboot vm N/A N/A vmconfig N/A state N/A hostname key hostname N/A kvm_needs_start N/A N/A N/A N/A __salt__ N/A vmadm.start vm N/A N/A vmconfig N/A state N/A hostname key hostname N/A N/A N/A ret N/A changes N/A N/A N/A ret N/A comment N/A N/A vm {0} is up to date format N/A N/A vmconfig N/A state N/A hostname N/A N/A N/A image_uuid N/A vmconfig N/A current N/A N/A vmconfig N/A reprovision_uuid N/A N/A vmconfig N/A current N/A image_uuid N/A N/A N/A config N/A reprovision N/A N/A N/A N/A vmconfig N/A reprovision_uuid N/A N/A __salt__ N/A imgadm.list N/A N/A N/A config N/A auto_import N/A N/A available_images N/A N/A __salt__ N/A imgadm.avail N/A N/A N/A N/A vmconfig N/A reprovision_uuid available_images N/A N/A __opts__ N/A test N/A N/A N/A N/A __salt__ N/A imgadm.import N/A vmconfig N/A reprovision_uuid N/A rret N/A N/A __salt__ N/A vmadm.reprovision vm N/A N/A vmconfig N/A state N/A hostname key hostname image N/A vmconfig N/A reprovision_uuid N/A N/A N/A N/A isinstance rret bool N/A Error rret N/A N/A N/A ret N/A result False N/A N/A N/A vmconfig N/A reprovision_uuid N/A N/A __salt__ N/A imgadm.list N/A N/A N/A ret N/A comment N/A N/A vm {0} updated, reprovision failed because images {1} not installed format N/A N/A vmconfig N/A state N/A hostname N/A vmconfig N/A reprovision_uuid N/A N/A N/A ret N/A comment N/A N/A vm {0} updated, reprovision failed format N/A N/A vmconfig N/A state N/A hostname N/A N/A N/A ret N/A comment N/A N/A vm {0} updated and reprovisioned format N/A N/A vmconfig N/A state N/A hostname N/A N/A N/A N/A vmconfig N/A state N/A hostname N/A ret N/A changes N/A N/A N/A N/A ret N/A changes N/A N/A N/A vmconfig N/A state N/A hostname N/A N/A N/A N/A N/A ret N/A changes N/A N/A N/A vmconfig N/A state N/A hostname N/A image_uuid N/A vmconfig N/A reprovision_uuid N/A N/A N/A N/A log warning N/A N/A smartos.vm_present::{0}::reprovision - image_uuid in state does not match current, reprovision not allowed format name N/A N/A N/A ret N/A comment N/A N/A vm {0} failed to be updated format N/A N/A vmconfig N/A state N/A hostname N/A N/A N/A N/A isinstance rret bool N/A Error rret N/A N/A N/A ret N/A comment N/A N/A {0} format N/A rret N/A Error N/A N/A N/A ret N/A result True N/A N/A N/A image_uuid vmconfig N/A N/A vmconfig N/A image_uuid N/A N/A __salt__ N/A imgadm.list N/A N/A N/A config N/A auto_import N/A N/A available_images N/A N/A __salt__ N/A imgadm.avail N/A N/A N/A vmconfig N/A image_uuid available_images N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A image {0} not available format N/A vmconfig N/A image_uuid N/A N/A N/A N/A __opts__ N/A test N/A N/A N/A N/A vmconfig N/A image_uuid N/A N/A __salt__ N/A imgadm.import N/A vmconfig N/A image_uuid N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A failed to import image {0} format N/A vmconfig N/A image_uuid N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A image {0} not installed format N/A vmconfig N/A image_uuid N/A N/A disks vmconfig N/A N/A new_disks N/A N/A disk N/A vmconfig N/A disks N/A N/A N/A path disk N/A N/A N/A disk N/A path N/A N/A N/A new_disks append disk N/A N/A vmconfig N/A disks new_disks N/A N/A ret N/A result N/A N/A uuid N/A N/A N/A __opts__ N/A test N/A N/A __salt__ N/A vmadm.create vmconfig True N/A N/A N/A N/A isinstance uuid bool N/A Error uuid N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A {0} format N/A uuid N/A Error N/A N/A N/A ret N/A result True N/A N/A N/A ret N/A changes N/A N/A vmconfig N/A hostname vmconfig N/A N/A ret N/A comment N/A N/A vm {0} created format N/A vmconfig N/A hostname N/A ret N/A vm_absent N/A N/A name archive N/A False N/A N/A 
    Ensure vm is absent on the computenode

    name : string
        hostname of vm
    archive : boolean
        toggle archiving of vm on removal

    .. note::

        State ID is used as hostname. Hostnames must be unique.

     N/A name N/A N/A name lower N/A ret N/A name changes result comment name N/A None N/A N/A name N/A N/A __salt__ N/A vmadm.list order hostname N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A vm {0} is absent format name N/A N/A N/A N/A __opts__ N/A test N/A N/A archive N/A N/A N/A N/A __salt__ N/A vmadm.update vm name key hostname archive_on_delete True N/A N/A ret N/A result N/A N/A __salt__ N/A vmadm.delete name key hostname N/A N/A N/A ret N/A result True N/A N/A N/A N/A isinstance N/A ret N/A result bool N/A N/A N/A ret N/A result get Error N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A failed to delete vm {0} format name N/A N/A N/A ret N/A comment N/A N/A vm {0} deleted format name N/A N/A N/A ret N/A changes N/A name None N/A ret N/A vm_running N/A N/A name N/A N/A N/A 
    Ensure vm is in the running state on the computenode

    name : string
        hostname of vm

    .. note::

        State ID is used as hostname. Hostnames must be unique.

     N/A name N/A N/A name lower N/A ret N/A name changes result comment name N/A None N/A N/A name N/A N/A __salt__ N/A vmadm.list order hostname search state=running N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A vm {0} already running format name N/A N/A N/A ret N/A result N/A N/A __opts__ N/A test True N/A N/A __salt__ N/A vmadm.start name key hostname N/A N/A N/A N/A isinstance N/A ret N/A result bool N/A N/A N/A ret N/A result get Error N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A failed to start {0} format name N/A N/A N/A N/A ret N/A changes N/A name running N/A N/A ret N/A comment N/A N/A vm {0} started format name N/A ret N/A vm_stopped N/A N/A name N/A N/A N/A 
    Ensure vm is in the stopped state on the computenode

    name : string
        hostname of vm

    .. note::

        State ID is used as hostname. Hostnames must be unique.

     N/A name N/A N/A name lower N/A ret N/A name changes result comment name N/A None N/A N/A name N/A N/A __salt__ N/A vmadm.list order hostname search state=stopped N/A N/A N/A ret N/A result True N/A N/A ret N/A comment N/A N/A vm {0} already stopped format name N/A N/A N/A ret N/A result N/A N/A __opts__ N/A test True N/A N/A __salt__ N/A vmadm.stop name key hostname N/A N/A N/A N/A isinstance N/A ret N/A result bool N/A N/A N/A ret N/A result get Error N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A failed to stop {0} format name N/A N/A N/A N/A ret N/A changes N/A name stopped N/A N/A ret N/A comment N/A N/A vm {0} stopped format name N/A ret N/A