コード例 #1
0
ファイル: websocket.py プロジェクト: cser123/ryu
    def _watcher_start(self, body):
        address = '%s:%s' % (body['host'], body['port'])
        self.address = address
        if self.watcher:
            self.watcher.stop()

        self.watcher = TopologyWatcher(
            update_handler=self.update_handler,
            rest_error_handler=self.rest_error_handler)
        self.watcher.start(address)