summaryrefslogtreecommitdiffhomepage
path: root/bin/ryu-manager
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ryu-manager')
-rwxr-xr-xbin/ryu-manager15
1 files changed, 9 insertions, 6 deletions
diff --git a/bin/ryu-manager b/bin/ryu-manager
index d53906b1..1e8d3aa6 100755
--- a/bin/ryu-manager
+++ b/bin/ryu-manager
@@ -20,6 +20,15 @@ import gevent
from gevent import monkey
monkey.patch_all()
+# TODO:
+# Right now, we have our own patched copy of ovs python bindings
+# Once our modification is upstreamed and widely deployed,
+# use it
+#
+# NOTE: this modifies sys.path and thus affects the following imports.
+# eg. openstack.common.cfg.
+import ryu.contrib
+
from openstack.common import cfg
import logging
import sys
@@ -33,12 +42,6 @@ from ryu.app import wsgi
from ryu.base.app_manager import AppManager
from ryu.controller import controller
-# TODO:
-# Right now, we have our own patched copy of ovs python bindings
-# Once our modification is upstreamed and widely deployed,
-# use it
-import ryu.contrib
-
CONF = cfg.CONF
CONF.register_cli_opts([