コード例 #1
0
    def stop(self):
        # NOTE(jkoelker) Attempt to gracefully stop the accept loop
        self.is_active = False

        # NOTE(jkoelker) Forceably kill the loop and clear the main_thread
        if self.main_thread:
            hub.kill(self.main_thread)
            self.main_thread = None

        # NOTE(jkoelker) Stop all the clients
        for client in self._clients.values():
            client.stop()

        # NOTE(jkoelker) super will only take care of the event and joining now
        super(OVSDB, self).stop()
コード例 #2
0
ファイル: manager.py プロジェクト: John-Lin/ryu
    def stop(self):
        for client in self._clients.values():
            client.stop()

        super(OVSDB, self).stop()
コード例 #3
0
ファイル: manager.py プロジェクト: eljalalpour/ELRyu
    def stop(self):
        for client in self._clients.values():
            client.stop()

        super(OVSDB, self).stop()
コード例 #4
0
ファイル: manager.py プロジェクト: netprog-uniroma2/OPP
    def stop(self):
        # TODO main_thread should be stopped first, not from super().stop
        for client in self._clients.values():
            client.stop()

        super(OVSDB, self).stop()
コード例 #5
0
ファイル: manager.py プロジェクト: HelloZCB/ryu
    def stop(self):
        # TODO main_thread should be stopped first, not from super().stop
        for client in self._clients.values():
            client.stop()

        super(OVSDB, self).stop()