fix the following bug:

http://sourceforge.net/p/ryu/mailman/message/32022286/

Dependent services are not loaded properly with '_CONTEXTS'.

Signed-off-by: FUJITA Tomonori <[email protected]>
---
 ryu/base/app_manager.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py
index e65a6f3..286ff1c 100644
--- a/ryu/base/app_manager.py
+++ b/ryu/base/app_manager.py
@@ -287,8 +287,8 @@ class AppManager(object):
 
             services = []
             for key, context_cls in cls.context_iteritems():
-                cls = self.contexts_cls.setdefault(key, context_cls)
-                assert cls == context_cls
+                v = self.contexts_cls.setdefault(key, context_cls)
+                assert v == context_cls
 
                 if issubclass(context_cls, RyuApp):
                     services.extend(get_dependent_services(context_cls))
-- 
1.8.3.4 (Apple Git-47)


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to