summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>2014-02-21 17:14:07 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-03-25 23:22:14 +0900
commitd70c9aed32778eae8a25f04c5f49861a67c3922c (patch)
treec7506bc3b0611a6fd57ee3983b265fcf34a5be6a
parenta9d7f1b199e8bedfd6795c45e2ee92284267c641 (diff)
ryu.topology.api: request ryu.topology.switches
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/topology/api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ryu/topology/api.py b/ryu/topology/api.py
index 908d8de1..ed56ce78 100644
--- a/ryu/topology/api.py
+++ b/ryu/topology/api.py
@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from ryu.base import app_manager
from ryu.topology import event
@@ -32,3 +33,6 @@ def get_link(app, dpid=None):
def get_all_link(app):
return get_link(app)
+
+
+app_manager.require_app('ryu.topology.switches')