def METHOD_NAME(self, retries=30, wait=30, interval=40, timeout=None):
    LOG.info(
        "Waiting {} seconds to check {} ssh connection...".format(
            wait, self.address
        )
    )
    sleep(wait)
    for attempt in range(retries):
        try:
            LOG.info(
                "Login attempt number {} on {} ".format(
                    attempt + 1, self.address
                )
            )
            self.connect(timeout=timeout)
            return True
        except (paramiko.ssh_exception.BadHostKeyException,
                paramiko.ssh_exception.AuthenticationException,
                paramiko.ssh_exception.SSHException,
                socket.error) as err:
            if attempt == retries - 1:
                LOG.error(
                    "Maximum number of login attempts : {} .".format(err)
                )
                return False
            LOG.warning("We caught an exception: {} .".format(err))
            sleep(interval)