Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/base/management.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ryu/base/management.py b/ryu/base/management.py
index 106029d..097a756 100644
--- a/ryu/base/management.py
+++ b/ryu/base/management.py
@@ -58,3 +58,11 @@ def list_bricks():
"""
from ryu.base.app_manager import SERVICE_BRICKS
return SERVICE_BRICKS.keys()
+
+
+def list_datapaths():
+ """
+ Return a list of connected datapaths
+ """
+ from ryu.controller.controller import Datapath
+ return [d.id for d in Datapath if not d.id is None]
--
1.8.0.1
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel