Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ansible/group_vars/all/ceos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ceos_image_filename: cEOS64-lab-4.25.5.1M.tar
ceos_image_orig: ceosimage:4.25.5.1M
ceos_image: ceosimage:4.25.5.1M-1
ceos_image_filename: cEOS64-lab-4.23.2F.tar.xz
ceos_image_orig: ceosimage:4.23.2F
ceos_image: ceosimage:4.23.2F-1
skip_ceos_image_downloading: false
7 changes: 0 additions & 7 deletions ansible/roles/test/files/ptftests/arista.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,8 @@ def do_cmd(self, cmd, prompt = None):
self.shell.send(cmd + '\n')

input_buffer = ''
loop_times = 0
while re.search(prompt, input_buffer) is None:
input_buffer += self.shell.recv(16384)
loop_times += 1
# cEOS will not return a arista_prompt if you send lots of 'exit' to close the ssh connect(vEOS do will),
# then an endless loop emerges,
# so if input_buffer is merely an 'exit', we can break the loop immediately
if loop_times > 10 and input_buffer.replace('\n', '').replace('\r', '').strip().lower() == 'exit':
break

return input_buffer

Expand Down