Merge "Switch over to FixedIntervalLoopingCall"

changes/16/88516/1
Jenkins 9 years ago committed by Gerrit Code Review
commit 29091e65b9
  1. 3
      neutron/plugins/hyperv/agent/hyperv_neutron_agent.py
  2. 3
      neutron/plugins/mlnx/agent/eswitch_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):

@ -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):

Loading…
Cancel
Save