'Generic handler that will read all the data from an SSH or telnet channel.'

def read_channel(self):

    output = u''
    self._lock_netmiko_session()
    try:
        output = self._read_channel()
    finally:
        self._unlock_netmiko_session()
    return output
