summaryrefslogtreecommitdiffhomepage
path: root/bin/ryu-manager
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ryu-manager')
-rwxr-xr-xbin/ryu-manager11
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/ryu-manager b/bin/ryu-manager
index d9cc8059..62188dea 100755
--- a/bin/ryu-manager
+++ b/bin/ryu-manager
@@ -16,9 +16,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import gevent
-from gevent import monkey
-monkey.patch_all()
+from ryu.lib import hub
+hub.patch()
# TODO:
# Right now, we have our own patched copy of ovs python bindings
@@ -69,16 +68,16 @@ def main():
services = []
ctlr = controller.OpenFlowController()
- thr = gevent.spawn_later(0, ctlr)
+ thr = hub.spawn(ctlr)
services.append(thr)
webapp = wsgi.start_service(app_mgr)
if webapp:
- thr = gevent.spawn_later(0, webapp)
+ thr = hub.spawn(webapp)
services.append(thr)
try:
- gevent.joinall(services)
+ hub.joinall(services)
finally:
app_mgr.close()