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
This commit is contained in:
parent
a3fc4a87f5
commit
472d251c44
@ -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…
Reference in New Issue
Block a user