Open ktbyers opened 8 years ago
def verify_space_available(self, search_pattern=r"(.*) bytes available "): ''' Verify sufficient space is available on remote network device Return a boolean ''' remote_cmd = "show {0}".format(self.file_system) remote_output = self.ssh_ctl_chan.send_command(remote_cmd) match = re.search(search_pattern, remote_output) space_avail = int(match.group(1)) if space_avail > self.file_size: return True return False
Should probably change this to dir and not show
Should probably change this to dir and not show