OVSNeutronAgent.rpc_loop is always called with "polling_manager"

Furthermore, "polling_manager" cannot be retrieved like in [1].
"get_polling_manager" is a generator and must be used within a
context manager.

[1] e5726c7bda/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py (L2074-L2076)

Change-Id: I7a704f63fbfee770ee214e5f233134d17ff2d7a1
Closes-Bug: #1799748
This commit is contained in:
Rodolfo Alonso Hernandez 2018-10-24 17:48:19 +01:00
parent e5726c7bda
commit 60c50d9296
1 changed files with 1 additions and 5 deletions

View File

@ -2070,11 +2070,7 @@ class OVSNeutronAgent(l2population_rpc.L2populationRpcCallBackTunnelMixin,
polling_manager.stop()
polling_manager.start()
def rpc_loop(self, polling_manager=None, bridges_monitor=None):
if not polling_manager:
polling_manager = polling.get_polling_manager(
minimize_polling=False)
def rpc_loop(self, polling_manager, bridges_monitor=None):
sync = False
ports = set()
updated_ports_copy = set()