Add register_service to topology events

If an application consumes topology event,  Switches application should
start automatically.

Signed-off-by: Takeshi <a86487817@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Takeshi
2015-08-18 17:00:45 +08:00
committed by FUJITA Tomonori
parent 2281b7a6ae
commit 6cdc2720f1

View File

@@ -14,6 +14,7 @@
# limitations under the License.
import logging
from ryu.controller import handler
from ryu.controller import event
LOG = logging.getLogger(__name__)
@@ -163,3 +164,5 @@ class EventHostBase(event.EventBase):
class EventHostAdd(EventHostBase):
def __init__(self, host):
super(EventHostAdd, self).__init__(host)
handler.register_service('ryu.topology.switches')