In this lesson, we will cover:

  • The role of the pyATS testbed.
  • How to build a pyATS from an Excel spreadsheet.
  • How to validate a pyATS testbed.

The scripts and code for this lesson can be found within the pyATS repo under the directory: 002_testbeds/.

Introduction to Testbeds

Testbeds (typically YAML based) allow us to provide the details of the environment and devices we wish to test. For example, the connectivity details such as IP/ or hostname, the connectivity method, the OS type, and the login credentials.

PyATS provides various options for automatically creating testbed files from different sources, such as Netbox, Ansible and Excel.

Note: For the scope of this lesson, we will use Excel.

Generate from Excel

First of all, we will use a pre-built Excel spreadsheet (shown below) to generate our testbed file.

pyats-excel

Ready to Master Network Automation? Start Your Journey Today!
Our membership provides:
  • Full deep-dive course library (inc. Batfish, pyATS, Netmiko)
  • Code repositories inc. full course code, scripts and examples
  • 24x7 multi-vendor labs (Arista, Cisco, Juniper)
  • Private online community
  • Live monthly tech sessions
  • Access to tech session library

Join Now ➜
Close You've successfully subscribed to Packet Coders.
Close Success! Your account is fully activated, you now have access to all content.
Close Welcome back! You've successfully signed in.
Close Nearly there! To activate your account, please click the link in the email we just sent you.