class FetchViaRoutercli(FetchCliOut): ''' Get output from CLI ssh/telnet as string TODO: Implement all functions like FetchViaNxapi ''' def __init__(self, *args, **kwargs): from utils.routercli.router import Router super(FetchViaRoutercli, self).__init__(*args, **kwargs) self.routercli_obj = Router(self.hostname, logger=False, logfile_console=None) self.routercli_obj.login(username=self.username, password=self.password) def __del__(self): self.routercli_obj.logout()