Make sure you have Python 3.10 (recommended)
Create a virtual environment
mkdir pyats-examples
cd pyats-examples
python3 -m venv venv
source venv/bin/activateInstall PyATS Standard Library
pip3 install --default-timeout=100 'pyATS[library]'Note: --default-timeout=100 gives you 100 seconds for time-out. For some reason, PyATS takes a long time to download from PyPI.
Check PyATS version
$ pyats version check
You are currently running pyATS version: 23.1
Python: 3.10.10 [64bit]Points to note:
hostnamein the testbed file must match with actual device hostname- If your SSH connection needs options (old encryption or key-exchange algorithms etc.,), you must use
customblock withssh-optionskey (Check/Testing/ssh-test/testbed-ssh.yamlfor example)