diff --git a/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py b/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py index c86626508f..a913fe2fd7 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 201692ce91..83ce009563 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):