diff options
-rw-r--r-- | ryu/base/app_manager.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index f6441ac7..a9895a24 100644 --- a/ryu/base/app_manager.py +++ b/ryu/base/app_manager.py @@ -35,6 +35,8 @@ def lookup_service_brick(name): def register_app(app): + assert isinstance(app, RyuApp) + assert not app.name in SERVICE_BRICKS SERVICE_BRICKS[app.name] = app register_instance(app) @@ -146,6 +148,8 @@ class AppManager(object): def create_contexts(self): for key, cls in self.contexts_cls.items(): context = cls() + LOG.info('creating context %s', key) + assert not key in self.contexts self.contexts[key] = context # hack for dpset if context.__class__.__base__ == RyuApp: |