From 70dd312aa55597789ace92cf8733985f1c31faab Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 14 Apr 2014 17:08:37 +0200 Subject: [PATCH] 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 --- neutron/plugins/hyperv/agent/hyperv_neutron_agent.py | 3 ++- neutron/plugins/mlnx/agent/eswitch_neutron_agent.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py b/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py index c86626508f1..a913fe2fd78 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 201692ce91f..83ce009563c 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):