Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/controller/handler.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/ryu/controller/handler.py b/ryu/controller/handler.py
index d5f57cd..43f07d1 100644
--- a/ryu/controller/handler.py
+++ b/ryu/controller/handler.py
@@ -80,6 +80,17 @@ def get_dependent_services(cls):
 
 
 def register_service(service):
+    """
+    Register the ryu application specified by 'service' as
+    a provider of events defined in the calling module.
+
+    If an application being loaded consumes events (in the sense of
+    set_ev_cls) provided by the 'service' application, the latter
+    application will be automatically loaded.
+
+    This mechanism is used to e.g. automatically start ofp_handler if
+    there are applications consuming OFP events.
+    """
     frm = inspect.stack()[1]
     m = inspect.getmodule(frm[0])
     m._SERVICE_NAME = service
-- 
1.8.3.1


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to