def destroy_instance(cls): inst = cls.get_instance() if not inst: return inst._vnc_amqp.close() for obj_cls in DBBaseDM.get_obj_type_map().values(): obj_cls.reset() DBBase.clear() cls._instance = None
def destroy_instance(cls): inst = cls.get_instance() if not inst: return inst._vnc_amqp.close() for obj_cls in DBBaseDM.get_obj_type_map().values(): obj_cls.reset() DBBase.clear() DMCassandraDB.clear_instance() inst._object_db = None cls._device_manager = None
def destroy_instance(cls): inst = cls.get_instance() if inst: inst._vnc_amqp.close() for obj_cls in ResourceBaseST.get_obj_type_map().values(): obj_cls.reset() DBBase.clear() if inst: inst._object_db = None cls._schema_transformer = None _zookeeper_client.stop()
def destroy_instance(cls): inst = cls.get_instance() if not inst: return inst._vnc_amqp.close() for obj_cls in DBBaseDM.get_obj_type_map().values(): obj_cls.reset() DBBase.clear() DMCassandraDB.clear_instance() inst._object_db = None cls._device_manager = None
def destroy_instance(cls): inst = cls.get_instance() if not inst: return inst._vnc_amqp.close() if PushConfigState.is_push_mode_ansible(): FabricManager.destroy_instance() for obj_cls in list(DBBaseDM.get_obj_type_map().values()): obj_cls.reset() DBBase.clear() DMCassandraDB.clear_instance() cls._instance = None
def destroy_instance(cls): inst = cls.get_instance() if not inst: return inst._vnc_amqp.close() if PushConfigState.is_push_mode_ansible(): FabricManager.destroy_instance() for obj_cls in DBBaseDM.get_obj_type_map().values(): obj_cls.reset() DBBase.clear() DMCassandraDB.clear_instance() cls._instance = None