'Ensure that the core plugin is deallocated.'

def cleanup_core_plugin(self):

    nm = manager.NeutronManager
    if (not nm.has_instance()):
        return
    agentschedulers_db.AgentSchedulerDbMixin.agent_notifiers = {}
    nm.clear_instance()
