/solutions_examples

pyATS example solutions for NetDevOps use cases

Primary LanguagePythonApache License 2.0Apache-2.0

published

pyATS Solutions Examples

This repository contains several NetDevOps scripts build by our user community using pyATS Framework

Contributions

Everyone is welcome to leverage these scripts as starting points on solving common network operations challenges.

If you have additional thoughts, ideas, or samples you'd like to contribute, feel free to open a PR and become a member of the development community!

Installation

# first, ensure you have a pyATS virtual environment
# eg:
mkdir -p ~/workspace/pyats
cd ~/workspace/pyats
python3 -m venv .
source bin/activate
pip install --upgrade pip setuptools
pip install pyats[full]

# now, clone this repository
git clone https://github.com/CiscoTestAutomation/solutions_examples
cd solutions_examples

# install the common dependencies
pip install -r requirements.txt

# you're good to go!

You can visit our documentation for more information.

VIRL Simulation

Many of the examples refers to the DevNet Always-On Sandbox devices. If preferred to use local VIRL file with the examples, an example_testbed.virl file can be downloaded here.

Testbed configuration

We've provided a default_testbed.yaml and devnet_sandbox.yaml to go along with the sample topology. Please double check for the latest IP and hostname information.

Notable Examples

  • bgp_adjacencies - "if a neighbor is configured, it should be established"

  • crc_errors - "No interface should be accumulating CRC errors"

  • hostname_checker - "Verify devices hostname with Testbed file names"