From: Dirk Mueller Date: Mon, 14 Apr 2014 15:08:37 +0000 (+0200) Subject: Switch over to FixedIntervalLoopingCall X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=70dd312aa55597789ace92cf8733985f1c31faab;p=openstack-build%2Fneutron-build.git Switch over to FixedIntervalLoopingCall LoopingCall has been renamed (without a change) to FixedIntervalLoopingCall in https://review.openstack.org/#/c/26345/ Adjust to the new name so that the compatibility code can be removed. Change-Id: I64f62dca5bee580dcd28860760208e9be8f4b659 Closes-Bug: #1307560 --- diff --git a/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py b/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py index c86626508..a913fe2fd 100644 --- a/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py +++ b/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py @@ -172,7 +172,8 @@ class HyperVNeutronAgent(object): self.context, self.plugin_rpc) report_interval = CONF.AGENT.report_interval if report_interval: - heartbeat = loopingcall.LoopingCall(self._report_state) + heartbeat = loopingcall.FixedIntervalLoopingCall( + self._report_state) heartbeat.start(interval=report_interval) def _load_physical_network_mappings(self): diff --git a/neutron/plugins/mlnx/agent/eswitch_neutron_agent.py b/neutron/plugins/mlnx/agent/eswitch_neutron_agent.py index 201692ce9..83ce00956 100644 --- a/neutron/plugins/mlnx/agent/eswitch_neutron_agent.py +++ b/neutron/plugins/mlnx/agent/eswitch_neutron_agent.py @@ -278,7 +278,8 @@ class MlnxEswitchNeutronAgent(sg_rpc.SecurityGroupAgentRpcMixin): report_interval = cfg.CONF.AGENT.report_interval if report_interval: - heartbeat = loopingcall.LoopingCall(self._report_state) + heartbeat = loopingcall.FixedIntervalLoopingCall( + self._report_state) heartbeat.start(interval=report_interval) def update_ports(self, registered_ports):