'Retrieve a single AsusWrtResult through an SSH connection.
Connect to the SSH server if not currently connected, otherwise
use the existing connection.'

def get_result(self):

    from pexpect import pxssh, exceptions
    try:
        if (not self.connected):
            self.connect()
        if self._ap:
            neighbors = ['']
            self._ssh.sendline(_WL_CMD)
            self._ssh.prompt()
            leases_result = self._ssh.before.split('\n')[1:(-1)]
        else:
            self._ssh.sendline(_IP_NEIGH_CMD)
            self._ssh.prompt()
            neighbors = self._ssh.before.split('\n')[1:(-1)]
            self._ssh.sendline(_LEASES_CMD)
            self._ssh.prompt()
            leases_result = self._ssh.before.split('\n')[1:(-1)]
        return AsusWrtResult(neighbors, leases_result)
    except exceptions.EOF as err:
        _LOGGER.error('Connection    refused.    SSH    enabled?')
        self.disconnect()
        return None
    except pxssh.ExceptionPxssh as err:
        _LOGGER.error('Unexpected    SSH    error:    %s', str(err))
        self.disconnect()
        return None
    except AssertionError as err:
        _LOGGER.error('Connection    to    router    unavailable:    %s', str(err))
        self.disconnect()
        return None
