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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user