Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr Str Num Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body For NameStore GeneratorExp NameLoad comprehension TupleStore NameStore NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Break If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Dict Str Str Str Dict Str NameLoad If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Dict Str Str Str NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Return For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore IfExp NameLoad SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad For NameStore NameLoad body For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Num If CompareLt Call AttributeLoad NameLoad attr NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Call NameLoad Str AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr Call NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If SubscriptLoad NameLoad Index Str body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad vararg kwarg body If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Return SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Return SubscriptLoad NameLoad Index Str handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq Call NameLoad NameLoad Num body Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return ListLoad Return ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareIs NameLoad NameLoad body Continue Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str FunctionDef arguments args NameParam defaults body Return Dict Str Str Str NameLoad SubscriptLoad NameLoad Index Str Str decorator_list FunctionDef arguments args defaults body Return Dict Str Str Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Str decorator_list Assign NameStore Dict Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str ListLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str ListLoad Call NameLoad If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Index Str If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Raise Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Num Num Num Call AttributeLoad NameLoad attr Num Num Call AttributeLoad NameLoad attr Num Num Call AttributeLoad NameLoad attr Num Num Return Call AttributeLoad Str attr Call NameLoad Lambda arguments args NameParam defaults BinOpMod Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore NameLoad If SubscriptLoad NameLoad Index Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str Dict Str Str NameLoad NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Str NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str Dict Str NameLoad If UnaryOpNot SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub Num NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore ListLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str comprehension NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr While CompareIn NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Return NameLoad decorator_list For NameStore Call NameLoad NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse Raise Call NameLoad Call NameLoad Str For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad Str Raise Call NameLoad BinOpMod NameLoad Dict Str Str NameLoad NameLoad If CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse Assign NameStore Call NameLoad Str Raise Call NameLoad BinOpMod NameLoad Dict Str Str NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If CompareGt NameLoad Num body Assign SubscriptStore NameLoad Index Str BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Num If BoolOpAnd NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call NameLoad AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str NameLoad body Delete SubscriptDel NameLoad Index Str Delete SubscriptDel NameLoad Index Str Assign NameStore BinOpAdd SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpMod Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Call NameLoad Str orelse Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad If BoolOpOr CompareLt NameLoad NameLoad CompareLt BinOpSub NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Dict Str Str Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpOr CompareIs NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Return Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body If CompareIsNot NameLoad NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareNotEq SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body For NameStore GeneratorExp NameLoad comprehension TupleStore NameStore NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str Dict Str NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults kwarg body Expr Str If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq Call NameLoad NameLoad Num body Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str If CompareGt BinOpAdd SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Num body Raise Call NameLoad Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareLt Call NameLoad NameLoad BinOpMult SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Raise Call NameLoad BinOpMod Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot SubscriptLoad NameLoad Index Str body Assign NameStore Dict Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd AttributeLoad Call NameLoad NameLoad NameLoad attr Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad Call NameLoad NameLoad NameLoad attr Return BinOpAdd NameLoad AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A N/A Network Hosts are responsible for allocating ips and setting up network.

There are multiple backend drivers that handle specific types of networking
topologies.  All of the network commands are issued to a subclass of
:class:`NetworkManager`.

**Related Flags**

:network_driver:  Driver to use for network creation
:flat_network_bridge:  Bridge device for simple network instances
:flat_interface:  FlatDhcp will bridge into this interface if set
:flat_network_dns:  Dns for simple network
:vlan_start:  First VLAN for private networks
:vpn_ip:  Public IP for the cloudpipe VPN servers
:vpn_start:  First Vpn port for private networks
:cnt_vpn_clients:  Number of addresses reserved for vpn clients
:network_size:  Number of addresses in each private subnet
:floating_range:  Floating IP address block
:fixed_range:  Fixed IP address block
:date_dhcp_on_disassociate:  Whether to update dhcp when fixed_ip
                             is disassociated
:fixed_ip_disassociate_timeout:  Seconds after which a deallocated ip
                                 is disassociated
:create_unique_mac_address_attempts:  Number of times to attempt creating
                                      a unique mac address

 N/A datetime N/A itertools N/A math N/A netaddr N/A socket eventlet greenpool nova context nova db nova exception nova flags nova ipv6 nova log logging nova manager nova quota nova utils nova rpc nova.network api network_api nova.compute api compute_api N/A random N/A LOG N/A N/A logging getLogger nova.network.manager N/A FLAGS N/A flags FLAGS N/A N/A N/A flags DEFINE_string flat_network_bridge None Bridge for simple network instances N/A N/A N/A flags DEFINE_string flat_network_dns 8.8.4.4 Dns for simple network N/A N/A N/A flags DEFINE_bool flat_injected False Whether to attempt to inject network setup into guest N/A N/A N/A flags DEFINE_string flat_interface None FlatDhcp will bridge into this interface if set N/A N/A N/A flags DEFINE_integer vlan_start 100 First VLAN for private networks N/A N/A N/A flags DEFINE_string vlan_interface None vlans will bridge into this interface if set N/A N/A N/A flags DEFINE_integer num_networks 1 Number of networks to support N/A N/A N/A flags DEFINE_string vpn_ip $my_ip Public IP for the cloudpipe VPN servers N/A N/A N/A flags DEFINE_integer vpn_start 1000 First Vpn port for private networks N/A N/A N/A flags DEFINE_bool multi_host False Default value for multi_host in networks N/A N/A N/A flags DEFINE_integer network_size 256 Number of addresses in each private subnet N/A N/A N/A flags DEFINE_string floating_range 4.4.4.0/24 Floating IP address block N/A N/A N/A flags DEFINE_string fixed_range 10.0.0.0/8 Fixed IP address block N/A N/A N/A flags DEFINE_string fixed_range_v6 fd00::/48 Fixed IPv6 address block N/A N/A N/A flags DEFINE_string gateway_v6 None Default IPv6 gateway N/A N/A N/A flags DEFINE_integer cnt_vpn_clients 0 Number of addresses reserved for vpn clients N/A N/A N/A flags DEFINE_string network_driver nova.network.linux_net Driver to use for network creation N/A N/A N/A flags DEFINE_bool update_dhcp_on_disassociate False Whether to update dhcp when fixed_ip is disassociated N/A N/A N/A flags DEFINE_integer fixed_ip_disassociate_timeout 600 Seconds after which a deallocated ip is disassociated N/A N/A N/A flags DEFINE_integer create_unique_mac_address_attempts 5 Number of attempts to create unique mac address N/A N/A N/A flags DEFINE_bool auto_assign_floating_ip False Autoassigning floating ip to VM N/A N/A N/A flags DEFINE_string network_host N/A N/A socket gethostname Network host to use for ip allocation in flat modes N/A N/A N/A flags DEFINE_bool fake_call False If True, skip using the queue and make local calls N/A N/A N/A flags DEFINE_bool force_dhcp_release False If True, send a dhcp release on instance termination N/A N/A N/A flags DEFINE_string dhcp_domain novalocal domain to use for building the hostnames AddressAlreadyAllocated N/A N/A exception Error N/A N/A Address was already allocated. N/A N/A RPCAllocateFixedIP N/A object N/A N/A Mixin class originally for FlatDCHP and VLAN network managers.

    used since they share code to RPC.call allocate_fixed_ip on the
    correct network host to configure dnsmasq
     _allocate_fixed_ips N/A N/A self context instance_id host networks N/A kwargs N/A N/A Calls allocate_fixed_ip once for each network. N/A green_pool N/A N/A greenpool GreenPool N/A vpn N/A N/A kwargs get vpn N/A requested_networks N/A N/A kwargs get requested_networks N/A network networks N/A N/A address None N/A N/A requested_networks None N/A N/A address N/A fixed_ip N/A N/A uuid fixed_ip requested_networks N/A N/A network N/A uuid uuid N/A N/A N/A N/A N/A network N/A multi_host N/A N/A host N/A network N/A host N/A N/A host None N/A N/A host N/A N/A rpc call context N/A FLAGS network_topic N/A method args set_network_host N/A network_ref network N/A N/A host N/A self host N/A N/A topic N/A N/A N/A self db queue_get_for context N/A FLAGS network_topic host N/A args N/A N/A N/A args N/A instance_id instance_id N/A N/A args N/A network_id N/A network N/A id N/A N/A args N/A address address N/A N/A args N/A vpn vpn N/A N/A N/A green_pool spawn_n N/A rpc call context topic N/A method args _rpc_allocate_fixed_ip args N/A N/A N/A N/A self allocate_fixed_ip context instance_id network vpn vpn address address N/A N/A N/A green_pool waitall N/A _rpc_allocate_fixed_ip N/A N/A self context instance_id network_id N/A kwargs N/A N/A Sits in between _allocate_fixed_ips and allocate_fixed_ip to
        perform network lookup on the far side of rpc.
         N/A network N/A N/A N/A self db network_get context network_id N/A N/A N/A self allocate_fixed_ip context instance_id network kwargs N/A N/A FloatingIP N/A object N/A N/A Mixin class for adding floating IP functionality to a manager. init_host_floating_ips N/A N/A self N/A N/A N/A Configures floating ips owned by host. N/A admin_context N/A N/A context get_admin_context N/A N/A N/A floating_ips N/A N/A N/A self db floating_ip_get_all_by_host admin_context N/A self host N/A N/A N/A N/A exception NotFound N/A N/A N/A floating_ip floating_ips N/A N/A N/A N/A floating_ip get fixed_ip None N/A N/A fixed_address N/A N/A floating_ip N/A fixed_ip N/A address N/A N/A N/A N/A self driver bind_floating_ip N/A floating_ip N/A address False N/A N/A N/A N/A self driver ensure_floating_forward N/A floating_ip N/A address fixed_address N/A allocate_for_instance N/A N/A self context N/A kwargs N/A N/A Handles allocating the floating IP resources for an instance.

        calls super class allocate_for_instance() as well

        rpc.called by network_api
         N/A instance_id N/A N/A kwargs get instance_id N/A project_id N/A N/A kwargs get project_id N/A requested_networks N/A N/A kwargs get requested_networks N/A N/A N/A LOG debug N/A _ floating IP allocation for instance |%s| instance_id context context N/A ips N/A N/A N/A super FloatingIP self allocate_for_instance context kwargs N/A N/A FLAGS auto_assign_floating_ip N/A N/A public_ip N/A N/A self allocate_floating_ip context project_id N/A N/A N/A N/A self db floating_ip_set_auto_assigned context public_ip N/A floating_ip N/A N/A N/A self db floating_ip_get_by_address context public_ip N/A fixed_ips N/A N/A N/A self db fixed_ip_get_by_instance context instance_id N/A fixed_ip N/A fixed_ips N/A fixed_ips N/A 0 None N/A N/A N/A N/A self network_api associate_floating_ip context N/A floating_ip N/A address N/A fixed_ip N/A address affect_auto_assigned True N/A ips N/A deallocate_for_instance N/A N/A self context N/A kwargs N/A N/A Handles deallocating floating IP resources for an instance.

        calls super class deallocate_for_instance() as well.

        rpc.called by network_api
         N/A instance_id N/A N/A kwargs get instance_id N/A N/A N/A LOG debug N/A _ floating IP deallocation for instance |%s| instance_id context context N/A fixed_ips N/A N/A N/A self db fixed_ip_get_by_instance context instance_id N/A N/A kwargs N/A fixed_ips fixed_ips N/A fixed_ip fixed_ips N/A N/A floating_ip N/A fixed_ip floating_ips N/A N/A address N/A floating_ip N/A address N/A N/A N/A N/A self network_api disassociate_floating_ip context address True N/A N/A floating_ip N/A auto_assigned N/A N/A N/A N/A N/A self network_api release_floating_ip context address True N/A N/A N/A N/A super FloatingIP self deallocate_for_instance context kwargs N/A allocate_floating_ip N/A N/A self context project_id N/A N/A N/A Gets an floating ip from the pool. N/A N/A N/A LOG debug N/A QUOTA: %s N/A N/A quota allowed_floating_ips context 1 N/A N/A N/A N/A quota allowed_floating_ips context 1 1 N/A N/A N/A N/A LOG warn N/A _ Quota exceeded for %s, tried to allocate address N/A context project_id N/A N/A N/A quota QuotaError N/A _ Address quota exceeded. You cannot allocate any more addresses N/A N/A N/A N/A self db floating_ip_allocate_address context project_id N/A associate_floating_ip N/A N/A self context floating_address fixed_address N/A N/A N/A Associates an floating ip to a fixed ip. N/A floating_ip N/A N/A N/A self db floating_ip_get_by_address context floating_address N/A N/A floating_ip N/A fixed_ip N/A N/A N/A N/A exception FloatingIpAlreadyInUse address N/A floating_ip N/A address fixed_ip N/A N/A floating_ip N/A fixed_ip N/A address N/A N/A N/A N/A self db floating_ip_fixed_ip_associate context floating_address fixed_address N/A self host N/A N/A N/A N/A self driver bind_floating_ip floating_address N/A N/A N/A N/A self driver ensure_floating_forward floating_address fixed_address N/A disassociate_floating_ip N/A N/A self context floating_address N/A N/A N/A Disassociates a floating ip. N/A fixed_address N/A N/A N/A self db floating_ip_disassociate context floating_address N/A N/A N/A N/A self driver unbind_floating_ip floating_address N/A N/A N/A N/A self driver remove_floating_forward floating_address fixed_address N/A deallocate_floating_ip N/A N/A self context floating_address N/A N/A N/A Returns an floating ip to the pool. N/A N/A N/A N/A self db floating_ip_deallocate context floating_address N/A N/A NetworkManager N/A N/A manager SchedulerDependentManager N/A N/A Implements common network manager functionality.

    This class must be subclassed to support specific topologies.

    host management:
        hosts configure themselves for networks they are assigned to in the
        table upon startup. If there are networks in the table which do not
        have hosts, those will be filled in and have hosts configured
        as the hosts pick them up one at time during their periodic task.
        The one at a time part is to flatten the layout to help scale
     N/A SHOULD_CREATE_BRIDGE False N/A SHOULD_CREATE_VLAN False N/A timeout_fixed_ips True __init__ N/A N/A self network_driver N/A None args kwargs N/A N/A N/A network_driver N/A N/A network_driver N/A FLAGS network_driver N/A N/A self driver N/A N/A utils import_object network_driver N/A N/A self network_api N/A N/A network_api API N/A N/A self compute_api N/A N/A compute_api API N/A N/A N/A N/A super NetworkManager self __init__ service_name network args kwargs N/A _get_dhcp_ip N/A N/A self context network_ref host N/A None N/A N/A Get the proper dhcp address to listen on. N/A N/A N/A network_ref N/A multi_host N/A N/A N/A network_ref N/A gateway N/A N/A host N/A N/A host N/A self host N/A network_id N/A network_ref N/A id N/A N/A N/A fip N/A N/A N/A self db fixed_ip_get_by_network_host context network_id host N/A N/A fip N/A address N/A N/A N/A N/A exception FixedIpNotFoundForNetworkHost N/A N/A elevated N/A N/A context elevated N/A N/A N/A N/A self db fixed_ip_associate_pool elevated network_id host host N/A N/A N/A utils synchronized get_dhcp init_host N/A N/A self N/A N/A N/A Do any initialization that needs to be run if this is a
        standalone service.
         N/A ctxt N/A N/A context get_admin_context N/A network N/A N/A N/A self db network_get_all_by_host ctxt N/A self host N/A N/A N/A N/A self _setup_network ctxt network N/A periodic_tasks N/A N/A self context N/A None N/A N/A Tasks to be run at a periodic interval. N/A N/A N/A N/A super NetworkManager self periodic_tasks context N/A N/A self timeout_fixed_ips N/A N/A now N/A N/A utils utcnow N/A timeout N/A FLAGS fixed_ip_disassociate_timeout N/A time N/A now N/A N/A datetime timedelta seconds timeout N/A num N/A N/A N/A self db fixed_ip_disassociate_all_by_timeout context N/A self host time N/A num N/A N/A N/A N/A LOG debug N/A _ Dissassociated %s stale fixed ip(s) num N/A set_network_host N/A N/A self context network_ref N/A N/A N/A Safely sets the host of the network. N/A N/A N/A LOG debug N/A _ setting network host context context N/A host N/A N/A N/A self db network_set_host context N/A network_ref N/A id N/A self host N/A host N/A _do_trigger_security_group_members_refresh_for_instance N/A N/A self instance_id N/A N/A N/A admin_context N/A N/A context get_admin_context N/A instance_ref N/A N/A N/A self db instance_get admin_context instance_id N/A groups N/A instance_ref N/A security_groups N/A group_ids N/A N/A group N/A id N/A group groups N/A N/A N/A N/A self compute_api trigger_security_group_members_refresh admin_context group_ids N/A _get_networks_for_instance N/A N/A self context instance_id project_id requested_networks N/A None N/A N/A Determine & return which networks an instance should connect to. N/A N/A N/A requested_networks None N/A N/A len requested_networks 0 N/A N/A network_uuids N/A uuid N/A N/A uuid fixed_ip requested_networks N/A networks N/A N/A N/A self db network_get_all_by_uuids context network_uuids N/A N/A N/A N/A networks N/A N/A N/A self db network_get_all context N/A N/A N/A N/A exception NoNetworksFound N/A N/A N/A N/A N/A network N/A network networks N/A N/A network N/A vlan N/A allocate_for_instance N/A N/A self context N/A kwargs N/A N/A Handles allocating the various network resources for an instance.

        rpc.called by network_api
         N/A instance_id N/A N/A kwargs pop instance_id N/A host N/A N/A kwargs pop host N/A project_id N/A N/A kwargs pop project_id N/A type_id N/A N/A kwargs pop instance_type_id N/A requested_networks N/A N/A kwargs get requested_networks N/A vpn N/A N/A kwargs pop vpn N/A admin_context N/A N/A context elevated N/A N/A N/A LOG debug N/A _ network allocations for instance %s instance_id context context N/A networks N/A N/A self _get_networks_for_instance admin_context instance_id project_id requested_networks requested_networks N/A N/A N/A self _allocate_mac_addresses context instance_id networks N/A N/A N/A self _allocate_fixed_ips admin_context instance_id host networks vpn vpn requested_networks requested_networks N/A N/A N/A self get_instance_nw_info context instance_id type_id host N/A deallocate_for_instance N/A N/A self context N/A kwargs N/A N/A Handles deallocating various network resources for an instance.

        rpc.called by network_api
        kwargs can contain fixed_ips to circumvent another db lookup
         N/A instance_id N/A N/A kwargs pop instance_id N/A N/A N/A fixed_ips N/A N/A N/A kwargs get fixed_ips N/A N/A N/A self db fixed_ip_get_by_instance context instance_id N/A N/A N/A N/A exception FixedIpNotFoundForInstance N/A N/A fixed_ips N/A N/A N/A N/A LOG debug N/A _ network deallocation for instance |%s| instance_id context context N/A fixed_ip fixed_ips N/A N/A N/A N/A self deallocate_fixed_ip context N/A fixed_ip N/A address kwargs N/A N/A N/A N/A self db virtual_interface_delete_by_instance context instance_id N/A get_instance_nw_info N/A N/A self context instance_id instance_type_id host N/A N/A N/A Creates network info list for instance.

        called by allocate_for_instance and netowrk_api
        context needs to be elevated
        :returns: network info list [(network,info),(network,info)...]
        where network = dict containing pertinent data from a network db object
        and info = dict containing pertinent networking data
         N/A N/A N/A fixed_ips N/A N/A N/A self db fixed_ip_get_by_instance context instance_id N/A N/A N/A N/A exception FixedIpNotFoundForInstance N/A N/A N/A N/A LOG warn N/A _ No fixed IPs for instance %s instance_id N/A fixed_ips N/A N/A vifs N/A N/A N/A self db virtual_interface_get_by_instance context instance_id N/A flavor N/A N/A N/A self db instance_type_get context instance_type_id N/A network_info N/A N/A vif vifs N/A N/A network N/A vif N/A network N/A N/A network None N/A N/A N/A network_IPs N/A N/A fixed_ip N/A address N/A fixed_ip fixed_ips N/A N/A fixed_ip N/A network_id N/A network N/A id ip_dict N/A N/A ip N/A N/A N/A N/A ip netmask enabled ip N/A network N/A netmask 1 N/A ip6_dict N/A N/A N/A N/A N/A N/A ip netmask enabled N/A N/A ipv6 to_global N/A network N/A cidr_v6 N/A vif N/A address N/A network N/A project_id N/A network N/A netmask_v6 1 N/A N/A network_dict N/A bridge id cidr cidr_v6 injected vlan bridge_interface multi_host N/A network N/A bridge N/A network N/A id N/A network N/A cidr N/A network N/A cidr_v6 N/A network N/A injected N/A network N/A vlan N/A network N/A bridge_interface N/A network N/A multi_host N/A N/A network N/A multi_host N/A N/A dhcp_server N/A N/A self _get_dhcp_ip context network host N/A N/A dhcp_server N/A N/A self _get_dhcp_ip context network N/A network N/A host N/A info N/A label gateway dhcp_server broadcast mac vif_uuid rxtx_cap dns ips should_create_bridge should_create_vlan N/A network N/A label N/A network N/A gateway dhcp_server N/A network N/A broadcast N/A vif N/A address N/A vif N/A uuid N/A flavor N/A rxtx_cap N/A N/A N/A ip_dict ip N/A ip network_IPs N/A self SHOULD_CREATE_BRIDGE N/A self SHOULD_CREATE_VLAN N/A N/A network N/A cidr_v6 N/A N/A N/A info N/A ip6s N/A N/A ip6_dict N/A N/A network N/A gateway_v6 N/A N/A N/A info N/A gateway6 N/A network N/A gateway_v6 N/A N/A network N/A dns1 N/A N/A N/A N/A N/A info N/A dns append N/A network N/A dns1 N/A N/A network N/A dns2 N/A N/A N/A N/A N/A info N/A dns append N/A network N/A dns2 N/A N/A N/A network_info append N/A network_dict info N/A network_info N/A _allocate_mac_addresses N/A N/A self context instance_id networks N/A N/A N/A Generates mac addresses and creates vif rows in db for them. N/A network networks N/A N/A N/A N/A self add_virtual_interface context instance_id N/A network N/A id N/A add_virtual_interface N/A N/A self context instance_id network_id N/A N/A N/A vif N/A address instance_id network_id uuid N/A N/A self generate_mac_address instance_id network_id N/A str N/A N/A utils gen_uuid N/A _ N/A xrange N/A FLAGS create_unique_mac_address_attempts N/A N/A N/A N/A N/A N/A N/A self db virtual_interface_create context vif N/A N/A N/A N/A exception VirtualInterfaceCreateException N/A N/A N/A vif N/A address N/A N/A self generate_mac_address N/A N/A N/A N/A N/A self db virtual_interface_delete_by_instance context instance_id N/A N/A N/A exception VirtualInterfaceMacAddressException N/A generate_mac_address N/A N/A self N/A N/A N/A Generate an Ethernet MAC address. N/A mac N/A 2 22 62 N/A N/A random randint 0 127 N/A N/A random randint 0 255 N/A N/A random randint 0 255 N/A N/A N/A : join N/A map N/A N/A N/A x N/A N/A %02x x mac N/A add_fixed_ip_to_instance N/A N/A self context instance_id host network_id N/A N/A N/A Adds a fixed ip to an instance from specified network. N/A networks N/A N/A N/A N/A self db network_get context network_id N/A N/A N/A self _allocate_fixed_ips context instance_id host networks N/A remove_fixed_ip_from_instance N/A N/A self context instance_id address N/A N/A N/A Removes a fixed ip from an instance from specified network. N/A fixed_ips N/A N/A N/A self db fixed_ip_get_by_instance context instance_id N/A fixed_ip fixed_ips N/A N/A N/A N/A fixed_ip N/A address address N/A N/A N/A N/A self deallocate_fixed_ip context address N/A N/A N/A N/A exception FixedIpNotFoundForSpecificInstance instance_id instance_id ip address N/A allocate_fixed_ip N/A N/A self context instance_id network N/A kwargs N/A N/A Gets a fixed ip from the pool. N/A address None N/A N/A network N/A cidr N/A N/A address N/A N/A kwargs get address None N/A address N/A N/A address N/A N/A N/A self db fixed_ip_associate context address instance_id N/A network N/A id N/A N/A address N/A N/A N/A self db fixed_ip_associate_pool N/A N/A context elevated N/A network N/A id instance_id N/A N/A N/A self _do_trigger_security_group_members_refresh_for_instance instance_id N/A get_vif N/A N/A self db virtual_interface_get_by_instance_and_network N/A vif N/A get_vif context instance_id N/A network N/A id N/A values N/A allocated virtual_interface_id True N/A vif N/A id N/A N/A N/A N/A self db fixed_ip_update context address values N/A N/A N/A self _setup_network context network N/A address N/A deallocate_fixed_ip N/A N/A self context address N/A kwargs N/A N/A Returns a fixed ip to the pool. N/A N/A N/A N/A self db fixed_ip_update context address N/A allocated virtual_interface_id False None N/A fixed_ip_ref N/A N/A N/A self db fixed_ip_get_by_address context address N/A instance_ref N/A fixed_ip_ref N/A instance N/A instance_id N/A instance_ref N/A id N/A N/A N/A self _do_trigger_security_group_members_refresh_for_instance instance_id N/A N/A FLAGS force_dhcp_release N/A N/A dev N/A N/A N/A self driver get_dev N/A fixed_ip_ref N/A network N/A vif N/A N/A N/A self db virtual_interface_get_by_instance_and_network context N/A instance_ref N/A id N/A N/A fixed_ip_ref N/A network N/A id N/A N/A N/A N/A self driver release_dhcp dev address N/A vif N/A address N/A lease_fixed_ip N/A N/A self context address N/A N/A N/A Called by dhcp-bridge when ip is leased. N/A N/A N/A LOG debug N/A _ Leased IP |%(address)s| N/A locals context context N/A fixed_ip N/A N/A N/A self db fixed_ip_get_by_address context address N/A instance N/A fixed_ip N/A instance N/A N/A instance N/A N/A N/A N/A exception Error N/A N/A _ IP %s leased that is not associated address N/A now N/A N/A utils utcnow N/A N/A N/A N/A self db fixed_ip_update context N/A fixed_ip N/A address N/A leased updated_at True now N/A N/A N/A fixed_ip N/A allocated N/A N/A N/A N/A LOG warn N/A _ IP |%s| leased that isn't allocated address context context N/A release_fixed_ip N/A N/A self context address N/A N/A N/A Called by dhcp-bridge when ip is released. N/A N/A N/A LOG debug N/A _ Released IP |%(address)s| N/A locals context context N/A fixed_ip N/A N/A N/A self db fixed_ip_get_by_address context address N/A instance N/A fixed_ip N/A instance N/A N/A instance N/A N/A N/A N/A exception Error N/A N/A _ IP %s released that is not associated address N/A N/A N/A fixed_ip N/A leased N/A N/A N/A N/A LOG warn N/A _ IP %s released that was not leased address context context N/A N/A N/A N/A self db fixed_ip_update context N/A fixed_ip N/A address N/A leased False N/A N/A N/A fixed_ip N/A allocated N/A N/A N/A N/A N/A self db fixed_ip_disassociate context address N/A N/A FLAGS update_dhcp_on_disassociate N/A N/A network_ref N/A N/A N/A self db fixed_ip_get_network context address N/A N/A N/A self _setup_network context network_ref N/A create_networks N/A N/A self context label cidr multi_host num_networks network_size cidr_v6 gateway_v6 bridge bridge_interface dns1 dns2 N/A None None kwargs N/A N/A Create networks based on parameters. N/A fixed_net_v4 N/A N/A netaddr IPNetwork 0/32 N/A fixed_net_v6 N/A N/A netaddr IPNetwork ::0/128 N/A subnets_v4 N/A N/A subnets_v6 N/A N/A subnet_bits N/A int N/A N/A math ceil N/A N/A math log network_size 2 N/A cidr_v6 N/A N/A fixed_net_v6 N/A N/A netaddr IPNetwork cidr_v6 N/A prefixlen_v6 N/A 128 subnet_bits N/A subnets_v6 N/A N/A fixed_net_v6 subnet prefixlen_v6 count num_networks N/A cidr N/A N/A fixed_net_v4 N/A N/A netaddr IPNetwork cidr N/A prefixlen_v4 N/A 32 subnet_bits N/A subnets_v4 N/A list N/A N/A fixed_net_v4 subnet prefixlen_v4 count num_networks N/A N/A N/A nets N/A N/A N/A self db network_get_all context N/A N/A N/A N/A exception NoNetworksFound N/A N/A nets N/A N/A used_subnets N/A N/A N/A netaddr IPNetwork N/A net N/A cidr N/A net nets find_next N/A N/A subnet N/A N/A N/A next_subnet N/A N/A subnet next N/A N/A next_subnet subnets_v4 N/A N/A next_subnet N/A N/A next_subnet next N/A N/A next_subnet fixed_net_v4 N/A N/A next_subnet N/A N/A subnet N/A list subnets_v4 N/A N/A N/A subnet used_subnets N/A N/A next_subnet N/A find_next subnet N/A next_subnet N/A N/A N/A N/A subnets_v4 remove subnet N/A N/A N/A subnets_v4 append next_subnet N/A subnet next_subnet N/A N/A N/A ValueError N/A _ cidr already in use N/A used_subnet used_subnets N/A N/A N/A subnet used_subnet N/A N/A msg N/A _ requested cidr (%(cidr)s) conflicts with existing supernet (%(super)s) N/A N/A ValueError N/A msg N/A cidr super subnet used_subnet N/A N/A used_subnet subnet N/A N/A next_subnet N/A find_next subnet N/A next_subnet N/A N/A N/A N/A subnets_v4 remove subnet N/A N/A N/A subnets_v4 append next_subnet N/A subnet next_subnet N/A N/A msg N/A _ requested cidr (%(cidr)s) conflicts with existing smaller cidr (%(smaller)s) N/A N/A ValueError N/A msg N/A cidr smaller subnet used_subnet N/A networks N/A N/A subnets N/A N/A itertools izip_longest subnets_v4 subnets_v6 N/A N/A index N/A subnet_v4 subnet_v6 N/A enumerate subnets N/A N/A net N/A N/A N/A net N/A bridge bridge N/A N/A net N/A bridge_interface bridge_interface N/A N/A net N/A multi_host multi_host N/A N/A net N/A dns1 dns1 N/A N/A net N/A dns2 dns2 N/A N/A num_networks 1 N/A N/A N/A net N/A label N/A %s_%d N/A label index N/A N/A N/A net N/A label label N/A N/A cidr subnet_v4 N/A N/A N/A net N/A cidr N/A str subnet_v4 N/A N/A net N/A netmask N/A str N/A subnet_v4 netmask N/A N/A net N/A gateway N/A str N/A subnet_v4 N/A 1 N/A N/A net N/A broadcast N/A str N/A subnet_v4 broadcast N/A N/A net N/A dhcp_start N/A str N/A subnet_v4 N/A 2 N/A N/A cidr_v6 subnet_v6 N/A N/A N/A net N/A cidr_v6 N/A str subnet_v6 N/A gateway_v6 N/A N/A N/A net N/A gateway_v6 N/A str gateway_v6 N/A N/A N/A net N/A gateway_v6 N/A str N/A subnet_v6 N/A 1 N/A N/A net N/A netmask_v6 N/A str N/A subnet_v6 _prefixlen N/A N/A N/A kwargs get vpn False N/A N/A N/A net N/A dns1 N/A N/A net N/A dns2 N/A vlan N/A N/A kwargs N/A vlan_start index N/A N/A net N/A vpn_private_address N/A str N/A subnet_v4 N/A 2 N/A N/A net N/A dhcp_start N/A str N/A subnet_v4 N/A 3 N/A N/A net N/A vlan vlan N/A N/A net N/A bridge N/A br%s vlan N/A N/A net N/A vpn_public_port N/A N/A kwargs N/A vpn_start index N/A network N/A N/A N/A self db network_create_safe context net N/A N/A network N/A N/A N/A ValueError N/A _ Network already exists! N/A N/A N/A N/A networks append network N/A N/A network cidr subnet_v4 N/A N/A N/A N/A self _create_fixed_ips context N/A network N/A id N/A networks N/A delete_network N/A N/A self context fixed_range require_disassociated N/A True N/A N/A network N/A N/A db network_get_by_cidr context fixed_range N/A N/A require_disassociated N/A N/A network project_id None N/A N/A N/A ValueError N/A _ N/A Network must be disassociated from project %s before delete N/A network project_id N/A N/A N/A db network_delete_safe context N/A network id N/A _bottom_reserved_ips N/A N/A self N/A N/A N/A Number of reserved ips at the bottom of the range. N/A 2 N/A property _top_reserved_ips N/A N/A self N/A N/A N/A Number of reserved ips at the top of the range. N/A 1 N/A property _create_fixed_ips N/A N/A self context network_id N/A N/A N/A Create all fixed ips for network. N/A network N/A N/A N/A self db network_get context network_id N/A bottom_reserved N/A self _bottom_reserved_ips N/A top_reserved N/A self _top_reserved_ips N/A project_net N/A N/A netaddr IPNetwork N/A network N/A cidr N/A num_ips N/A len project_net N/A index N/A range num_ips N/A N/A address N/A str N/A project_net N/A index N/A N/A N/A index bottom_reserved N/A N/A num_ips index top_reserved N/A N/A reserved True N/A N/A reserved False N/A N/A N/A N/A self db fixed_ip_create context N/A network_id address reserved network_id address reserved N/A _allocate_fixed_ips N/A N/A self context instance_id host networks N/A kwargs N/A N/A Calls allocate_fixed_ip once for each network. N/A N/A NotImplementedError N/A _setup_network N/A N/A self context network_ref N/A N/A N/A Sets up network on this host. N/A N/A NotImplementedError N/A validate_networks N/A N/A self context networks N/A N/A N/A check if the networks exists and host
        is set to each network.
         N/A N/A N/A networks None N/A N/A len networks 0 N/A N/A N/A network_uuids N/A uuid N/A N/A uuid fixed_ip networks N/A N/A N/A self _get_networks_by_uuids context network_uuids N/A N/A network_uuid address networks N/A N/A N/A address None N/A N/A N/A N/A N/A utils is_valid_ipv4 address N/A N/A N/A N/A exception FixedIpInvalid address address N/A fixed_ip_ref N/A N/A N/A self db fixed_ip_get_by_address context address N/A N/A N/A N/A fixed_ip_ref N/A network N/A uuid network_uuid N/A N/A N/A N/A exception FixedIpNotFoundForNetwork address address network_uuid network_uuid N/A N/A N/A fixed_ip_ref N/A instance None N/A N/A N/A N/A exception FixedIpAlreadyInUse address address N/A _get_networks_by_uuids N/A N/A self context network_uuids N/A N/A N/A N/A N/A N/A self db network_get_all_by_uuids context network_uuids N/A N/A FlatManager N/A NetworkManager N/A N/A Basic network where no vlans are used.

    FlatManager does not do any bridge or vlan creation.  The user is
    responsible for setting up whatever bridges are specified when creating
    networks through nova-manage. This bridge needs to be created on all
    compute hosts.

    The idea is to create a single network for the host with a command like:
    nova-manage network create 192.168.0.0/24 1 256. Creating multiple
    networks for for one manager is currently not supported, but could be
    added by modifying allocate_fixed_ip and get_network to get the a network
    with new logic instead of network_get_by_bridge. Arbitrary lists of
    addresses in a single network can be accomplished with manual db editing.

    If flat_injected is True, the compute host will attempt to inject network
    config into the guest.  It attempts to modify /etc/network/interfaces and
    currently only works on debian based systems. To support a wider range of
    OSes, some other method may need to be devised to let the guest know which
    ip it should be using so that it can configure itself. Perhaps an attached
    disk or serial device with configuration info.

    Metadata forwarding must be handled by the gateway, and since nova does
    not do any setup in this mode, it must be done manually.  Requests to
    169.254.169.254 port 80 will need to be forwarded to the api server.

     N/A timeout_fixed_ips False _allocate_fixed_ips N/A N/A self context instance_id host networks N/A kwargs N/A N/A Calls allocate_fixed_ip once for each network. N/A requested_networks N/A N/A kwargs get requested_networks N/A network networks N/A N/A address None N/A N/A requested_networks None N/A N/A address N/A fixed_ip N/A N/A uuid fixed_ip requested_networks N/A N/A network N/A uuid uuid N/A N/A N/A N/A N/A self allocate_fixed_ip context instance_id network address address N/A deallocate_fixed_ip N/A N/A self context address N/A kwargs N/A N/A Returns a fixed ip to the pool. N/A N/A N/A N/A super FlatManager self deallocate_fixed_ip context address kwargs N/A N/A N/A N/A self db fixed_ip_disassociate context address N/A _setup_network N/A N/A self context network_ref N/A N/A N/A Setup Network on this host. N/A net N/A N/A N/A net N/A injected N/A FLAGS flat_injected N/A N/A N/A N/A self db network_update context N/A network_ref N/A id net N/A N/A FlatDHCPManager N/A FloatingIP RPCAllocateFixedIP NetworkManager N/A N/A Flat networking with dhcp.

    FlatDHCPManager will start up one dhcp server to give out addresses.
    It never injects network settings into the guest. It also manages bridges.
    Otherwise it behaves like FlatManager.

     N/A SHOULD_CREATE_BRIDGE True init_host N/A N/A self N/A N/A N/A Do any initialization that needs to be run if this is a
        standalone service.
         N/A N/A N/A N/A self driver init_host N/A N/A N/A N/A self driver ensure_metadata_ip N/A N/A N/A N/A super FlatDHCPManager self init_host N/A N/A N/A self init_host_floating_ips N/A N/A N/A N/A self driver metadata_forward N/A _setup_network N/A N/A self context network_ref N/A N/A N/A Sets up network on this host. N/A N/A network_ref N/A dhcp_server N/A N/A self _get_dhcp_ip context network_ref N/A mac_address N/A N/A self generate_mac_address N/A dev N/A N/A N/A self driver plug network_ref mac_address N/A N/A N/A N/A self driver initialize_gateway_device dev network_ref N/A N/A N/A FLAGS fake_network N/A N/A N/A N/A N/A self driver update_dhcp context dev network_ref N/A N/A FLAGS use_ipv6 N/A N/A N/A N/A N/A self driver update_ra context dev network_ref N/A gateway N/A N/A utils get_my_linklocal dev N/A N/A N/A N/A self db network_update context N/A network_ref N/A id N/A gateway_v6 gateway N/A N/A VlanManager N/A RPCAllocateFixedIP FloatingIP NetworkManager N/A N/A Vlan network with dhcp.

    VlanManager is the most complicated.  It will create a host-managed
    vlan for each project.  Each project gets its own subnet.  The networks
    and associated subnets are created with nova-manage using a command like:
    nova-manage network create 10.0.0.0/8 3 16.  This will create 3 networks
    of 16 addresses from the beginning of the 10.0.0.0 range.

    A dhcp server is run for each subnet, so each project will have its own.
    For this mode to be useful, each project will need a vpn to access the
    instances in its subnet.

     N/A SHOULD_CREATE_BRIDGE True N/A SHOULD_CREATE_VLAN True init_host N/A N/A self N/A N/A N/A Do any initialization that needs to be run if this is a
        standalone service.
         N/A N/A N/A N/A self driver init_host N/A N/A N/A N/A self driver ensure_metadata_ip N/A N/A N/A NetworkManager init_host self N/A N/A N/A self init_host_floating_ips N/A N/A N/A N/A self driver metadata_forward N/A allocate_fixed_ip N/A N/A self context instance_id network N/A kwargs N/A N/A Gets a fixed ip from the pool. N/A N/A N/A kwargs get vpn None N/A N/A address N/A network N/A vpn_private_address N/A N/A N/A N/A self db fixed_ip_associate context address instance_id reserved True N/A N/A address N/A N/A kwargs get address None N/A address N/A N/A address N/A N/A N/A self db fixed_ip_associate context address instance_id N/A network N/A id N/A N/A address N/A N/A N/A self db fixed_ip_associate_pool context N/A network N/A id instance_id N/A N/A N/A self _do_trigger_security_group_members_refresh_for_instance instance_id N/A vif N/A N/A N/A self db virtual_interface_get_by_instance_and_network context instance_id N/A network N/A id N/A values N/A allocated virtual_interface_id True N/A vif N/A id N/A N/A N/A N/A self db fixed_ip_update context address values N/A N/A N/A self _setup_network context network N/A address N/A add_network_to_project N/A N/A self context project_id N/A N/A N/A Force adds another network to a project. N/A N/A N/A N/A self db network_associate context project_id force True N/A _get_networks_for_instance N/A N/A self context instance_id project_id requested_networks N/A None N/A N/A Determine which networks an instance should connect to. N/A N/A N/A requested_networks None N/A N/A len requested_networks 0 N/A N/A network_uuids N/A uuid N/A N/A uuid fixed_ip requested_networks N/A networks N/A N/A N/A self db network_get_all_by_uuids context network_uuids project_id N/A N/A networks N/A N/A N/A self db project_get_networks context project_id N/A networks N/A create_networks N/A N/A self context N/A kwargs N/A N/A Create networks based on parameters. N/A N/A N/A N/A kwargs N/A num_networks N/A kwargs N/A vlan_start 4094 N/A N/A N/A ValueError N/A _ The sum between the number of networks and the vlan start cannot be greater than 4094 N/A fixed_net N/A N/A netaddr IPNetwork N/A kwargs N/A cidr N/A N/A N/A len fixed_net N/A N/A kwargs N/A num_networks N/A kwargs N/A network_size N/A N/A N/A ValueError N/A N/A _ The network range is not big enough to fit %(num_networks)s. Network size is %(network_size)s kwargs N/A N/A N/A NetworkManager create_networks self context vpn True kwargs N/A _setup_network N/A N/A self context network_ref N/A N/A N/A Sets up network on this host. N/A N/A N/A network_ref N/A vpn_public_address N/A N/A net N/A N/A address N/A FLAGS vpn_ip N/A N/A net N/A vpn_public_address address N/A network_ref N/A N/A db network_update context N/A network_ref N/A id net N/A N/A address N/A network_ref N/A vpn_public_address N/A N/A network_ref N/A dhcp_server N/A N/A self _get_dhcp_ip context network_ref N/A mac_address N/A N/A self generate_mac_address N/A dev N/A N/A N/A self driver plug network_ref mac_address N/A N/A N/A N/A self driver initialize_gateway_device dev network_ref N/A N/A N/A address N/A FLAGS vpn_ip N/A hasattr N/A self driver ensure_vpn_forward N/A N/A N/A N/A N/A self driver ensure_vpn_forward N/A FLAGS vpn_ip N/A network_ref N/A vpn_public_port N/A network_ref N/A vpn_private_address N/A N/A N/A FLAGS fake_network N/A N/A N/A N/A N/A self driver update_dhcp context dev network_ref N/A N/A FLAGS use_ipv6 N/A N/A N/A N/A N/A self driver update_ra context dev network_ref N/A gateway N/A N/A utils get_my_linklocal dev N/A N/A N/A N/A self db network_update context N/A network_ref N/A id N/A gateway_v6 gateway N/A _get_networks_by_uuids N/A N/A self context network_uuids N/A N/A N/A N/A N/A N/A self db network_get_all_by_uuids context network_uuids N/A context project_id N/A _bottom_reserved_ips N/A N/A self N/A N/A N/A Number of reserved ips at the bottom of the range. N/A N/A N/A N/A super VlanManager self _bottom_reserved_ips 1 N/A property _top_reserved_ips N/A N/A self N/A N/A N/A Number of reserved ips at the top of the range. N/A parent_reserved N/A N/A super VlanManager self _top_reserved_ips N/A N/A parent_reserved N/A FLAGS cnt_vpn_clients N/A property N/A