]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Switch over to FixedIntervalLoopingCall
authorDirk Mueller <dirk@dmllr.de>
Mon, 14 Apr 2014 15:08:37 +0000 (17:08 +0200)
committerDirk Mueller <dirk@dmllr.de>
Thu, 17 Apr 2014 15:32:44 +0000 (17:32 +0200)
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
neutron/plugins/mlnx/agent/eswitch_neutron_agent.py

index c86626508f1d29f19d69ad3590b314a5d0542a0d..a913fe2fd780f40dfcc607cbb04500aec794be27 100644 (file)
@@ -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):
index 201692ce91f82b0455c976de0961923290528928..83ce009563c3d130e3da6ee5d94a3ff0d60e9fc9 100644 (file)
@@ -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):