From e64bb2b43fe3e3e308ce9501ddf81cb5ed59d408 Mon Sep 17 00:00:00 2001 From: OHMURA Kei Date: Thu, 4 Apr 2013 08:46:47 +0900 Subject: [PATCH] topology/dumper: define contexts to receive events Signed-off-by: OHMURA Kei Signed-off-by: FUJITA Tomonori --- ryu/topology/dumper.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ryu/topology/dumper.py b/ryu/topology/dumper.py index 044e1a15..264871f0 100644 --- a/ryu/topology/dumper.py +++ b/ryu/topology/dumper.py @@ -22,6 +22,7 @@ import time from ryu.base import app_manager from ryu.controller import handler from ryu.topology import event +from ryu.topology import switches LOG = logging.getLogger(__name__) @@ -29,6 +30,9 @@ LOG = logging.getLogger(__name__) class DiscoveryEventDumper(app_manager.RyuApp): ''' This app dumps discovery events ''' + _CONTEXTS = { + 'switches': switches.Switches, + } def __init__(self, *args, **kwargs): super(DiscoveryEventDumper, self).__init__(*args, **kwargs)