From cafb17781b0666f88dc9cddd24c3e2f946062b46 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Fri, 22 Nov 2013 22:04:16 -0800 Subject: [PATCH] fix the regression due to e45f382e51c9a3d57a6d8c01cec9e70f7ca364fd OFcontroller is not started due to: e45f382e51c9a3d57a6d8c01cec9e70f7ca364fd Author: Isaku Yamahata Date: Fri Nov 22 16:45:59 2013 +0900 Signed-off-by: FUJITA Tomonori --- ryu/controller/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/controller/controller.py b/ryu/controller/controller.py index 2bb43f98..5d71d3c5 100644 --- a/ryu/controller/controller.py +++ b/ryu/controller/controller.py @@ -325,6 +325,6 @@ def datapath_connection_factory(socket, address): def start_service(app_mgr): - for app in app_mgr.applications: - if app.endswith('ofp_handler'): + for app in app_mgr.applications.values(): + if app.__class__.__name__.endswith('OFPHandler'): return OpenFlowController()