Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Call AttributeLoad NameLoad attr Str keyword Str keyword Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword Str keyword Str decorator_list ClassDef bases AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Str keyword Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If NameLoad body Assign NameStore BinOpMod Call NameLoad Str Dict Str Str NameLoad NameLoad Raise Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str For NameStore AttributeLoad NameLoad attr body If NameLoad body Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body If BoolOpAnd UnaryOpNot NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryFinally body With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Dict Str ListLoad NameLoad finalbody If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Str UnaryOpNot AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd CompareEq SubscriptLoad NameLoad Index Str Str CompareIn Str NameLoad body Raise Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Dict Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call NameLoad keyword BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Return Assign NameStore Call NameLoad NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return ListLoad NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Return ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIs SubscriptLoad NameLoad Index Str NameLoad CompareIs SubscriptLoad NameLoad Index Str NameLoad body Return If UnaryOpNot SubscriptLoad NameLoad Index Str body Raise Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpOr CompareEq SubscriptLoad NameLoad Index Str Num CompareEq SubscriptLoad NameLoad Index Str Num body Raise Call AttributeLoad NameLoad attr keyword Num orelse If BoolOpAnd CompareIsNot SubscriptLoad NameLoad Index Str NameLoad CompareIsNot SubscriptLoad NameLoad Index Str NameLoad CompareLtE SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Pass orelse Raise Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad AttributeLoad NameLoad attr body For TupleStore NameStore NameStore ListLoad TupleLoad Str Str TupleLoad Str Str body If BoolOpAnd CompareIsNot SubscriptLoad NameLoad Index NameLoad NameLoad UnaryOpNot CompareLtELtE Num SubscriptLoad NameLoad Index NameLoad Num body Raise Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index NameLoad If BoolOpAnd CompareIs SubscriptLoad NameLoad Index Str NameLoad CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn SubscriptLoad NameLoad Index Str ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareGt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareGt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Raise Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Dict Str Str 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 SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Dict Str Str Str ListLoad SubscriptLoad NameLoad Index Str ListLoad SubscriptLoad NameLoad Index Str ListLoad SubscriptLoad NameLoad Index Str Assign NameStore ListLoad Str Str Str Str Str Str Str For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Return CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body Assign NameStore NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body If NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore BinOpAdd Call NameLoad NameLoad ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore CompareEq Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareEq NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str BinOpMod Str AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr CompareEq AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr ListLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr BoolOpOr BoolOpAnd NameLoad Call NameLoad NameLoad ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword NameLoad attr Return SubscriptLoad NameLoad Index Str handlers ExceptHandler type AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Dict Str Str Str Str NameLoad Call NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Return SubscriptLoad NameLoad Index Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str ListLoad NameLoad Assign NameStore Call NameLoad GeneratorExp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr NameLoad keyword ListLoad Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpSub NameLoad NameLoad If NameLoad body Raise Call AttributeLoad NameLoad attr keyword Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str If UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr ListLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIn AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str UnaryOpNot BoolOpAnd Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index AttributeLoad NameLoad attr CompareNotEq SubscriptLoad SubscriptLoad NameLoad Index Str Index AttributeLoad NameLoad attr ListLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIn AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str BoolOpAnd Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index AttributeLoad NameLoad attr CompareNotEq SubscriptLoad SubscriptLoad NameLoad Index Str Index AttributeLoad NameLoad attr ListLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpAnd CompareIn AttributeLoad NameLoad attr NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad NameLoad Index AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore NameLoad orelse Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A netaddr neutron_lib.api validators neutron_lib constants oslo_db exception db_exc oslo_log log logging oslo_utils uuidutils N/A sqlalchemy sa sqlalchemy orm sqlalchemy.orm exc sqlalchemy.orm scoped_session neutron._i18n _ neutron.api.v2 attributes neutron.callbacks events neutron.callbacks exceptions neutron.callbacks registry neutron.callbacks resources neutron.common constants n_const neutron.common utils neutron.db api db_api neutron.db db_base_plugin_v2 neutron.db model_base neutron.db models_v2 neutron.extensions securitygroup ext_sg N/A LOG N/A N/A logging getLogger __name__ SecurityGroup N/A N/A model_base HasStandardAttributes N/A model_base BASEV2 N/A model_base HasId N/A model_base HasTenant N/A N/A Represents a v2 neutron security group. N/A name N/A N/A sa Column N/A N/A sa String N/A attributes NAME_MAX_LEN N/A DefaultSecurityGroup N/A N/A model_base BASEV2 N/A N/A __tablename__ default_security_group N/A tenant_id N/A N/A sa Column N/A N/A sa String N/A attributes TENANT_ID_MAX_LEN primary_key True nullable False N/A security_group_id N/A N/A sa Column N/A N/A sa String 36 N/A N/A sa ForeignKey securitygroups.id ondelete CASCADE nullable False N/A security_group N/A N/A orm relationship SecurityGroup lazy joined backref N/A N/A orm backref default_security_group cascade all,delete primaryjoin SecurityGroup.id==DefaultSecurityGroup.security_group_id N/A SecurityGroupPortBinding N/A N/A model_base BASEV2 N/A N/A Represents binding between neutron ports and security profiles. N/A port_id N/A N/A sa Column N/A N/A sa String 36 N/A N/A sa ForeignKey ports.id ondelete CASCADE primary_key True N/A security_group_id N/A N/A sa Column N/A N/A sa String 36 N/A N/A sa ForeignKey securitygroups.id primary_key True N/A ports N/A N/A orm relationship N/A models_v2 Port backref N/A N/A orm backref security_groups lazy joined cascade delete N/A SecurityGroupRule N/A N/A model_base HasStandardAttributes N/A model_base BASEV2 N/A model_base HasId N/A model_base HasTenant N/A N/A Represents a v2 neutron security group rule. N/A security_group_id N/A N/A sa Column N/A N/A sa String 36 N/A N/A sa ForeignKey securitygroups.id ondelete CASCADE nullable False N/A remote_group_id N/A N/A sa Column N/A N/A sa String 36 N/A N/A sa ForeignKey securitygroups.id ondelete CASCADE nullable True N/A direction N/A N/A sa Column N/A N/A sa Enum ingress egress name securitygrouprules_direction N/A ethertype N/A N/A sa Column N/A N/A sa String 40 N/A protocol N/A N/A sa Column N/A N/A sa String 40 N/A port_range_min N/A N/A sa Column N/A sa Integer N/A port_range_max N/A N/A sa Column N/A sa Integer N/A remote_ip_prefix N/A N/A sa Column N/A N/A sa String 255 N/A security_group N/A N/A orm relationship SecurityGroup backref N/A N/A orm backref rules cascade all,delete lazy joined primaryjoin SecurityGroup.id==SecurityGroupRule.security_group_id N/A source_group N/A N/A orm relationship SecurityGroup backref N/A N/A orm backref source_rules cascade all,delete primaryjoin SecurityGroup.id==SecurityGroupRule.remote_group_id N/A SecurityGroupDbMixin N/A N/A ext_sg SecurityGroupPluginBase N/A N/A Mixin class to add security group to db_base_plugin_v2. N/A __native_bulk_support True create_security_group_bulk N/A N/A self context security_group_rule N/A N/A N/A N/A N/A self _create_bulk security_group context security_group_rule N/A _registry_notify N/A N/A self res event id exc_cls N/A None None kwargs N/A N/A N/A N/A N/A N/A registry notify res event self kwargs N/A N/A N/A N/A exceptions CallbackFailure N/A e N/A N/A exc_cls N/A N/A reason N/A N/A _ cannot perform %(event)s due to %(reason)s N/A event reason event e N/A N/A exc_cls reason reason id id N/A create_security_group N/A N/A self context security_group default_sg N/A False N/A N/A Create security group.

        If default_sg is true that means we are a default security group for
        a given tenant if it does not exist.
         N/A s N/A security_group N/A security_group N/A kwargs N/A context security_group is_default context s default_sg N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP N/A events BEFORE_CREATE exc_cls N/A ext_sg SecurityGroupConflict kwargs N/A tenant_id N/A s N/A tenant_id N/A N/A default_sg N/A N/A N/A N/A self _ensure_default_security_group context tenant_id N/A N/A N/A db_api autonested_transaction N/A context session N/A N/A security_group_db N/A SecurityGroup id N/A N/A N/A s get id N/A N/A uuidutils generate_uuid description N/A s N/A description tenant_id tenant_id name N/A s N/A name N/A N/A N/A N/A context session add security_group_db N/A default_sg N/A N/A N/A N/A N/A context session add N/A DefaultSecurityGroup security_group security_group_db tenant_id N/A security_group_db N/A tenant_id N/A ethertype N/A ext_sg sg_supported_ethertypes N/A N/A default_sg N/A N/A ingress_rule N/A SecurityGroupRule id N/A N/A uuidutils generate_uuid tenant_id tenant_id security_group security_group_db direction ingress ethertype ethertype source_group security_group_db N/A N/A N/A N/A context session add ingress_rule N/A egress_rule N/A SecurityGroupRule id N/A N/A uuidutils generate_uuid tenant_id tenant_id security_group security_group_db direction egress ethertype ethertype N/A N/A N/A N/A context session add egress_rule N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP N/A events PRECOMMIT_CREATE exc_cls N/A ext_sg SecurityGroupConflict kwargs N/A secgroup_dict N/A N/A self _make_security_group_dict security_group_db N/A N/A kwargs N/A security_group secgroup_dict N/A N/A N/A registry notify N/A resources SECURITY_GROUP N/A events AFTER_CREATE self kwargs N/A secgroup_dict N/A get_security_groups N/A N/A self context filters fields sorts limit marker page_reverse default_sg N/A None None None None None False False N/A N/A N/A N/A default_sg N/A context tenant_id N/A N/A tenant_id N/A N/A filters get tenant_id N/A tenant_id N/A N/A tenant_id N/A tenant_id N/A 0 N/A N/A tenant_id N/A context tenant_id N/A N/A N/A self _ensure_default_security_group context tenant_id N/A marker_obj N/A N/A self _get_marker_obj context security_group limit marker N/A N/A N/A self _get_collection context SecurityGroup N/A self _make_security_group_dict filters filters fields fields sorts sorts limit limit marker_obj marker_obj page_reverse page_reverse N/A get_security_groups_count N/A N/A self context filters N/A None N/A N/A N/A N/A self _get_collection_count context SecurityGroup filters filters N/A get_security_group N/A N/A self context id fields tenant_id N/A None None N/A N/A Tenant id is given to handle the case when creating a security
        group rule on behalf of another use.
         N/A tenant_id N/A N/A tmp_context_tenant_id N/A context tenant_id N/A N/A context tenant_id tenant_id N/A N/A N/A N/A N/A N/A context session begin subtransactions True N/A N/A ret N/A N/A self _make_security_group_dict N/A N/A self _get_security_group context id fields N/A N/A ret N/A security_group_rules N/A N/A self get_security_group_rules context N/A security_group_id N/A id N/A N/A tenant_id N/A N/A N/A context tenant_id tmp_context_tenant_id N/A ret N/A _get_security_group N/A N/A self context id N/A N/A N/A N/A N/A query N/A N/A self _model_query context SecurityGroup N/A sg N/A N/A N/A N/A query filter N/A N/A SecurityGroup id id one N/A N/A N/A N/A exc NoResultFound N/A N/A N/A N/A ext_sg SecurityGroupNotFound id id N/A sg N/A delete_security_group N/A N/A self context id N/A N/A N/A filters N/A security_group_id N/A id N/A ports N/A N/A self _get_port_security_group_bindings context filters N/A ports N/A N/A N/A N/A ext_sg SecurityGroupInUse id id N/A sg N/A N/A self _get_security_group context id N/A N/A N/A N/A sg N/A name default N/A N/A context is_admin N/A N/A N/A N/A ext_sg SecurityGroupCannotRemoveDefault N/A kwargs N/A context security_group_id security_group context id sg N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP N/A events BEFORE_DELETE exc_cls N/A ext_sg SecurityGroupInUse id id kwargs N/A N/A N/A N/A context session begin subtransactions True N/A N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP N/A events PRECOMMIT_DELETE exc_cls N/A ext_sg SecurityGroupInUse id id kwargs N/A N/A N/A N/A context session delete sg N/A N/A N/A kwargs pop security_group N/A N/A N/A registry notify N/A resources SECURITY_GROUP N/A events AFTER_DELETE self kwargs N/A update_security_group N/A N/A self context id security_group N/A N/A N/A s N/A security_group N/A security_group N/A kwargs N/A context security_group_id security_group context id s N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP N/A events BEFORE_UPDATE exc_cls N/A ext_sg SecurityGroupConflict kwargs N/A N/A N/A N/A context session begin subtransactions True N/A N/A sg N/A N/A self _get_security_group context id N/A N/A N/A N/A sg N/A name default N/A name s N/A N/A N/A N/A ext_sg SecurityGroupCannotUpdateDefault N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP N/A events PRECOMMIT_UPDATE exc_cls N/A ext_sg SecurityGroupConflict kwargs N/A N/A N/A sg update s N/A sg_dict N/A N/A self _make_security_group_dict sg N/A N/A kwargs N/A security_group sg_dict N/A N/A N/A registry notify N/A resources SECURITY_GROUP N/A events AFTER_UPDATE self kwargs N/A sg_dict N/A _make_security_group_dict N/A N/A self security_group fields N/A None N/A N/A res N/A id name tenant_id description N/A security_group N/A id N/A security_group N/A name N/A security_group N/A tenant_id N/A security_group N/A description N/A N/A res N/A security_group_rules N/A N/A N/A self _make_security_group_rule_dict r N/A r N/A security_group rules N/A N/A N/A self _apply_dict_extend_functions N/A ext_sg SECURITYGROUPS res security_group N/A N/A N/A self _fields res fields N/A _make_security_group_binding_dict N/A N/A self security_group fields N/A None N/A N/A res N/A port_id security_group_id N/A security_group N/A port_id N/A security_group N/A security_group_id N/A N/A N/A self _fields res fields N/A _create_port_security_group_binding N/A N/A self context port_id security_group_id N/A N/A N/A N/A N/A N/A context session begin subtransactions True N/A N/A db N/A SecurityGroupPortBinding port_id port_id security_group_id security_group_id N/A N/A N/A N/A context session add db N/A _get_port_security_group_bindings N/A N/A self context filters fields N/A None None N/A N/A N/A N/A self _get_collection context SecurityGroupPortBinding N/A self _make_security_group_binding_dict filters filters fields fields N/A _delete_port_security_group_bindings N/A N/A self context port_id N/A N/A N/A query N/A N/A self _model_query context SecurityGroupPortBinding N/A bindings N/A N/A query filter N/A N/A SecurityGroupPortBinding port_id port_id N/A N/A N/A N/A context session begin subtransactions True N/A N/A binding bindings N/A N/A N/A N/A N/A context session delete binding N/A create_security_group_rule_bulk N/A N/A self context security_group_rules N/A N/A N/A N/A N/A self _create_bulk security_group_rule context security_group_rules N/A create_security_group_rule_bulk_native N/A N/A self context security_group_rules N/A N/A N/A rules N/A security_group_rules N/A security_group_rules N/A N/A scoped_session N/A context session N/A security_group_id N/A N/A self _validate_security_group_rules context security_group_rules N/A N/A N/A N/A context session begin subtransactions True N/A N/A N/A N/A N/A self get_security_group context security_group_id N/A N/A N/A N/A ext_sg SecurityGroupNotFound id security_group_id N/A N/A N/A self _check_for_duplicate_rules context rules N/A ret N/A N/A rule_dict rules N/A N/A res_rule_dict N/A N/A self _create_security_group_rule context rule_dict validate False N/A N/A N/A ret append res_rule_dict N/A ret N/A create_security_group_rule N/A N/A self context security_group_rule N/A N/A N/A N/A N/A self _create_security_group_rule context security_group_rule N/A _create_security_group_rule N/A N/A self context security_group_rule validate N/A True N/A N/A validate N/A N/A N/A N/A self _validate_security_group_rule context security_group_rule N/A N/A N/A self _check_for_duplicate_rules_in_db context security_group_rule N/A rule_dict N/A security_group_rule N/A security_group_rule N/A kwargs N/A context security_group_rule context rule_dict N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP_RULE N/A events BEFORE_CREATE exc_cls N/A ext_sg SecurityGroupConflict kwargs N/A N/A N/A N/A context session begin subtransactions True N/A N/A db N/A SecurityGroupRule id N/A N/A N/A rule_dict get id N/A N/A uuidutils generate_uuid tenant_id N/A rule_dict N/A tenant_id security_group_id N/A rule_dict N/A security_group_id direction N/A rule_dict N/A direction remote_group_id N/A N/A rule_dict get remote_group_id ethertype N/A rule_dict N/A ethertype protocol N/A rule_dict N/A protocol port_range_min N/A rule_dict N/A port_range_min port_range_max N/A rule_dict N/A port_range_max remote_ip_prefix N/A N/A rule_dict get remote_ip_prefix description N/A N/A rule_dict get description N/A N/A N/A N/A context session add db N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP_RULE N/A events PRECOMMIT_CREATE exc_cls N/A ext_sg SecurityGroupConflict kwargs N/A res_rule_dict N/A N/A self _make_security_group_rule_dict db N/A N/A kwargs N/A security_group_rule res_rule_dict N/A N/A N/A registry notify N/A resources SECURITY_GROUP_RULE N/A events AFTER_CREATE self kwargs N/A res_rule_dict N/A _get_ip_proto_number N/A N/A self protocol N/A N/A N/A N/A protocol None N/A N/A N/A N/A protocol N/A n_const IP_PROTOCOL_NAME_ALIASES N/A N/A protocol N/A N/A n_const IP_PROTOCOL_NAME_ALIASES N/A protocol N/A N/A int N/A N/A N/A constants IP_PROTOCOL_MAP get protocol protocol N/A _get_ip_proto_name_and_num N/A N/A self protocol N/A N/A N/A N/A protocol None N/A N/A N/A protocol N/A str protocol N/A N/A protocol N/A constants IP_PROTOCOL_MAP N/A N/A N/A protocol N/A str N/A N/A N/A constants IP_PROTOCOL_MAP get protocol N/A N/A N/A protocol N/A n_const IP_PROTOCOL_NUM_TO_NAME_MAP N/A N/A N/A N/A N/A N/A n_const IP_PROTOCOL_NUM_TO_NAME_MAP get protocol protocol N/A N/A protocol protocol N/A _validate_port_range N/A N/A self rule N/A N/A N/A Check that port_range is valid. N/A N/A N/A N/A rule N/A port_range_min None N/A N/A rule N/A port_range_max None N/A N/A N/A N/A N/A rule N/A protocol N/A N/A N/A N/A ext_sg SecurityGroupProtocolRequiredWithPorts N/A ip_proto N/A N/A self _get_ip_proto_number N/A rule N/A protocol N/A N/A ip_proto N/A N/A constants PROTO_NUM_TCP N/A constants PROTO_NUM_UDP N/A N/A N/A N/A N/A rule N/A port_range_min 0 N/A N/A rule N/A port_range_max 0 N/A N/A N/A N/A ext_sg SecurityGroupInvalidPortValue port 0 N/A N/A N/A N/A N/A rule N/A port_range_min None N/A N/A rule N/A port_range_max None N/A N/A rule N/A port_range_min N/A rule N/A port_range_max N/A N/A N/A N/A N/A N/A ext_sg SecurityGroupInvalidPortRange N/A N/A N/A ip_proto N/A constants PROTO_NUM_ICMP N/A N/A N/A attr field N/A N/A port_range_min type N/A port_range_max code N/A N/A N/A N/A N/A rule N/A attr None N/A N/A 0 N/A rule N/A attr 255 N/A N/A N/A N/A ext_sg SecurityGroupInvalidIcmpValue field field attr attr value N/A rule N/A attr N/A N/A N/A N/A rule N/A port_range_min None N/A N/A rule N/A port_range_max None N/A N/A N/A N/A ext_sg SecurityGroupMissingIcmpType value N/A rule N/A port_range_max N/A _validate_ethertype_and_protocol N/A N/A self rule N/A N/A N/A Check if given ethertype and  protocol are valid or not N/A N/A N/A rule N/A protocol N/A N/A constants PROTO_NAME_IPV6_ENCAP N/A constants PROTO_NAME_IPV6_FRAG N/A constants PROTO_NAME_IPV6_ICMP N/A n_const PROTO_NAME_IPV6_ICMP_LEGACY N/A constants PROTO_NAME_IPV6_NONXT N/A constants PROTO_NAME_IPV6_OPTS N/A constants PROTO_NAME_IPV6_ROUTE N/A N/A N/A N/A rule N/A ethertype N/A constants IPv4 N/A N/A N/A N/A ext_sg SecurityGroupEthertypeConflictWithProtocol ethertype N/A rule N/A ethertype protocol N/A rule N/A protocol N/A _validate_single_tenant_and_group N/A N/A self security_group_rules N/A N/A N/A Check that all rules belong to the same security group and tenant
         N/A sg_groups N/A set N/A tenants N/A set N/A rule_dict N/A security_group_rules N/A security_group_rules N/A N/A rule N/A rule_dict N/A security_group_rule N/A N/A N/A sg_groups add N/A rule N/A security_group_id N/A N/A N/A len sg_groups 1 N/A N/A N/A N/A ext_sg SecurityGroupNotSingleGroupRules N/A N/A N/A tenants add N/A rule N/A tenant_id N/A N/A N/A len tenants 1 N/A N/A N/A N/A ext_sg SecurityGroupRulesNotSingleTenant N/A N/A N/A sg_groups pop N/A _validate_security_group_rule N/A N/A self context security_group_rule N/A N/A N/A rule N/A security_group_rule N/A security_group_rule N/A N/A N/A self _validate_port_range rule N/A N/A N/A self _validate_ip_prefix rule N/A N/A N/A self _validate_ethertype_and_protocol rule N/A N/A N/A rule N/A remote_ip_prefix N/A rule N/A remote_group_id N/A N/A N/A N/A ext_sg SecurityGroupRemoteGroupAndRemoteIpPrefix N/A remote_group_id N/A rule N/A remote_group_id N/A remote_group_id N/A N/A N/A N/A self get_security_group context remote_group_id tenant_id N/A rule N/A tenant_id N/A security_group_id N/A rule N/A security_group_id N/A N/A N/A self get_security_group context security_group_id tenant_id N/A rule N/A tenant_id N/A security_group_id N/A _validate_security_group_rules N/A N/A self context security_group_rules N/A N/A N/A sg_id N/A N/A self _validate_single_tenant_and_group security_group_rules N/A rule N/A security_group_rules N/A security_group_rules N/A N/A N/A N/A self _validate_security_group_rule context rule N/A sg_id N/A _make_security_group_rule_dict N/A N/A self security_group_rule fields N/A None N/A N/A res N/A id tenant_id security_group_id ethertype direction protocol port_range_min port_range_max remote_ip_prefix remote_group_id N/A security_group_rule N/A id N/A security_group_rule N/A tenant_id N/A security_group_rule N/A security_group_id N/A security_group_rule N/A ethertype N/A security_group_rule N/A direction N/A security_group_rule N/A protocol N/A security_group_rule N/A port_range_min N/A security_group_rule N/A port_range_max N/A security_group_rule N/A remote_ip_prefix N/A security_group_rule N/A remote_group_id N/A N/A N/A self _apply_dict_extend_functions N/A ext_sg SECURITYGROUPRULES res security_group_rule N/A N/A N/A self _fields res fields N/A _make_security_group_rule_filter_dict N/A N/A self security_group_rule N/A N/A N/A sgr N/A security_group_rule N/A security_group_rule N/A res N/A tenant_id security_group_id direction N/A N/A sgr N/A tenant_id N/A N/A sgr N/A security_group_id N/A N/A sgr N/A direction N/A include_if_present N/A protocol port_range_max port_range_min ethertype remote_ip_prefix remote_group_id description N/A key include_if_present N/A N/A value N/A N/A sgr get key N/A value N/A N/A N/A res N/A key N/A value N/A value N/A N/A sgr get protocol N/A value N/A N/A N/A res N/A protocol N/A N/A self _get_ip_proto_name_and_num value N/A res N/A _rules_equal N/A N/A self rule1 rule2 N/A N/A N/A Determines if two rules are equal ignoring id field. N/A rule1_copy N/A N/A rule1 copy N/A rule2_copy N/A N/A rule2 copy N/A N/A N/A rule1_copy pop id None N/A N/A N/A rule2_copy pop id None N/A N/A rule1_copy rule2_copy N/A _check_for_duplicate_rules N/A N/A self context security_group_rules N/A N/A N/A i security_group_rules N/A N/A found_self False N/A j security_group_rules N/A N/A N/A N/A self _rules_equal N/A i N/A security_group_rule N/A j N/A security_group_rule N/A N/A found_self N/A N/A N/A N/A ext_sg DuplicateSecurityGroupRuleInPost rule i N/A found_self True N/A N/A N/A self _check_for_duplicate_rules_in_db context i N/A _check_for_duplicate_rules_in_db N/A N/A self context security_group_rule N/A N/A N/A filters N/A N/A self _make_security_group_rule_filter_dict security_group_rule N/A keys N/A N/A N/A security_group_rule N/A security_group_rule keys N/A fields N/A N/A list keys N/A id N/A db_rules N/A N/A self get_security_group_rules context filters fields fields N/A rule_dict N/A N/A N/A security_group_rule N/A security_group_rule copy N/A N/A N/A rule_dict pop id None N/A sg_protocol N/A N/A rule_dict pop protocol None N/A db_rule db_rules N/A N/A rule_id N/A N/A db_rule pop id None N/A db_protocol N/A N/A db_rule pop protocol None N/A is_protocol_matching N/A N/A N/A self _get_ip_proto_name_and_num db_protocol N/A N/A self _get_ip_proto_name_and_num sg_protocol N/A N/A is_protocol_matching N/A rule_dict db_rule N/A N/A N/A N/A ext_sg SecurityGroupRuleExists rule_id rule_id N/A _validate_ip_prefix N/A N/A self rule N/A N/A N/A Check that a valid cidr was specified as remote_ip_prefix

        No need to check that it is in fact an IP address as this is already
        validated by attribute validators.
        Check that rule ethertype is consistent with remote_ip_prefix ip type.
        Add mask to ip_prefix if absent (192.168.1.10 -> 192.168.1.10/32).
         N/A input_prefix N/A rule N/A remote_ip_prefix N/A input_prefix N/A N/A addr N/A N/A netaddr IPNetwork input_prefix N/A N/A rule N/A remote_ip_prefix N/A str addr N/A N/A N/A rule N/A ethertype N/A IPv%d N/A addr version N/A N/A N/A N/A ext_sg SecurityGroupRuleParameterConflict ethertype N/A rule N/A ethertype cidr input_prefix N/A get_security_group_rules N/A N/A self context filters fields sorts limit marker page_reverse N/A None None None None None False N/A N/A marker_obj N/A N/A self _get_marker_obj context security_group_rule limit marker N/A N/A N/A self _get_collection context SecurityGroupRule N/A self _make_security_group_rule_dict filters filters fields fields sorts sorts limit limit marker_obj marker_obj page_reverse page_reverse N/A get_security_group_rules_count N/A N/A self context filters N/A None N/A N/A N/A N/A self _get_collection_count context SecurityGroupRule filters filters N/A get_security_group_rule N/A N/A self context id fields N/A None N/A N/A security_group_rule N/A N/A self _get_security_group_rule context id N/A N/A N/A self _make_security_group_rule_dict security_group_rule fields N/A _get_security_group_rule N/A N/A self context id N/A N/A N/A N/A N/A query N/A N/A self _model_query context SecurityGroupRule N/A sgr N/A N/A N/A N/A query filter N/A N/A SecurityGroupRule id id one N/A N/A N/A N/A exc NoResultFound N/A N/A N/A N/A ext_sg SecurityGroupRuleNotFound id id N/A sgr N/A delete_security_group_rule N/A N/A self context id N/A N/A N/A kwargs N/A context security_group_rule_id context id N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP_RULE N/A events BEFORE_DELETE id id exc_cls N/A ext_sg SecurityGroupRuleInUse kwargs N/A N/A N/A N/A context session begin subtransactions True N/A N/A query N/A N/A N/A N/A self _model_query context SecurityGroupRule filter N/A N/A SecurityGroupRule id id N/A N/A N/A self _registry_notify N/A resources SECURITY_GROUP_RULE N/A events PRECOMMIT_DELETE exc_cls N/A ext_sg SecurityGroupRuleInUse id id kwargs N/A N/A N/A N/A N/A N/A context session delete N/A N/A query one N/A N/A N/A N/A exc NoResultFound N/A N/A N/A N/A ext_sg SecurityGroupRuleNotFound id id N/A N/A N/A registry notify N/A resources SECURITY_GROUP_RULE N/A events AFTER_DELETE self kwargs N/A _extend_port_dict_security_group N/A N/A self port_res port_db N/A N/A N/A security_group_ids N/A N/A sec_group_mapping N/A security_group_id N/A sec_group_mapping N/A port_db security_groups N/A N/A port_res N/A N/A ext_sg SECURITYGROUPS security_group_ids N/A port_res N/A N/A N/A N/A N/A db_base_plugin_v2 NeutronDbPluginV2 register_dict_extend_funcs N/A attributes PORTS N/A _extend_port_dict_security_group _process_port_create_security_group N/A N/A self context port security_group_ids N/A N/A N/A N/A N/A validators is_attr_set security_group_ids N/A N/A security_group_id security_group_ids N/A N/A N/A N/A self _create_port_security_group_binding context N/A port N/A id security_group_id N/A N/A port N/A N/A ext_sg SECURITYGROUPS N/A N/A security_group_ids N/A list security_group_ids N/A N/A _ensure_default_security_group N/A N/A self context tenant_id N/A N/A N/A Create a default security group if one doesn't exist.

        :returns: the default security group id for given tenant.
         N/A N/A N/A query N/A N/A self _model_query context DefaultSecurityGroup N/A default_group N/A N/A N/A N/A query filter_by tenant_id tenant_id one N/A N/A default_group N/A security_group_id N/A N/A N/A N/A exc NoResultFound N/A N/A N/A N/A self _create_default_security_group context tenant_id N/A _create_default_security_group N/A N/A self context tenant_id N/A N/A N/A security_group N/A security_group N/A name tenant_id description default tenant_id N/A _ Default security group N/A N/A N/A security_group N/A N/A self create_security_group context security_group default_sg True N/A N/A security_group N/A id N/A N/A N/A N/A db_exc DBDuplicateEntry N/A ex N/A N/A N/A N/A LOG debug Duplicate default security group %s was not created N/A ex value N/A N/A N/A db_exc RetryRequest ex N/A _get_security_groups_on_port N/A N/A self context port N/A N/A N/A Check that all security groups on port belong to tenant.

        :returns: all security groups IDs on port belonging to tenant.
         N/A port N/A port N/A port N/A N/A N/A N/A validators is_attr_set N/A N/A port get N/A ext_sg SECURITYGROUPS N/A N/A N/A N/A N/A N/A port get device_owner N/A N/A utils is_port_trusted port N/A N/A N/A port_sg N/A N/A port get N/A ext_sg SECURITYGROUPS N/A N/A filters N/A id port_sg N/A tenant_id N/A N/A port get tenant_id N/A tenant_id N/A N/A N/A filters N/A tenant_id N/A tenant_id N/A valid_groups N/A set N/A N/A g N/A id N/A g N/A N/A self get_security_groups context fields N/A id filters filters N/A requested_groups N/A set port_sg N/A port_sg_missing N/A requested_groups valid_groups N/A port_sg_missing N/A N/A N/A N/A ext_sg SecurityGroupNotFound id N/A N/A ,  join port_sg_missing N/A requested_groups N/A _ensure_default_security_group_on_port N/A N/A self context port N/A N/A N/A port N/A port N/A port N/A N/A N/A N/A port get device_owner N/A N/A utils is_port_trusted port N/A N/A N/A default_sg N/A N/A self _ensure_default_security_group context N/A port N/A tenant_id N/A N/A N/A N/A validators is_attr_set N/A N/A port get N/A ext_sg SECURITYGROUPS N/A N/A N/A port N/A N/A ext_sg SECURITYGROUPS N/A default_sg N/A _check_update_deletes_security_groups N/A N/A self port N/A N/A N/A Return True if port has as a security group and it's value
        is either [] or not is_attr_set, otherwise return False
         N/A N/A N/A N/A ext_sg SECURITYGROUPS N/A port N/A port N/A N/A N/A N/A validators is_attr_set N/A N/A port N/A port N/A N/A ext_sg SECURITYGROUPS N/A N/A N/A port N/A port N/A N/A ext_sg SECURITYGROUPS N/A N/A N/A True N/A False N/A _check_update_has_security_groups N/A N/A self port N/A N/A N/A Return True if port has security_groups attribute set and
        its not empty, or False otherwise.
        This method is called both for port create and port update.
         N/A N/A N/A N/A ext_sg SECURITYGROUPS N/A port N/A port N/A N/A N/A validators is_attr_set N/A N/A port N/A port N/A N/A ext_sg SECURITYGROUPS N/A N/A N/A port N/A port N/A N/A ext_sg SECURITYGROUPS N/A N/A N/A True N/A False N/A update_security_group_on_port N/A N/A self context id port original_port updated_port N/A N/A N/A Update security groups on port.

        This method returns a flag which indicates request notification
        is required and does not perform notification itself.
        It is because another changes for the port may require notification.
         N/A need_notify False N/A port_updates N/A port N/A port N/A N/A N/A N/A ext_sg SECURITYGROUPS port_updates N/A N/A N/A utils compare_elements N/A N/A original_port get N/A ext_sg SECURITYGROUPS N/A port_updates N/A N/A ext_sg SECURITYGROUPS N/A N/A N/A port_updates N/A N/A ext_sg SECURITYGROUPS N/A N/A self _get_security_groups_on_port context port N/A N/A N/A self _delete_port_security_group_bindings context id N/A N/A N/A self _process_port_create_security_group context updated_port N/A port_updates N/A N/A ext_sg SECURITYGROUPS N/A need_notify True N/A N/A N/A updated_port N/A N/A ext_sg SECURITYGROUPS N/A original_port N/A N/A ext_sg SECURITYGROUPS N/A need_notify N/A N/A