Exemple #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()
Exemple #2
0
    def stop(self):
        for client in self._clients.values():
            client.stop()

        super(OVSDB, self).stop()
Exemple #3
0
    def stop(self):
        for client in self._clients.values():
            client.stop()

        super(OVSDB, self).stop()
Exemple #4
0
    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()
Exemple #5
0
    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()