Module Import alias Import alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore Str Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str ListLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad NameLoad body If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str CompareGt Call NameLoad Call NameLoad NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Slice Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult Str Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body With Call AttributeLoad AttributeLoad NameLoad attr attr body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str Expr Call AttributeLoad NameLoad attr Num TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpMult Str Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore Dict Str Str SubscriptLoad NameLoad Slice Num Str Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad BinOpMult Str Num Slice Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore Dict Str NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore BinOpMult Str Num Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore BinOpMod Str NameLoad Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod NameLoad NameLoad Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpAdd Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str BinOpMod Str NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore BinOpMod Str NameLoad Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str keyword BinOpAdd BinOpAdd BinOpAdd NameLoad NameLoad NameLoad NameLoad keyword NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str attr Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Dict Str Str Str Str NameLoad NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body FunctionDef arguments args defaults vararg kwarg body If CompareIn Str SubscriptLoad NameLoad Index Num body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Raise Call NameLoad Return NameLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body FunctionDef arguments args defaults vararg kwarg body If CompareIn Str SubscriptLoad NameLoad Index Num body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore Str Raise Call NameLoad NameLoad Return NameLoad decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num BinOpSub Num NameLoad Assign NameStore BinOpAdd Num NameLoad Assign NameStore ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad NameLoad BinOpAdd NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str keyword NameLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str keyword NameLoad Str Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str keyword NameLoad Str AugAssignMult NameStore Num AugAssignMult NameStore Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str attr Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str keyword NameLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str keyword NameLoad Str TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str keyword NameLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str keyword NameLoad Str Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str keyword NameLoad Str AugAssignMult NameStore Num AugAssignMult NameStore Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A os N/A sys N/A mock oslo_config cfg N/A testtools neutron._i18n _ neutron.agent.linux iptables_comments ic neutron.agent.linux iptables_manager neutron.common constants neutron.common exceptions n_exc neutron.tests base neutron.tests tools N/A IPTABLES_ARG N/A bn snat_out_comment filter_rules mark N/A iptables_manager binary_name N/A ic SNAT_OUT N/A constants ROUTER_MARK_MASK N/A NAT_TEMPLATE # Generated by iptables_manager
*nat
:OUTPUT - [0:0]
:POSTROUTING - [0:0]
:PREROUTING - [0:0]
:neutron-postrouting-bottom - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-POSTROUTING - [0:0]
:%(bn)s-PREROUTING - [0:0]
:%(bn)s-float-snat - [0:0]
:%(bn)s-snat - [0:0]
-I OUTPUT 1 -j %(bn)s-OUTPUT
-I POSTROUTING 1 -j %(bn)s-POSTROUTING
-I POSTROUTING 2 -j neutron-postrouting-bottom
-I PREROUTING 1 -j %(bn)s-PREROUTING
-I neutron-postrouting-bottom 1 -j %(bn)s-snat
-I %(bn)s-snat 1 -j %(bn)s-float-snat
COMMIT
# Completed by iptables_manager
 N/A NAT_DUMP N/A NAT_TEMPLATE IPTABLES_ARG N/A FILTER_TEMPLATE # Generated by iptables_manager
*filter
:FORWARD - [0:0]
:INPUT - [0:0]
:OUTPUT - [0:0]
:neutron-filter-top - [0:0]
:%(bn)s-FORWARD - [0:0]
:%(bn)s-INPUT - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-local - [0:0]
:%(bn)s-scope - [0:0]
-I FORWARD 1 -j neutron-filter-top
-I FORWARD 2 -j %(bn)s-FORWARD
-I INPUT 1 -j %(bn)s-INPUT
-I OUTPUT 1 -j neutron-filter-top
-I OUTPUT 2 -j %(bn)s-OUTPUT
-I neutron-filter-top 1 -j %(bn)s-local
-I %(bn)s-FORWARD 1 -j %(bn)s-scope
COMMIT
# Completed by iptables_manager
 N/A FILTER_DUMP N/A FILTER_TEMPLATE IPTABLES_ARG N/A FILTER_WITH_RULES_TEMPLATE # Generated by iptables_manager
*filter
:FORWARD - [0:0]
:INPUT - [0:0]
:OUTPUT - [0:0]
:neutron-filter-top - [0:0]
:%(bn)s-FORWARD - [0:0]
:%(bn)s-INPUT - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-filter - [0:0]
:%(bn)s-local - [0:0]
:%(bn)s-scope - [0:0]
-I FORWARD 1 -j neutron-filter-top
-I FORWARD 2 -j %(bn)s-FORWARD
-I INPUT 1 -j %(bn)s-INPUT
-I OUTPUT 1 -j neutron-filter-top
-I OUTPUT 2 -j %(bn)s-OUTPUT
-I neutron-filter-top 1 -j %(bn)s-local
-I %(bn)s-FORWARD 1 -j %(bn)s-scope
%(filter_rules)sCOMMIT
# Completed by iptables_manager
 N/A COMMENTED_NAT_DUMP N/A # Generated by iptables_manager
*nat
:OUTPUT - [0:0]
:POSTROUTING - [0:0]
:PREROUTING - [0:0]
:neutron-postrouting-bottom - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-POSTROUTING - [0:0]
:%(bn)s-PREROUTING - [0:0]
:%(bn)s-float-snat - [0:0]
:%(bn)s-snat - [0:0]
-I OUTPUT 1 -j %(bn)s-OUTPUT
-I POSTROUTING 1 -j %(bn)s-POSTROUTING
-I POSTROUTING 2 -j neutron-postrouting-bottom
-I PREROUTING 1 -j %(bn)s-PREROUTING
-I neutron-postrouting-bottom 1 -m comment --comment "%(snat_out_comment)s" -j %(bn)s-snat
-I %(bn)s-snat 1 -j %(bn)s-float-snat
COMMIT
# Completed by iptables_manager
 IPTABLES_ARG N/A TRAFFIC_COUNTERS_DUMP Chain OUTPUT (policy ACCEPT 400 packets, 65901 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
     400   65901 chain1     all  --  *      *       0.0.0.0/0            0.0.0.0/0           
     400   65901 chain2     all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 IptablesTestCase N/A N/A base BaseTestCase N/A test_get_binary_name_in_unittest N/A N/A self N/A N/A N/A N/A N/A mock patch sys.argv N/A python -m unittest class N/A N/A binary_name N/A N/A iptables_manager get_binary_name N/A N/A N/A self assertEqual python_-m_unitte binary_name N/A N/A IptablesCommentsTestCase N/A N/A base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super IptablesCommentsTestCase self setUp N/A N/A N/A N/A cfg CONF set_override comment_iptables_rules True AGENT N/A N/A self iptables N/A N/A iptables_manager IptablesManager N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A test_comments_short_enough N/A N/A self N/A N/A N/A attr N/A dir ic N/A N/A N/A N/A N/A N/A attr startswith __ N/A N/A len N/A getattr ic attr 255 N/A N/A N/A N/A self fail N/A Iptables comment %s is longer than 255 characters. attr N/A test_reordering_of_jump_rule_comments N/A N/A self N/A N/A N/A N/A N/A self assertEqual -m comment --comment "aloha" -j sg-chain N/A N/A iptables_manager comment_rule -j sg-chain aloha N/A N/A N/A self assertEqual -s source -m comment --comment "aloha" -j sg-chain N/A N/A iptables_manager comment_rule -s source -j sg-chain aloha N/A N/A N/A self assertEqual -s source -m comment --comment "aloha" N/A N/A iptables_manager comment_rule -s source aloha N/A test_add_filter_rule N/A N/A self N/A N/A N/A iptables_args N/A N/A N/A N/A iptables_args update IPTABLES_ARG N/A filter_rules N/A -I %(bn)s-INPUT 1 -s 0/0 -d 192.168.0.2 -j %(bn)s-filter
-I %(bn)s-filter 1 -j DROP
 iptables_args N/A N/A iptables_args N/A filter_rules filter_rules N/A filter_dump_mod N/A FILTER_WITH_RULES_TEMPLATE iptables_args N/A raw_dump N/A _generate_raw_dump IPTABLES_ARG N/A mangle_dump N/A _generate_mangle_dump IPTABLES_ARG N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A filter_dump_mod mangle_dump COMMENTED_NAT_DUMP raw_dump run_as_root True None N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP mangle_dump COMMENTED_NAT_DUMP raw_dump run_as_root True None N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_chain filter N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_rule filter -j DROP N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_rule INPUT N/A -s 0/0 -d 192.168.0.2 -j %(bn)s-filter IPTABLES_ARG N/A N/A N/A N/A self iptables apply N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_rule filter -j DROP N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_rule INPUT N/A -s 0/0 -d 192.168.0.2 -j %(bn)s-filter IPTABLES_ARG N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_chain filter N/A N/A N/A N/A self iptables apply N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values N/A N/A _generate_mangle_dump N/A N/A iptables_args N/A N/A N/A N/A # Generated by iptables_manager
*mangle
:FORWARD - [0:0]
:INPUT - [0:0]
:OUTPUT - [0:0]
:POSTROUTING - [0:0]
:PREROUTING - [0:0]
:%(bn)s-FORWARD - [0:0]
:%(bn)s-INPUT - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-POSTROUTING - [0:0]
:%(bn)s-PREROUTING - [0:0]
:%(bn)s-float-snat - [0:0]
:%(bn)s-floatingip - [0:0]
:%(bn)s-mark - [0:0]
:%(bn)s-scope - [0:0]
-I FORWARD 1 -j %(bn)s-FORWARD
-I INPUT 1 -j %(bn)s-INPUT
-I OUTPUT 1 -j %(bn)s-OUTPUT
-I POSTROUTING 1 -j %(bn)s-POSTROUTING
-I PREROUTING 1 -j %(bn)s-PREROUTING
-I %(bn)s-PREROUTING 1 -j %(bn)s-mark
-I %(bn)s-PREROUTING 2 -j %(bn)s-scope
-I %(bn)s-PREROUTING 3 -m connmark ! --mark 0x0/0xffff0000 -j CONNMARK --restore-mark --nfmask 0xffff0000 --ctmask 0xffff0000
-I %(bn)s-PREROUTING 4 -j %(bn)s-floatingip
-I %(bn)s-float-snat 1 -m connmark --mark 0x0/0xffff0000 -j CONNMARK --save-mark --nfmask 0xffff0000 --ctmask 0xffff0000
COMMIT
# Completed by iptables_manager
 iptables_args N/A _generate_mangle_dump_v6 N/A N/A iptables_args N/A N/A N/A N/A # Generated by iptables_manager
*mangle
:FORWARD - [0:0]
:INPUT - [0:0]
:OUTPUT - [0:0]
:POSTROUTING - [0:0]
:PREROUTING - [0:0]
:%(bn)s-FORWARD - [0:0]
:%(bn)s-INPUT - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-POSTROUTING - [0:0]
:%(bn)s-PREROUTING - [0:0]
:%(bn)s-scope - [0:0]
-I FORWARD 1 -j %(bn)s-FORWARD
-I INPUT 1 -j %(bn)s-INPUT
-I OUTPUT 1 -j %(bn)s-OUTPUT
-I POSTROUTING 1 -j %(bn)s-POSTROUTING
-I PREROUTING 1 -j %(bn)s-PREROUTING
-I %(bn)s-PREROUTING 1 -j %(bn)s-scope
-I %(bn)s-PREROUTING 2 -m connmark ! --mark 0x0/0xffff0000 -j CONNMARK --restore-mark --nfmask 0xffff0000 --ctmask 0xffff0000
COMMIT
# Completed by iptables_manager
 iptables_args N/A _generate_raw_dump N/A N/A iptables_args N/A N/A N/A N/A # Generated by iptables_manager
*raw
:OUTPUT - [0:0]
:PREROUTING - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-PREROUTING - [0:0]
-I OUTPUT 1 -j %(bn)s-OUTPUT
-I PREROUTING 1 -j %(bn)s-PREROUTING
COMMIT
# Completed by iptables_manager
 iptables_args N/A N/A MANGLE_DUMP N/A _generate_mangle_dump IPTABLES_ARG N/A MANGLE_DUMP_V6 N/A _generate_mangle_dump_v6 IPTABLES_ARG N/A RAW_DUMP N/A _generate_raw_dump IPTABLES_ARG IptablesManagerStateFulTestCase N/A N/A base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super IptablesManagerStateFulTestCase self setUp N/A N/A N/A N/A cfg CONF set_override comment_iptables_rules False AGENT N/A N/A self iptables N/A N/A iptables_manager IptablesManager N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A test_binary_name N/A N/A self N/A N/A N/A expected N/A N/A N/A N/A os path basename N/A N/A sys argv N/A 0 N/A 16 N/A N/A N/A self assertEqual expected N/A iptables_manager binary_name N/A test_get_chain_name N/A N/A self N/A N/A N/A name N/A 0123456789 5 N/A N/A N/A self assertEqual N/A N/A iptables_manager get_chain_name name wrap False N/A name N/A 28 N/A N/A N/A self assertEqual N/A N/A iptables_manager get_chain_name name wrap True N/A name N/A 11 N/A test_defer_apply_with_exception N/A N/A self N/A N/A N/A N/A N/A self iptables _apply N/A N/A mock Mock side_effect Exception N/A N/A N/A testtools ExpectedException N/A n_exc IpTablesApplyException N/A N/A N/A N/A N/A self iptables defer_apply N/A N/A N/A _extend_with_ip6tables_filter N/A N/A self expected_calls filter_dump N/A N/A N/A N/A N/A expected_calls insert 2 N/A N/A N/A mock call N/A ip6tables-save run_as_root True N/A N/A N/A expected_calls insert 3 N/A N/A N/A mock call N/A ip6tables-restore -n process_input filter_dump run_as_root True None N/A N/A N/A expected_calls extend N/A N/A N/A N/A mock call N/A ip6tables-save run_as_root True N/A N/A N/A mock call N/A ip6tables-restore -n process_input filter_dump run_as_root True None N/A _test_add_and_remove_chain_custom_binary_name_helper N/A N/A self use_ipv6 N/A N/A N/A bn N/A xbcdef 5 N/A N/A self iptables N/A N/A iptables_manager IptablesManager binary_name bn use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A iptables_args N/A bn filter_rules N/A bn N/A 16 N/A filter_dump N/A FILTER_WITH_RULES_TEMPLATE iptables_args N/A filter_dump_ipv6 N/A FILTER_TEMPLATE iptables_args N/A filter_dump_mod filter_dump N/A nat_dump N/A NAT_TEMPLATE iptables_args N/A raw_dump N/A _generate_raw_dump iptables_args N/A mangle_dump N/A _generate_mangle_dump iptables_args N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A filter_dump_mod mangle_dump nat_dump raw_dump run_as_root True None N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A filter_dump mangle_dump nat_dump raw_dump run_as_root True None N/A use_ipv6 N/A N/A mangle_dump_v6 N/A _generate_mangle_dump_v6 iptables_args N/A N/A N/A self _extend_with_ip6tables_filter expected_calls_and_values N/A N/A filter_dump_ipv6 mangle_dump_v6 raw_dump N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_chain filter N/A N/A N/A N/A self iptables apply N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter empty_chain filter N/A N/A N/A N/A self iptables apply N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values N/A test_add_and_remove_chain_custom_binary_name N/A N/A self N/A N/A N/A N/A N/A self _test_add_and_remove_chain_custom_binary_name_helper False N/A test_add_and_remove_chain_custom_binary_name_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_add_and_remove_chain_custom_binary_name_helper True N/A _test_empty_chain_custom_binary_name_helper N/A N/A self use_ipv6 N/A N/A N/A bn N/A N/A xbcdef 5 N/A 16 N/A N/A self iptables N/A N/A iptables_manager IptablesManager binary_name bn use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A iptables_args N/A bn bn N/A filter_dump N/A FILTER_TEMPLATE iptables_args N/A filter_rules N/A -I %(bn)s-filter 1 -s 0/0 -d 192.168.0.2
 iptables_args N/A N/A iptables_args N/A filter_rules filter_rules N/A filter_dump_mod N/A FILTER_WITH_RULES_TEMPLATE iptables_args N/A nat_dump N/A NAT_TEMPLATE iptables_args N/A raw_dump N/A _generate_raw_dump iptables_args N/A mangle_dump N/A _generate_mangle_dump iptables_args N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A filter_dump_mod mangle_dump nat_dump raw_dump run_as_root True None N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A filter_dump mangle_dump nat_dump raw_dump run_as_root True None N/A use_ipv6 N/A N/A mangle_dump_v6 N/A _generate_mangle_dump_v6 iptables_args N/A N/A N/A self _extend_with_ip6tables_filter expected_calls_and_values N/A N/A filter_dump mangle_dump_v6 raw_dump N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_chain filter N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_rule filter -s 0/0 -d 192.168.0.2 N/A N/A N/A N/A self iptables apply N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_chain filter N/A N/A N/A N/A self iptables apply N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values N/A test_empty_chain_custom_binary_name N/A N/A self N/A N/A N/A N/A N/A self _test_empty_chain_custom_binary_name_helper False N/A test_empty_chain_custom_binary_name_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_empty_chain_custom_binary_name_helper True N/A _test_add_and_remove_chain_helper N/A N/A self use_ipv6 N/A N/A N/A N/A self iptables N/A N/A iptables_manager IptablesManager use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A filter_dump_mod N/A FILTER_WITH_RULES_TEMPLATE IPTABLES_ARG N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A filter_dump_mod MANGLE_DUMP NAT_DUMP RAW_DUMP run_as_root True None N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP MANGLE_DUMP NAT_DUMP RAW_DUMP run_as_root True None N/A use_ipv6 N/A N/A N/A N/A self _extend_with_ip6tables_filter expected_calls_and_values N/A N/A FILTER_DUMP MANGLE_DUMP_V6 RAW_DUMP N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_chain filter N/A N/A N/A N/A self iptables apply N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_chain filter N/A N/A N/A N/A self iptables apply N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values N/A test_add_and_remove_chain N/A N/A self N/A N/A N/A N/A N/A self _test_add_and_remove_chain_helper False N/A test_add_and_remove_chain_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_add_and_remove_chain_helper True N/A _test_add_filter_rule_helper N/A N/A self use_ipv6 N/A N/A N/A N/A self iptables N/A N/A iptables_manager IptablesManager use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A iptables_args N/A N/A N/A N/A iptables_args update IPTABLES_ARG N/A filter_rules N/A -I %(bn)s-INPUT 1 -s 0/0 -d 192.168.0.2 -j %(bn)s-filter
-I %(bn)s-filter 1 -j DROP
 iptables_args N/A N/A iptables_args N/A filter_rules filter_rules N/A filter_dump_mod N/A FILTER_WITH_RULES_TEMPLATE iptables_args N/A raw_dump N/A RAW_DUMP IPTABLES_ARG N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A filter_dump_mod MANGLE_DUMP NAT_DUMP RAW_DUMP run_as_root True None N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP MANGLE_DUMP NAT_DUMP RAW_DUMP run_as_root True None N/A use_ipv6 N/A N/A N/A N/A self _extend_with_ip6tables_filter expected_calls_and_values N/A N/A FILTER_DUMP MANGLE_DUMP_V6 raw_dump N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_chain filter N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_rule filter -j DROP N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_rule INPUT N/A -s 0/0 -d 192.168.0.2 -j %(bn)s-filter IPTABLES_ARG N/A N/A N/A N/A self iptables apply N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_rule filter -j DROP N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_rule INPUT N/A -s 0/0 -d 192.168.0.2 -j %(bn)s-filter IPTABLES_ARG N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_chain filter N/A N/A N/A N/A self iptables apply N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values N/A test_add_filter_rule N/A N/A self N/A N/A N/A N/A N/A self _test_add_filter_rule_helper False N/A test_add_filter_rule_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_add_filter_rule_helper True N/A _test_rule_with_wrap_target_helper N/A N/A self use_ipv6 N/A N/A N/A N/A self iptables N/A N/A iptables_manager IptablesManager use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A name N/A 0123456789 5 N/A wrap N/A %s-%s N/A N/A iptables_manager binary_name N/A N/A iptables_manager get_chain_name name N/A iptables_args N/A bn wrap N/A iptables_manager binary_name wrap N/A filter_dump_mod N/A # Generated by iptables_manager
*filter
:FORWARD - [0:0]
:INPUT - [0:0]
:OUTPUT - [0:0]
:neutron-filter-top - [0:0]
:%(wrap)s - [0:0]
:%(bn)s-FORWARD - [0:0]
:%(bn)s-INPUT - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-local - [0:0]
:%(bn)s-scope - [0:0]
-I FORWARD 1 -j neutron-filter-top
-I FORWARD 2 -j %(bn)s-FORWARD
-I INPUT 1 -j %(bn)s-INPUT
-I OUTPUT 1 -j neutron-filter-top
-I OUTPUT 2 -j %(bn)s-OUTPUT
-I neutron-filter-top 1 -j %(bn)s-local
-I %(bn)s-FORWARD 1 -j %(bn)s-scope
-I %(bn)s-INPUT 1 -s 0/0 -d 192.168.0.2 -j %(wrap)s
COMMIT
# Completed by iptables_manager
 iptables_args N/A raw_dump N/A RAW_DUMP IPTABLES_ARG N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A filter_dump_mod MANGLE_DUMP NAT_DUMP RAW_DUMP run_as_root True None N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP MANGLE_DUMP NAT_DUMP RAW_DUMP run_as_root True None N/A use_ipv6 N/A N/A N/A N/A self _extend_with_ip6tables_filter expected_calls_and_values N/A N/A FILTER_DUMP MANGLE_DUMP_V6 raw_dump N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_chain name N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter add_rule INPUT N/A -s 0/0 -d 192.168.0.2 -j $%s name N/A N/A N/A N/A self iptables apply N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_rule INPUT N/A -s 0/0 -d 192.168.0.2 -j $%s name N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_chain name N/A N/A N/A N/A self iptables apply N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values N/A test_rule_with_wrap_target N/A N/A self N/A N/A N/A N/A N/A self _test_rule_with_wrap_target_helper False N/A test_rule_with_wrap_target_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_rule_with_wrap_target_helper True N/A _test_add_mangle_rule_helper N/A N/A self use_ipv6 N/A N/A N/A N/A self iptables N/A N/A iptables_manager IptablesManager use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A mangle_dump_mod N/A # Generated by iptables_manager
*mangle
:FORWARD - [0:0]
:INPUT - [0:0]
:OUTPUT - [0:0]
:POSTROUTING - [0:0]
:PREROUTING - [0:0]
:%(bn)s-FORWARD - [0:0]
:%(bn)s-INPUT - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-POSTROUTING - [0:0]
:%(bn)s-PREROUTING - [0:0]
:%(bn)s-float-snat - [0:0]
:%(bn)s-floatingip - [0:0]
:%(bn)s-mangle - [0:0]
:%(bn)s-mark - [0:0]
:%(bn)s-scope - [0:0]
-I FORWARD 1 -j %(bn)s-FORWARD
-I INPUT 1 -j %(bn)s-INPUT
-I OUTPUT 1 -j %(bn)s-OUTPUT
-I POSTROUTING 1 -j %(bn)s-POSTROUTING
-I PREROUTING 1 -j %(bn)s-PREROUTING
-I %(bn)s-PREROUTING 1 -j %(bn)s-mark
-I %(bn)s-PREROUTING 2 -j %(bn)s-scope
-I %(bn)s-PREROUTING 3 -m connmark ! --mark 0x0/0xffff0000 -j CONNMARK --restore-mark --nfmask 0xffff0000 --ctmask 0xffff0000
-I %(bn)s-PREROUTING 4 -j %(bn)s-floatingip
-I %(bn)s-PREROUTING 5 -j MARK --set-xmark 0x1/%(mark)s
-I %(bn)s-float-snat 1 -m connmark --mark 0x0/0xffff0000 -j CONNMARK --save-mark --nfmask 0xffff0000 --ctmask 0xffff0000
COMMIT
# Completed by iptables_manager
 IPTABLES_ARG N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP mangle_dump_mod NAT_DUMP RAW_DUMP run_as_root True None N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP MANGLE_DUMP NAT_DUMP RAW_DUMP run_as_root True None N/A use_ipv6 N/A N/A N/A N/A self _extend_with_ip6tables_filter expected_calls_and_values N/A N/A FILTER_DUMP MANGLE_DUMP_V6 RAW_DUMP N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A mangle add_chain mangle N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A mangle add_rule PREROUTING N/A -j MARK --set-xmark 0x1/%s N/A constants ROUTER_MARK_MASK N/A N/A N/A N/A self iptables apply N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A mangle remove_rule PREROUTING N/A -j MARK --set-xmark 0x1/%s N/A constants ROUTER_MARK_MASK N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A mangle remove_chain mangle N/A N/A N/A N/A self iptables apply N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values N/A test_add_mangle_rule N/A N/A self N/A N/A N/A N/A N/A self _test_add_mangle_rule_helper False N/A test_add_mangle_rule_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_add_mangle_rule_helper True N/A _test_add_nat_rule_helper N/A N/A self use_ipv6 N/A N/A N/A N/A self iptables N/A N/A iptables_manager IptablesManager use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A nat_dump N/A NAT_TEMPLATE IPTABLES_ARG N/A nat_dump_mod N/A # Generated by iptables_manager
*nat
:OUTPUT - [0:0]
:POSTROUTING - [0:0]
:PREROUTING - [0:0]
:neutron-postrouting-bottom - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-POSTROUTING - [0:0]
:%(bn)s-PREROUTING - [0:0]
:%(bn)s-float-snat - [0:0]
:%(bn)s-nat - [0:0]
:%(bn)s-snat - [0:0]
-I OUTPUT 1 -j %(bn)s-OUTPUT
-I POSTROUTING 1 -j %(bn)s-POSTROUTING
-I POSTROUTING 2 -j neutron-postrouting-bottom
-I PREROUTING 1 -j %(bn)s-PREROUTING
-I neutron-postrouting-bottom 1 -j %(bn)s-snat
-I %(bn)s-PREROUTING 1 -d 192.168.0.3 -j %(bn)s-nat
-I %(bn)s-nat 1 -p tcp --dport 8080 -j REDIRECT --to-port 80
-I %(bn)s-snat 1 -j %(bn)s-float-snat
COMMIT
# Completed by iptables_manager
 IPTABLES_ARG N/A raw_dump N/A RAW_DUMP IPTABLES_ARG N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP MANGLE_DUMP nat_dump_mod RAW_DUMP run_as_root True None N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP MANGLE_DUMP nat_dump RAW_DUMP run_as_root True None N/A use_ipv6 N/A N/A N/A N/A self _extend_with_ip6tables_filter expected_calls_and_values N/A N/A FILTER_DUMP MANGLE_DUMP_V6 raw_dump N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A nat add_chain nat N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A nat add_rule PREROUTING N/A -d 192.168.0.3 -j %(bn)s-nat IPTABLES_ARG N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A nat add_rule nat N/A -p tcp --dport 8080  -j REDIRECT --to-port 80 N/A N/A N/A N/A self iptables apply N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A nat remove_rule nat -p tcp --dport 8080 -j REDIRECT --to-port 80 N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A nat remove_rule PREROUTING N/A -d 192.168.0.3 -j %(bn)s-nat IPTABLES_ARG N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A nat remove_chain nat N/A N/A N/A N/A self iptables apply N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values N/A test_add_nat_rule N/A N/A self N/A N/A N/A N/A N/A self _test_add_nat_rule_helper False N/A test_add_nat_rule_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_add_nat_rule_helper True N/A _test_add_raw_rule_helper N/A N/A self use_ipv6 N/A N/A N/A N/A self iptables N/A N/A iptables_manager IptablesManager use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A raw_dump_mod N/A # Generated by iptables_manager
*raw
:OUTPUT - [0:0]
:PREROUTING - [0:0]
:%(bn)s-OUTPUT - [0:0]
:%(bn)s-PREROUTING - [0:0]
:%(bn)s-raw - [0:0]
-I OUTPUT 1 -j %(bn)s-OUTPUT
-I PREROUTING 1 -j %(bn)s-PREROUTING
-I %(bn)s-PREROUTING 1 -j CT --notrack
COMMIT
# Completed by iptables_manager
 IPTABLES_ARG N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP MANGLE_DUMP NAT_DUMP raw_dump_mod run_as_root True None N/A N/A N/A mock call N/A iptables-save run_as_root True N/A N/A N/A mock call N/A iptables-restore -n process_input N/A N/A N/A FILTER_DUMP MANGLE_DUMP NAT_DUMP RAW_DUMP run_as_root True None N/A use_ipv6 N/A N/A N/A N/A self _extend_with_ip6tables_filter expected_calls_and_values N/A N/A FILTER_DUMP MANGLE_DUMP_V6 RAW_DUMP N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A raw add_chain raw N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A raw add_rule PREROUTING -j CT --notrack N/A N/A N/A N/A self iptables apply N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A raw remove_rule PREROUTING -j CT --notrack N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A raw remove_chain raw N/A N/A N/A N/A self iptables apply N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values N/A test_add_raw_rule N/A N/A self N/A N/A N/A N/A N/A self _test_add_raw_rule_helper False N/A test_add_raw_rule_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_add_raw_rule_helper True N/A test_add_rule_to_a_nonexistent_chain N/A N/A self N/A N/A N/A N/A N/A self assertRaises LookupError N/A N/A N/A N/A self iptables ipv4 N/A filter add_rule nonexistent -j DROP N/A test_remove_nonexistent_chain N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object iptables_manager LOG log N/A N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_chain nonexistent N/A N/A N/A N/A log debug assert_called_once_with Attempted to remove chain %s which does not exist nonexistent N/A test_remove_nonexistent_rule N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object iptables_manager LOG log N/A N/A N/A N/A N/A N/A N/A self iptables ipv4 N/A filter remove_rule nonexistent -j DROP N/A N/A N/A N/A log warning assert_called_once_with Tried to remove rule that was not there: %(chain)r %(rule)r %(wrap)r %(top)r N/A wrap top rule chain True False -j DROP nonexistent N/A test_iptables_failure_with_no_failing_line_number N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object iptables_manager LOG log N/A iptables_restore_failer N/A N/A N/A args kwargs N/A N/A N/A iptables-restore N/A args N/A 0 N/A N/A N/A self input_lines N/A N/A N/A kwargs N/A process_input split N/A N/A RuntimeError N/A FILTER_DUMP N/A N/A N/A N/A self execute side_effect iptables_restore_failer N/A N/A N/A self assertRaises RuntimeError N/A N/A self iptables _apply_synchronized N/A logged N/A N/A %7d. %s N/A n l N/A N/A n l N/A enumerate N/A self input_lines 1 N/A N/A N/A N/A log error assert_called_once_with N/A _ IPTablesManager.apply failed to apply the following set of iptables rules:
%s N/A N/A join logged N/A test_iptables_failure_on_specific_line N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object iptables_manager LOG log N/A iptables_restore_failer N/A N/A N/A args kwargs N/A N/A N/A iptables-restore N/A args N/A 0 N/A N/A N/A self input_lines N/A N/A N/A kwargs N/A process_input split N/A msg Exit code: 1
Stdout: ''
Stderr: 'iptables-restore: line 11 failed
' N/A N/A RuntimeError msg N/A FILTER_DUMP N/A N/A N/A N/A self execute side_effect iptables_restore_failer N/A N/A N/A self assertRaises RuntimeError N/A N/A self iptables _apply_synchronized N/A ctx N/A iptables_manager IPTABLES_ERROR_LINES_OF_CONTEXT N/A log_start N/A max 0 N/A 11 ctx N/A log_end N/A 11 ctx N/A logged N/A N/A %7d. %s N/A n l N/A N/A n l N/A enumerate N/A N/A self input_lines N/A log_start log_end N/A log_start 1 N/A N/A N/A N/A log error assert_called_once_with N/A _ IPTablesManager.apply failed to apply the following set of iptables rules:
%s N/A N/A join logged N/A test_get_traffic_counters_chain_notexists N/A N/A self N/A N/A N/A N/A N/A N/A mock patch object iptables_manager LOG log N/A N/A acc N/A N/A N/A self iptables get_traffic_counters chain1 N/A N/A N/A self assertIsNone acc N/A N/A N/A self assertEqual 0 N/A N/A self execute call_count N/A N/A N/A N/A log warning assert_called_once_with Attempted to get traffic counters of chain %s which does not exist chain1 N/A _test_get_traffic_counters_helper N/A N/A self use_ipv6 N/A N/A N/A N/A self iptables N/A N/A iptables_manager IptablesManager use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A exp_packets 800 N/A exp_bytes 131802 N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables -t filter -L OUTPUT -n -v -x run_as_root True TRAFFIC_COUNTERS_DUMP N/A N/A N/A mock call N/A iptables -t raw -L OUTPUT -n -v -x run_as_root True N/A N/A N/A mock call N/A iptables -t mangle -L OUTPUT -n -v -x run_as_root True N/A N/A N/A mock call N/A iptables -t nat -L OUTPUT -n -v -x run_as_root True N/A use_ipv6 N/A N/A N/A N/A expected_calls_and_values append N/A N/A N/A mock call N/A ip6tables -t raw -L OUTPUT -n -v -x run_as_root True N/A N/A N/A expected_calls_and_values append N/A N/A N/A mock call N/A ip6tables -t filter -L OUTPUT -n -v -x run_as_root True TRAFFIC_COUNTERS_DUMP N/A N/A N/A expected_calls_and_values append N/A N/A N/A mock call N/A ip6tables -t mangle -L OUTPUT -n -v -x run_as_root True N/A exp_packets 2 N/A exp_bytes 2 N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A acc N/A N/A N/A self iptables get_traffic_counters OUTPUT N/A N/A N/A self assertEqual N/A acc N/A pkts exp_packets N/A N/A N/A self assertEqual N/A acc N/A bytes exp_bytes N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values any_order True N/A test_get_traffic_counters N/A N/A self N/A N/A N/A N/A N/A self _test_get_traffic_counters_helper False N/A test_get_traffic_counters_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_get_traffic_counters_helper True N/A _test_get_traffic_counters_with_zero_helper N/A N/A self use_ipv6 N/A N/A N/A N/A self iptables N/A N/A iptables_manager IptablesManager use_ipv6 use_ipv6 N/A N/A self execute N/A N/A N/A N/A N/A mock patch object N/A self iptables execute start N/A exp_packets 800 N/A exp_bytes 131802 N/A expected_calls_and_values N/A N/A N/A N/A mock call N/A iptables -t filter -L OUTPUT -n -v -x -Z run_as_root True TRAFFIC_COUNTERS_DUMP N/A N/A N/A mock call N/A iptables -t raw -L OUTPUT -n -v -x -Z run_as_root True N/A N/A N/A mock call N/A iptables -t mangle -L OUTPUT -n -v -x -Z run_as_root True N/A N/A N/A mock call N/A iptables -t nat -L OUTPUT -n -v -x -Z run_as_root True N/A use_ipv6 N/A N/A N/A N/A expected_calls_and_values append N/A N/A N/A mock call N/A ip6tables -t raw -L OUTPUT -n -v -x -Z run_as_root True N/A N/A N/A expected_calls_and_values append N/A N/A N/A mock call N/A ip6tables -t filter -L OUTPUT -n -v -x -Z run_as_root True TRAFFIC_COUNTERS_DUMP N/A N/A N/A expected_calls_and_values append N/A N/A N/A mock call N/A ip6tables -t mangle -L OUTPUT -n -v -x -Z run_as_root True N/A exp_packets 2 N/A exp_bytes 2 N/A N/A N/A tools setup_mock_calls N/A self execute expected_calls_and_values N/A acc N/A N/A N/A self iptables get_traffic_counters OUTPUT zero True N/A N/A N/A self assertEqual N/A acc N/A pkts exp_packets N/A N/A N/A self assertEqual N/A acc N/A bytes exp_bytes N/A N/A N/A tools verify_mock_calls N/A self execute expected_calls_and_values any_order True N/A test_get_traffic_counters_with_zero N/A N/A self N/A N/A N/A N/A N/A self _test_get_traffic_counters_with_zero_helper False N/A test_get_traffic_counters_with_zero_with_ipv6 N/A N/A self N/A N/A N/A N/A N/A self _test_get_traffic_counters_with_zero_helper True N/A N/A IptablesManagerStateLessTestCase N/A N/A base BaseTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super IptablesManagerStateLessTestCase self setUp N/A N/A N/A N/A cfg CONF set_override comment_iptables_rules False AGENT N/A N/A self iptables N/A N/A iptables_manager IptablesManager state_less True N/A test_nat_not_found N/A N/A self N/A N/A N/A N/A N/A self assertNotIn nat N/A N/A self iptables ipv4 N/A test_mangle_not_found N/A N/A self N/A N/A N/A N/A N/A self assertNotIn mangle N/A N/A self iptables ipv4 N/A N/A