diff --git a/neutron/service.py b/neutron/service.py index 448251c383a..cc76c0ba97b 100644 --- a/neutron/service.py +++ b/neutron/service.py @@ -32,6 +32,7 @@ from neutron.i18n import _LE, _LI from neutron import manager from neutron.openstack.common import loopingcall from neutron.openstack.common import service as common_service +from neutron import policy from neutron import wsgi @@ -286,6 +287,10 @@ class Service(n_rpc.Service): except Exception: LOG.exception(_LE("Exception occurs when waiting for timer")) + def reset(self): + config.setup_logging() + policy.refresh() + def periodic_tasks(self, raise_on_error=False): """Tasks to be run at a periodic interval.""" ctxt = context.get_admin_context()