Skip to content
Merged
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.23.2F.tar.xz
ceos_image_orig: ceosimage:4.23.2F
ceos_image: ceosimage:4.23.2F-1
ceos_image_filename: cEOS64-lab-4.25.5.1M.tar
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new file is not zipped?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it's docker-importable
It's small, just 8mb bigger than cEOS64-lab-4.23.2F.tar.xz
and in our playbook, we download and import directly without unzip, not sure whether previous one is zipped indeed.

ceos_image_orig: ceosimage:4.25.5.1M
ceos_image: ceosimage:4.25.5.1M-1
skip_ceos_image_downloading: false
7 changes: 7 additions & 0 deletions ansible/roles/test/files/ptftests/arista.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,15 @@ 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