Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If CompareNotIn Str Call NameLoad NameLoad body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpBitOr NameLoad NameLoad With Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str keyword NameLoad body With AttributeLoad NameLoad attr NameStore body For NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A mock oslo_utils uuidutils neutron.agent.l3 dvr_snat_ns neutron.agent.l3 namespace_manager neutron.agent.l3 namespaces neutron.agent.linux ip_lib neutron.tests.functional base N/A _uuid N/A uuidutils generate_uuid NamespaceManagerTestFramework N/A N/A base BaseSudoTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super NamespaceManagerTestFramework self setUp N/A N/A self agent_conf N/A N/A mock MagicMock N/A N/A self metadata_driver_mock N/A N/A mock Mock N/A N/A self namespace_manager N/A N/A namespace_manager NamespaceManager N/A self agent_conf driver None metadata_driver N/A self metadata_driver_mock N/A _create_namespace N/A N/A self router_id ns_class N/A N/A N/A namespace N/A ns_class router_id N/A self agent_conf driver None use_ipv6 False N/A N/A N/A namespace create N/A N/A N/A self addCleanup N/A self _delete_namespace namespace N/A N/A namespace name N/A _delete_namespace N/A N/A self namespace N/A N/A N/A N/A N/A N/A N/A namespace delete N/A N/A N/A RuntimeError N/A e N/A N/A N/A No such file or directory N/A str e N/A N/A e N/A _namespace_exists N/A N/A self namespace N/A N/A N/A ip N/A N/A ip_lib IPWrapper namespace namespace N/A N/A N/A N/A ip netns exists namespace N/A N/A NamespaceManagerTestCase N/A NamespaceManagerTestFramework N/A test_namespace_manager N/A N/A self N/A N/A N/A router_id N/A _uuid N/A router_id_to_delete N/A _uuid N/A to_keep N/A set N/A to_delete N/A set N/A to_retrieve N/A set N/A N/A N/A to_keep add N/A N/A self _create_namespace router_id N/A namespaces RouterNamespace N/A N/A N/A to_keep add N/A N/A self _create_namespace router_id N/A dvr_snat_ns SnatNamespace N/A N/A N/A to_delete add N/A N/A self _create_namespace router_id_to_delete N/A dvr_snat_ns SnatNamespace N/A to_retrieve N/A to_keep to_delete N/A N/A N/A N/A mock patch object N/A namespace_manager NamespaceManager list_all return_value to_retrieve N/A N/A N/A self namespace_manager ns_manager N/A N/A ns_name to_keep N/A N/A id_to_keep N/A N/A N/A ns_manager get_prefix_and_id ns_name N/A 1 N/A N/A N/A ns_manager keep_router id_to_keep N/A ns_name to_keep N/A N/A N/A N/A self assertTrue N/A N/A self _namespace_exists ns_name N/A ns_name to_delete N/A N/A N/A N/A N/A N/A self metadata_driver_mock destroy_monitored_metadata_proxy assert_called_once_with N/A mock ANY router_id_to_delete N/A self agent_conf N/A N/A N/A self assertFalse N/A N/A self _namespace_exists ns_name N/A N/A