Module Expr Str Import alias Import alias identifier Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias identifier Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Str ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Str orelse If Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore IfExp CompareIs AttributeLoad NameLoad attr NameLoad Str BinOpMod AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpAdd BinOpAdd NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Num Index Num Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr attr attr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr Str orelse Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad BoolOpAnd CompareEq AttributeLoad NameLoad attr NameLoad Call NameLoad Call NameLoad NameLoad NameLoad For NameStore NameLoad body Return NameLoad Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num NameLoad Num Num NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num NameLoad body Expr Str Import alias Import alias Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Num Str body Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body FunctionDef arguments args defaults vararg kwarg body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body If CompareEq AttributeLoad NameLoad attr Str body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str TupleLoad NameLoad orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Str If AttributeLoad NameLoad attr body Return BinOpMod NameLoad AttributeLoad NameLoad attr orelse If AttributeLoad NameLoad attr body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Return TupleLoad NameLoad NameLoad NameLoad orelse Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Return If NameLoad body AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad If NameLoad body AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad AugAssignAdd NameStore Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr name NameStore body TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Str Assign NameStore Str If NameLoad body AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad If NameLoad body AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr name NameStore body If UnaryOpNot Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad body Raise orelse If NameLoad body Raise Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Return NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr name NameStore body If UnaryOpNot Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad body Raise orelse If NameLoad body Raise Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Return NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign AttributeStore NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr name NameStore body If UnaryOpNot Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad body Raise orelse If NameLoad body Raise Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Return NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr name NameStore body If UnaryOpNot Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad body Raise orelse If NameLoad body Raise Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Return NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Return IfExp CompareIsNot NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults TupleLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore TupleLoad NameLoad Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict Assign NameStore Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr TryExcept body For NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Index Str body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str NameLoad For NameStore NameLoad body TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Index Str handlers ExceptHandler type NameLoad name NameStore body Raise Call AttributeLoad NameLoad attr Str keyword NameLoad handlers ExceptHandler type NameLoad body Return Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad NameLoad attr Str body For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str NameLoad For NameStore NameLoad body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr IfExp CompareEq NameLoad Str NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad AttributeLoad NameLoad attr NameLoad body Pass orelse Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Str orelse Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str If CompareIs NameLoad NameLoad body If NameLoad body Raise Call AttributeLoad NameLoad attr Str keyword NameLoad orelse Return Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Assign NameStore NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str For NameStore NameLoad body Assign NameStore IfExp CompareEq SubscriptLoad NameLoad Index Str Str NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str Dict Str Str Str Str Str Str NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str TryExcept body Assign SubscriptStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str Index Str Str TryExcept body Assign SubscriptStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Index Str handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Str Index Str SubscriptLoad NameLoad Index Str Assign NameStore IfExp BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Str NameLoad NameLoad NameLoad If NameLoad body Assign NameStore ListLoad orelse Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad orelse If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str If CompareIs NameLoad NameLoad body If NameLoad body Raise Call AttributeLoad NameLoad attr Str keyword NameLoad orelse Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str If CompareIsNot NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad Num body Raise NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareIs NameLoad NameLoad body Raise Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str BinOpMod Str NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str If CompareIs NameLoad NameLoad body Return Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore IfExp CompareEq SubscriptLoad NameLoad Index Str Str NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore ListLoad NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad Return NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr Num CompareGt Call AttributeLoad NameLoad attr BinOpAdd NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Expr Str Import alias If CompareIsNot NameLoad NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad Num body Raise NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad While NameLoad body TryExcept body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr name NameStore body If BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad orelse If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Return NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr Num CompareGt Call AttributeLoad NameLoad attr BinOpAdd NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A Base object classes for inheritence by other classes N/A re N/A xml.etree.ElementTree ET N/A logging N/A inspect N/A time N/A pandevice N/A pan.xapi pan.config PanConfig N/A errors err N/A updater N/A logger N/A N/A logging getLogger __name__ N/A Root N/A N/A pandevice enum DEVICE VSYS MGTCONFIG PanObject N/A object N/A N/A XPATH /config N/A ENTRY /entry[@name='%s'] N/A MEMBER /member[text()='%s'] N/A SUFFIX None N/A ROOT N/A Root DEVICE __init__ N/A N/A self name N/A None N/A N/A N/A self name name N/A N/A self parent None N/A N/A self children N/A N/A add N/A N/A self child N/A N/A N/A N/A child parent self N/A N/A N/A N/A self children append child N/A child N/A pop N/A N/A self index N/A N/A N/A child N/A N/A N/A self children pop index N/A N/A child parent None N/A child N/A remove_by_name N/A N/A self name cls N/A None N/A N/A index N/A N/A PanObject find N/A self children name cls N/A N/A index None N/A N/A None N/A N/A N/A self pop index N/A xpath N/A N/A self N/A N/A N/A Return an xpath for this object

        Xpath in the form: parent's xpath + this object's xpath + entry or member if applicable.
         N/A N/A N/A self parent None N/A N/A parent_xpath N/A N/A N/A issubclass N/A type N/A self parent PanDevice N/A N/A N/A N/A self ROOT N/A Root DEVICE N/A N/A parent_xpath N/A N/A N/A self parent xpath_device N/A N/A N/A N/A self ROOT N/A Root VSYS N/A N/A parent_xpath N/A N/A N/A self parent xpath_vsys N/A N/A N/A N/A self ROOT N/A Root MGTCONFIG N/A N/A parent_xpath N/A N/A N/A self parent xpath_mgtconfig N/A N/A parent_xpath N/A N/A N/A self parent xpath N/A N/A parent_xpath N/A N/A N/A self parent xpath N/A suffix N/A N/A N/A self SUFFIX None N/A N/A self SUFFIX N/A self name N/A result N/A str N/A N/A parent_xpath N/A self XPATH suffix N/A result N/A element N/A N/A self N/A N/A N/A N/A <entry name="%s"></entry> N/A self name N/A apply N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self pandevice xapi edit N/A N/A self xpath N/A N/A self element N/A create N/A N/A self N/A N/A N/A xpath N/A N/A N/A N/A N/A self xpath rsplit / 1 N/A 0 N/A N/A N/A N/A N/A N/A self pandevice xapi set xpath N/A N/A self element N/A delete N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A self pandevice xapi delete N/A N/A self xpath N/A N/A N/A self parent None N/A N/A N/A N/A N/A self parent remove_by_name N/A self name N/A type self N/A pandevice N/A N/A self N/A N/A N/A N/A issubclass N/A self __class__ PanDevice N/A N/A self N/A N/A N/A N/A self parent None N/A N/A N/A N/A err PanDeviceNotSet No PanDevice set for object tree N/A N/A N/A N/A N/A self parent pandevice N/A find N/A N/A cls list_of_panobjects name class_type N/A None N/A N/A N/A class_type None N/A N/A class_type cls N/A indexes N/A i N/A N/A i child N/A enumerate list_of_panobjects N/A N/A N/A child name name N/A issubclass N/A type child class_type N/A index indexes N/A N/A index N/A None N/A classmethod N/A VsysImportMixin N/A object N/A N/A Modify PanObject methods to set vsys import configuration

    This only applies to some object types, hence it is a Mixin,
    and not part of PanObject
     __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super VsysImportMixin self __init__ args kwargs N/A create N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super VsysImportMixin self create args kwargs N/A pandevice N/A N/A N/A super VsysImportMixin self pandevice N/A N/A N/A pandevice vsys shared N/A N/A xpath_import N/A N/A N/A N/A pandevice xpath_vsys /import N/A self XPATH N/A N/A N/A N/A pandevice xapi set xpath_import N/A <member>%s</member> N/A self name N/A delete N/A N/A self N/A args kwargs N/A N/A pandevice N/A N/A N/A super VsysImportMixin self pandevice N/A xpath_import N/A N/A N/A N/A pandevice xpath_vsys /import N/A self XPATH N/A N/A N/A pandevice vsys shared N/A N/A N/A N/A N/A pandevice xapi delete N/A xpath_import N/A /member[text()='%s'] N/A self name N/A N/A N/A N/A super VsysImportMixin self delete args kwargs N/A N/A PanDevice N/A PanObject N/A N/A A Palo Alto Networks device

    The device can be of any type (currently supported devices are firewall,
    or panorama). The class handles common device functions that apply
    to all device types.

    Attributes:
        hostname: Hostname or IP of device for API connections
        port: Port of device for API connections
        vsys: This device class represents a specific VSYS
        devicegroup: This device class represents a specific Device-Group
            in Panorama
        xpath: The XPath for the root of this device, taking into account any
            VSYS, Device-Group, or Panorama state
        timeout: The timeout for API connections
        api_key: The API Key for connecting to the device's API
     __init__ N/A N/A self hostname api_username api_password api_key serial port is_virtual timeout interval classify_exceptions N/A None None None None 443 None 1200 0.5 False N/A N/A Initialize PanDevice N/A N/A N/A N/A super PanDevice self __init__ N/A N/A self _logger N/A N/A logging getLogger N/A N/A __name__ . N/A N/A self __class__ __name__ N/A N/A self hostname hostname N/A N/A self port port N/A N/A self _api_username api_username N/A N/A self _api_password api_password N/A N/A self _api_key api_key N/A N/A self is_virtual is_virtual N/A N/A self serial serial N/A N/A self timeout timeout N/A N/A self interval interval N/A N/A self interfaces N/A N/A N/A self _xapi_private None N/A N/A self _classify_exceptions classify_exceptions N/A N/A self config_locked False N/A N/A self commit_locked False N/A N/A self lock_before_change False N/A N/A self config_changed False N/A N/A self connected_to_panorama None N/A N/A self dg_in_sync None N/A N/A self software N/A N/A updater SoftwareUpdater self N/A N/A self content N/A N/A updater ContentUpdater self N/A N/A self version None N/A N/A self content_version None N/A create_from_device N/A N/A cls hostname api_username api_password api_key serial port classify_exceptions N/A None None None None 443 False N/A N/A Create a Firewall or Panorama object from a live device

        This method connects to the device and detects its type and current
        state in order to create a PanDevice subclass.

        :returns PanDevice subclass instance (Firewall or Panorama instance)
         N/A firewall N/A panorama N/A device N/A PanDevice hostname api_username api_password api_key serial port classify_exceptions classify_exceptions N/A N/A version model serial N/A N/A device system_info N/A N/A model Panorama N/A N/A subclass N/A panorama Panorama N/A N/A subclass N/A firewall Firewall N/A instance N/A subclass hostname api_username api_password api_key serial port classify_exceptions classify_exceptions N/A N/A instance version version N/A instance N/A classmethod XapiWrapper N/A N/A N/A pan xapi PanXapi N/A N/A This is a confusing class used for catching exceptions and
        faults.
         __init__ N/A N/A self N/A args kwargs N/A N/A N/A self pan_device N/A N/A kwargs pop pan_device None N/A N/A N/A N/A N/A pan xapi PanXapi __init__ self args kwargs N/A N/A name method N/A N/A inspect getmembers N/A N/A pan xapi PanXapi N/A inspect ismethod N/A N/A N/A N/A name N/A 0 _ N/A N/A N/A wrapper_method N/A N/A self make_method method N/A N/A setattr N/A PanDevice XapiWrapper name wrapper_method N/A make_method N/A N/A self super_method N/A N/A method N/A N/A N/A args kwargs N/A N/A N/A N/A N/A super_method args kwargs N/A N/A N/A N/A N/A pan xapi PanXapiError N/A e N/A N/A N/A N/A e msg Invalid credentials. N/A N/A N/A N/A err PanInvalidCredentials N/A e msg pan_device N/A self pan_device N/A N/A N/A N/A N/A e msg startswith URLError: N/A N/A N/A N/A N/A e msg endswith timed out N/A N/A N/A N/A err PanConnectionTimeout N/A e msg pan_device N/A self pan_device N/A N/A N/A N/A err PanURLError N/A e msg pan_device N/A self pan_device N/A N/A N/A N/A N/A e msg startswith timeout waiting for job N/A N/A N/A N/A err PanJobTimeout N/A e msg pan_device N/A self pan_device N/A N/A N/A N/A N/A e msg startswith Another commit/validate is in progress. Please try again later N/A N/A N/A N/A err PanCommitInProgress N/A e msg pan_device N/A self pan_device N/A N/A N/A N/A N/A e msg startswith A commit is in progress. N/A N/A N/A N/A err PanCommitInProgress N/A e msg pan_device N/A self pan_device N/A N/A N/A N/A N/A e msg startswith You cannot commit while an install is in progress. Please try again later. N/A N/A N/A N/A err PanInstallInProgress N/A e msg pan_device N/A self pan_device N/A N/A N/A N/A N/A e msg startswith Session timed out N/A N/A N/A N/A err PanSessionTimedOut N/A e msg pan_device N/A self pan_device N/A N/A N/A N/A err PanDeviceXapiError N/A e msg pan_device N/A self pan_device N/A N/A method N/A N/A api_key N/A N/A self N/A N/A N/A N/A N/A self _api_key None N/A N/A N/A self _api_key N/A N/A self _retrieve_api_key N/A N/A self _api_key N/A property xapi N/A N/A self N/A N/A N/A N/A N/A self _xapi_private None N/A N/A N/A self _xapi_private N/A N/A self generate_xapi N/A N/A self _xapi_private N/A property update_connection_method N/A N/A self N/A N/A N/A N/A self _xapi_private N/A N/A self generate_xapi N/A N/A self _xapi_private N/A generate_xapi N/A N/A self N/A N/A N/A kwargs N/A api_key hostname port timeout N/A self api_key N/A self hostname N/A self port N/A self timeout N/A N/A self _classify_exceptions N/A N/A xapi_constructor N/A PanDevice XapiWrapper N/A N/A kwargs N/A pan_device N/A self N/A N/A xapi_constructor N/A N/A pan xapi PanXapi N/A N/A xapi_constructor kwargs N/A set_config_changed N/A N/A self N/A N/A N/A N/A self lock_before_change N/A N/A N/A N/A self config_locked N/A N/A N/A N/A self add_config_lock exception True N/A 
                if self.pending_changes():
                    self.revert_to_running_configuration()
                    raise err.PanPendingChanges("There are pending changes, "
                                            "cannot apply configuration "
                                            "because cannot get config-lock",
                                            pan_device=self)
                 N/A N/A self config_changed True N/A __get_xpath_scope N/A N/A self N/A N/A N/A Return the XPath root for the current device

        A private helper method to return an XPath that is appropriate given
        the current state of the instance variables. This XPath represents
        the root of the VSYS, Device-Group, or Shared object area.

        Returns:
            A string containing an XPath to be used as the root for
            other API calls
         N/A xpath_device /config/devices/entry[@name='localhost.localdomain'] N/A xpath_vsys N/A xpath_device /vsys/entry[@name='%s'] N/A xpath_devicegroup N/A xpath_device device-group/entry[@name='%s'] N/A xpath_shared /config/shared N/A N/A self devicegroup N/A N/A N/A xpath_devicegroup N/A self devicegroup N/A N/A N/A self is_panorama N/A N/A xpath_shared N/A N/A xpath_device N/A _retrieve_api_key N/A N/A self N/A N/A N/A Return an API key for a username and password

        Given a username and password, return the API key of that user for
        this PAN Device. The username and password are not stored, and the
        API key is returned.  It is up to the caller to store it in an
        instance variable if desired.

        Returns:
            A string containing the API key

        Raises:
            PanDeviceError: If unable to retrieve the API key for reasons
                other than an API connectivity problem
            PanXapiError:  Raised by pan.xapi module for API errors
         N/A N/A N/A N/A self _logger debug N/A Getting API Key from %s for user %s N/A N/A self hostname N/A self _api_username N/A N/A self _classify_exceptions N/A N/A xapi N/A N/A PanDevice XapiWrapper pan_device self api_username N/A self _api_username api_password N/A self _api_password hostname N/A self hostname port N/A self port timeout N/A self timeout N/A N/A xapi N/A N/A N/A pan xapi PanXapi api_username N/A self _api_username api_password N/A self _api_password hostname N/A self hostname port N/A self port timeout N/A self timeout N/A N/A N/A xapi keygen N/A N/A xapi api_key N/A system_info N/A N/A self all_info N/A False N/A N/A Get system information

        Returns:
            system information like version, platform, etc.
         N/A N/A N/A N/A self xapi op cmd <show><system><info></info></system></show> N/A pconf N/A PanConfig N/A N/A self xapi element_result N/A system_info N/A N/A pconf python N/A N/A N/A N/A self _logger debug N/A Systeminfo: %s system_info N/A N/A system_info N/A N/A error_msg Cannot detect device type, unable to get system info N/A N/A N/A N/A self _logger error error_msg N/A N/A N/A err PanDeviceError error_msg pan_device self N/A N/A all_info N/A N/A version N/A N/A N/A system_info N/A result N/A system N/A sw-version N/A model N/A N/A N/A system_info N/A result N/A system N/A model N/A serial N/A N/A N/A system_info N/A result N/A system N/A serial N/A N/A version model serial N/A N/A N/A system_info N/A result N/A refresh_version N/A N/A self N/A N/A N/A Get version of PAN-OS

        returns:
            version of PAN-OS
         N/A system_info N/A N/A self system_info N/A N/A self version N/A system_info N/A 0 N/A N/A self version N/A set_hostname N/A N/A self hostname N/A N/A N/A N/A N/A N/A self _logger debug N/A Set hostname: %s N/A hostname N/A N/A N/A self set_config_changed N/A xpath N/A pandevice XPATH_DEVICECONFIG_SYSTEM N/A N/A N/A N/A self xapi set xpath N/A <hostname>%s</hostname> N/A hostname N/A set_dns_servers N/A N/A self primary secondary N/A None N/A N/A N/A N/A N/A self _logger debug N/A Set dns-servers: primary:%s secondary:%s N/A primary secondary N/A xpath N/A N/A pandevice XPATH_DEVICECONFIG_SYSTEM /dns-setting/servers N/A element N/A N/A ET Element servers N/A primary N/A N/A element_primary N/A N/A ET SubElement element primary N/A N/A element_primary text primary N/A secondary N/A N/A element_secondary N/A N/A ET SubElement element secondary N/A N/A element_secondary text secondary N/A N/A N/A N/A self xapi edit xpath N/A N/A ET tostring element N/A set_ntp_servers N/A N/A self primary secondary N/A None N/A N/A N/A N/A N/A self _logger debug N/A Set ntp-servers: primary:%s secondary:%s N/A primary secondary N/A N/A N/A self set_config_changed N/A xpath N/A pandevice XPATH_DEVICECONFIG_SYSTEM N/A xpath61 N/A N/A pandevice XPATH_DEVICECONFIG_SYSTEM /ntp-servers N/A element61 N/A N/A primary None N/A N/A N/A N/A N/A self xapi delete xpath61 N/A N/A N/A N/A self xapi delete N/A xpath /ntp-server-1 N/A N/A N/A N/A self xapi delete N/A xpath /ntp-server-2 N/A N/A primary N/A N/A element61 N/A <ntp-servers><primary-ntp-server><ntp-server-address>%s</ntp-server-address></primary-ntp-server> N/A primary N/A secondary N/A N/A element61 N/A <secondary-ntp-server><ntp-server-address>%s</ntp-server-address></secondary-ntp-server> N/A secondary N/A element61 </ntp-servers> N/A N/A N/A N/A N/A N/A self xapi edit xpath61 element61 N/A N/A N/A N/A self _logger debug Set ntp server for PAN-OS 6.1 or higher N/A N/A N/A N/A N/A N/A pan xapi PanXapiError N/A err PanDeviceXapiError N/A e N/A N/A N/A N/A message N/A e msg N/A N/A N/A AttributeError N/A N/A message N/A e message N/A N/A N/A message startswith Could not get schema node for xpath N/A N/A N/A N/A self _set_ntp_servers_60 primary secondary secondary N/A N/A N/A N/A self _logger debug Set ntp server for PAN-OS 6.0 or lower N/A N/A N/A N/A N/A self _logger debug Could not set NTP server, unknown PAN-OS version N/A e N/A _set_ntp_servers_60 N/A N/A self primary secondary N/A None N/A N/A Set ntp servers on PAN-OS 6.0 and lower N/A xpath60 N/A pandevice XPATH_DEVICECONFIG_SYSTEM N/A xpath60_pri N/A xpath60 /ntp-server-1 N/A xpath60_sec N/A xpath60 /ntp-server-2 N/A element60_pri N/A element60_sec N/A primary N/A N/A element60_pri N/A <ntp-server-1>%s</ntp-server-1> N/A primary N/A secondary N/A N/A element60_sec N/A <ntp-server-2>%s</ntp-server-2> N/A secondary N/A N/A N/A N/A self xapi edit xpath60_pri element60_pri N/A N/A N/A N/A self xapi edit xpath60_sec element60_sec N/A show_interface N/A N/A self interface N/A N/A N/A N/A N/A self set_config_changed N/A interface_name N/A N/A self _interface_name interface N/A N/A N/A N/A self xapi op N/A <show><interface>%s</interface></show> N/A interface_name N/A pconf N/A PanConfig N/A N/A self xapi element_result N/A response N/A N/A pconf python N/A N/A response N/A result N/A pending_changes N/A N/A self N/A N/A N/A N/A N/A N/A self xapi op cmd check pending-changes cmd_xml True N/A pconf N/A PanConfig N/A N/A self xapi element_result N/A response N/A N/A pconf python N/A N/A response N/A result N/A add_commit_lock N/A N/A self comment exception N/A None False N/A N/A N/A N/A N/A self _logger debug Add commit lock requested N/A cmd N/A N/A ET Element request N/A subel N/A N/A ET SubElement cmd commit-lock N/A subel N/A N/A ET SubElement subel add N/A N/A comment None N/A N/A subel N/A N/A ET SubElement subel comment N/A N/A subel text comment N/A N/A N/A N/A N/A N/A self xapi op N/A N/A ET tostring cmd N/A N/A N/A N/A N/A N/A pan xapi PanXapiError N/A err PanDeviceXapiError N/A e N/A N/A N/A N/A N/A re match Commit lock is already held N/A str e N/A N/A N/A N/A exception N/A N/A N/A N/A err PanLockError N/A str e pan_device self N/A N/A N/A N/A N/A self _logger debug N/A str e N/A False N/A N/A self commit_locked True N/A True N/A remove_commit_lock N/A N/A self admin exception N/A None False N/A N/A N/A N/A N/A self _logger debug Remove commit lock requested N/A cmd N/A N/A ET Element request N/A subel N/A N/A ET SubElement cmd commit-lock N/A subel N/A N/A ET SubElement subel remove N/A N/A admin None N/A N/A subel N/A N/A ET SubElement subel admin N/A N/A subel text admin N/A N/A N/A N/A N/A N/A self xapi op N/A N/A ET tostring cmd N/A N/A N/A N/A N/A N/A pan xapi PanXapiError N/A err PanDeviceXapiError N/A e N/A N/A N/A N/A N/A re match Commit lock is not currently held N/A str e N/A N/A N/A N/A exception N/A N/A N/A N/A err PanLockError N/A str e pan_device self N/A N/A N/A N/A N/A self _logger debug N/A str e N/A False N/A N/A self commit_locked False N/A True N/A add_config_lock N/A N/A self comment exception N/A None False N/A N/A N/A N/A N/A self _logger debug Add config lock requested N/A cmd N/A N/A ET Element request N/A subel N/A N/A ET SubElement cmd config-lock N/A subel N/A N/A ET SubElement subel add N/A N/A comment None N/A N/A subel N/A N/A ET SubElement subel comment N/A N/A subel text comment N/A N/A N/A N/A N/A N/A self xapi op N/A N/A ET tostring cmd N/A N/A N/A N/A N/A N/A pan xapi PanXapiError N/A err PanDeviceXapiError N/A e N/A N/A N/A N/A N/A re match Config for scope shared is currently locked N/A str e N/A N/A N/A N/A exception N/A N/A N/A N/A err PanLockError N/A str e pan_device self N/A N/A N/A N/A N/A self _logger debug N/A str e N/A False N/A N/A self config_locked True N/A True N/A remove_config_lock N/A N/A self exception N/A False N/A N/A N/A N/A N/A self _logger debug Remove config lock requested N/A cmd N/A N/A ET Element request N/A subel N/A N/A ET SubElement cmd config-lock N/A subel N/A N/A ET SubElement subel remove N/A N/A N/A N/A N/A N/A self xapi op N/A N/A ET tostring cmd N/A N/A N/A N/A N/A N/A pan xapi PanXapiError N/A err PanDeviceXapiError N/A e N/A N/A N/A N/A N/A re match Config is not currently locked for scope shared N/A str e N/A N/A N/A N/A exception N/A N/A N/A N/A err PanLockError N/A str e pan_device self N/A N/A N/A N/A N/A self _logger debug N/A str e N/A False N/A N/A self config_locked False N/A True N/A check_commit_locks N/A N/A self N/A N/A N/A N/A N/A N/A self xapi op show commit-locks cmd_xml True N/A response N/A N/A N/A N/A self xapi element_result find .//entry N/A N/A N/A response None True False N/A revert_to_running_configuration N/A N/A self N/A N/A N/A N/A N/A N/A self _logger debug N/A Revert to running configuration on device: %s N/A N/A self hostname N/A N/A N/A N/A self xapi op <load><config><from>running-config.xml</from></config></load> N/A restart N/A N/A self N/A N/A N/A N/A N/A N/A self _logger debug N/A Requesting restart on device: %s N/A N/A self hostname N/A N/A N/A N/A N/A N/A self xapi op request restart system cmd_xml True N/A N/A N/A N/A N/A pan xapi PanXapiError N/A e N/A N/A N/A N/A N/A N/A e msg startswith Command succeeded with no output N/A N/A e N/A refresh_devices_from_panorama N/A N/A self devices N/A N/A N/A N/A N/A N/A test_iterable N/A iter devices N/A N/A N/A TypeError N/A N/A devices N/A devices N/A stats_by_ip N/A N/A stats_by_host N/A N/A devicegroup_stats_by_serial N/A N/A template_stats_by_serial N/A N/A N/A N/A N/A self xapi op show devices all cmd_xml True N/A pconf N/A PanConfig N/A N/A self xapi element_root N/A response N/A N/A pconf python N/A N/A N/A device N/A N/A N/A N/A response N/A response N/A result N/A devices N/A entry N/A N/A N/A stats_by_ip N/A N/A device N/A ip-address device N/A N/A stats_by_host N/A N/A device N/A ip-address device N/A N/A stats_by_host N/A N/A device N/A hostname device N/A device devices N/A N/A N/A N/A N/A device serial N/A N/A stats_by_host N/A N/A device hostname N/A serial N/A N/A device connected_to_panorama N/A N/A stats_by_host N/A N/A device hostname N/A connected N/A N/A N/A KeyError N/A e N/A N/A N/A N/A err PanDeviceError Can't determine serial for device pan_device device N/A N/A N/A KeyError N/A N/A N/A N/A N/A N/A N/A self xapi op show devicegroups cmd_xml True N/A dg_element N/A N/A self xapi element_result N/A dg N/A N/A dg_element findall ./devicegroups/entry N/A N/A device N/A N/A dg findall ./devices/entry N/A N/A pconf N/A PanConfig config device N/A stats N/A N/A pconf python N/A stats N/A stats N/A entry N/A serial N/A stats N/A serial N/A ip N/A stats N/A ip-address N/A dg_name N/A N/A dg get name N/A N/A stats N/A devicegroup dg_name N/A N/A devicegroup_stats_by_serial N/A serial stats N/A N/A N/A stats_by_ip N/A ip N/A devicegroup dg_name N/A device devices N/A N/A N/A N/A device serial None N/A N/A stats N/A N/A devicegroup_stats_by_serial get N/A device serial N/A N/A stats None N/A N/A N/A device devicegroup N/A stats N/A devicegroup N/A sync_status N/A stats N/A shared-policy-status N/A N/A device dg_in_sync N/A N/A sync_status In Sync True False N/A stats_by_ip N/A commit N/A N/A self sync exception cmd N/A False False None N/A N/A N/A N/A N/A self _logger debug N/A Commit initiated on device: %s N/A N/A self hostname N/A N/A N/A self _commit sync sync exception exception cmd cmd N/A _commit N/A N/A self cmd exclude commit_all sync sync_all exception N/A None None False False True False N/A N/A Internal use commit helper method.

        :param exclude:
            Can be:
                device-and-network
                policy-and-objects
        :param sync:
            Synchronous commit, ie. wait for job to finish
        :return:
            Result of commit as dict if synchronous.  JobID if asynchronous.
            In either case, if no commit is needed, return None.
            Most important fields in dict:
                success:  True or False
                result:  OK or FAIL
                messages: list of warnings or errors

         N/A N/A issubclass N/A cmd __class__ N/A N/A pan commit PanCommit N/A N/A cmd N/A N/A cmd cmd N/A N/A N/A issubclass N/A cmd __class__ N/A ET Element N/A N/A cmd N/A N/A ET tostring cmd N/A N/A N/A issubclass N/A cmd __class__ basestring N/A N/A N/A N/A cmd N/A N/A ET Element commit N/A N/A exclude None N/A N/A excluded N/A N/A ET SubElement cmd partial N/A excluded N/A N/A ET SubElement excluded exclude N/A cmd N/A N/A ET tostring cmd N/A commit_all N/A N/A action all N/A N/A action None N/A sync N/A N/A N/A N/A N/A self _logger debug Waiting for commit job to finish... N/A N/A N/A N/A self xapi commit cmd cmd action action sync sync sync_all sync_all interval N/A self interval timeout N/A self timeout N/A N/A self config_changed False N/A N/A self config_locked False N/A N/A self commit_locked False N/A sync N/A N/A pconf N/A PanConfig N/A N/A self xapi element_result N/A response N/A N/A pconf python N/A job N/A response N/A result N/A N/A job None N/A N/A exception N/A N/A N/A N/A err PanCommitNotNeeded Commit not needed pan_device self N/A N/A N/A job N/A job N/A job N/A devices_results N/A N/A devices_success True N/A N/A commit_all sync_all N/A N/A devices N/A job N/A devices N/A N/A devices None N/A N/A devices N/A devices N/A entry N/A device devices N/A N/A success N/A N/A N/A device N/A result OK True False N/A N/A success N/A N/A devices_success False N/A N/A devices_results N/A N/A device N/A serial-no N/A success serial name result starttime endtime success N/A device N/A serial-no N/A device N/A devicename N/A device N/A result N/A device N/A tstart N/A device N/A tfin N/A N/A N/A N/A N/A devices_results N/A N/A device N/A serial-no N/A warnings N/A N/A N/A device N/A details N/A msg N/A warnings N/A N/A N/A TypeError N/A e N/A N/A N/A N/A devices_results N/A N/A device N/A serial-no N/A warnings N/A N/A N/A N/A N/A devices_results N/A N/A device N/A serial-no N/A messages N/A N/A N/A N/A device N/A details N/A msg N/A errors N/A line N/A N/A N/A TypeError N/A e N/A N/A N/A N/A devices_results N/A N/A device N/A serial-no N/A messages N/A device N/A details N/A success N/A N/A N/A N/A job N/A result OK devices_success True False N/A commit_all N/A N/A messages N/A N/A N/A messages N/A N/A job N/A details N/A line N/A N/A issubclass N/A messages __class__ basestring N/A N/A messages N/A messages N/A result N/A success result jobid user warnings starttime endtime messages devices success N/A job N/A result N/A job N/A id N/A job N/A user N/A job N/A warnings N/A job N/A tenq N/A job N/A tfin messages devices_results N/A N/A exception N/A success N/A N/A N/A N/A N/A self _logger debug N/A Commit failed - device: %s, job: %s, messages: %s, warnings: %s N/A N/A self hostname N/A result N/A jobid N/A result N/A messages N/A result N/A warnings N/A N/A N/A err PanCommitFailed pan_device self result result N/A N/A success N/A N/A N/A N/A N/A self _logger debug N/A Commit succeeded - device: %s, job: %s, messages: %s, warnings: %s N/A N/A self hostname N/A result N/A jobid N/A result N/A messages N/A result N/A warnings N/A N/A N/A N/A N/A self _logger debug N/A Commit failed - device: %s, job: %s, messages: %s, warnings: %s N/A N/A self hostname N/A result N/A jobid N/A result N/A messages N/A result N/A warnings N/A result N/A N/A jobid N/A N/A N/A N/A self xapi element_root find ./result/job N/A N/A jobid None N/A N/A exception N/A N/A N/A N/A err PanCommitNotNeeded Commit not needed pan_device self N/A N/A N/A N/A N/A N/A self _logger debug N/A Commit initiated (async), job id: %s N/A jobid N/A jobid N/A syncjob N/A N/A self response interval N/A 0.5 N/A N/A Block until job completes and return result

        response: XML response tag from firewall when job is created

        :returns True if job completed successfully, False if not
         N/A N/A interval None N/A N/A N/A N/A interval N/A float interval N/A N/A interval 0 N/A N/A ValueError N/A N/A N/A ValueError N/A N/A N/A N/A err PanDeviceError N/A Invalid interval: %s interval N/A job N/A N/A response find ./result/job N/A N/A job None N/A N/A False N/A job N/A job text N/A N/A N/A N/A self _logger debug Syncing job: %s job N/A cmd N/A show jobs id "%s" job N/A start_time N/A N/A time time N/A True N/A N/A N/A N/A N/A N/A N/A self xapi op cmd cmd cmd_xml True N/A N/A N/A N/A N/A pan xapi PanXapiError N/A msg N/A N/A N/A N/A N/A pan xapi PanXapiError N/A commit %s: %s N/A cmd msg N/A path ./result/job/status N/A status N/A N/A N/A N/A self xapi element_root find path N/A N/A status None N/A N/A N/A N/A N/A pan xapi PanXapiError N/A No status element in  N/A '%s' response cmd N/A N/A N/A status text FIN N/A N/A pconf N/A PanConfig N/A N/A self xapi element_result N/A response N/A N/A pconf python N/A job N/A response N/A result N/A N/A job None N/A N/A N/A job N/A job N/A job N/A success N/A N/A N/A job N/A result OK True False N/A messages N/A N/A job N/A details N/A line N/A N/A issubclass N/A messages __class__ basestring N/A N/A messages N/A messages N/A result N/A success result jobid user warnings starttime endtime messages success N/A job N/A result N/A job N/A id N/A job N/A user N/A job N/A warnings N/A job N/A tenq N/A job N/A tfin messages N/A result N/A N/A N/A N/A self _logger debug Job %s status %s job N/A status text N/A N/A N/A N/A self timeout None N/A N/A self timeout 0 N/A N/A N/A time time N/A start_time N/A self timeout N/A N/A N/A N/A N/A pan xapi PanXapiError N/A Timeout waiting for  N/A job %s completion job N/A N/A N/A N/A self _logger debug Sleep %.2f seconds interval N/A N/A N/A time sleep interval N/A syncreboot N/A N/A self interval timeout N/A 5.0 600 N/A N/A Block until reboot completes and return version of device N/A httplib N/A N/A interval None N/A N/A N/A N/A interval N/A float interval N/A N/A interval 0 N/A N/A ValueError N/A N/A N/A ValueError N/A N/A N/A N/A err PanDeviceError N/A Invalid interval: %s interval N/A N/A N/A N/A self _logger debug Syncing reboot... N/A start_time N/A N/A time time N/A attempts 0 N/A is_rebooting False N/A N/A N/A time sleep interval N/A True N/A N/A N/A N/A attempts 1 N/A version N/A N/A self refresh_version N/A N/A N/A N/A N/A N/A pan xapi PanXapiError N/A err PanDeviceXapiError N/A e N/A N/A N/A N/A N/A N/A N/A e msg startswith URLError: N/A N/A N/A N/A e msg startswith Invalid credentials. N/A N/A e N/A N/A is_rebooting True N/A N/A N/A N/A self _logger debug N/A Connection attempted: %s N/A str e N/A N/A N/A N/A self _logger debug N/A Device is not available yet. Connection attempts: %s N/A str attempts N/A N/A N/A httplib BadStatusLine N/A e N/A N/A is_rebooting True N/A N/A N/A N/A self _logger debug N/A Connection attempted: %s N/A str e N/A N/A N/A N/A self _logger debug N/A Device is not available yet. Connection attempts: %s N/A str attempts N/A N/A is_rebooting N/A N/A N/A N/A N/A self _logger debug N/A Device is up! Running version %s version N/A version N/A N/A N/A N/A N/A self _logger debug Device is up, but it probably hasn't started rebooting yet. N/A N/A N/A N/A self timeout None N/A N/A self timeout 0 N/A N/A N/A time time N/A start_time N/A self timeout N/A N/A N/A N/A err PanDeviceError Timeout waiting for device to reboot N/A N/A N/A N/A self _logger debug Sleep %.2f seconds interval N/A N/A N/A time sleep interval N/A N/A