From f959395b1e03193f5cc01016899f95c0a2eefa6b Mon Sep 17 00:00:00 2001 From: Armando Migliaccio Date: Fri, 14 Oct 2016 10:54:55 -0700 Subject: [PATCH] Drop use of neutron's eventlet utility function Eventlet is banned from neutron-lib, therefore waiting for this method to be exported to neutron-lib means waiting for ever. Now one may argue that copying the method itself could be the way forward, but that assumes that the neutron-dynamic-routing code stands a chance to run on Windows. I suppose we can cross that bridge when we get to it, but as of now, using monkey patching without params is more than enough. This is one step of many to make at least one repo neutron free. Related-blueprint: neutron-lib Change-Id: I4a2da941c4bdfac3d443eb336191b698efa06af3 --- neutron_dynamic_routing/cmd/eventlet/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neutron_dynamic_routing/cmd/eventlet/__init__.py b/neutron_dynamic_routing/cmd/eventlet/__init__.py index 01f9f693..363e66cf 100644 --- a/neutron_dynamic_routing/cmd/eventlet/__init__.py +++ b/neutron_dynamic_routing/cmd/eventlet/__init__.py @@ -10,6 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from neutron.common import eventlet_utils +import eventlet -eventlet_utils.monkey_patch() + +eventlet.monkey_patch()