Skip to content

CiscoTestAutomation/solutions_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e39bbd0 · Oct 19, 2022
Aug 18, 2021
Aug 12, 2020
Oct 27, 2021
Sep 21, 2020
Oct 6, 2020
Jul 16, 2020
Apr 14, 2021
Sep 18, 2020
Mar 1, 2019
Sep 18, 2020
Mar 4, 2019
Oct 20, 2020
Feb 13, 2020
Feb 13, 2020
Feb 13, 2020
Mar 15, 2021
Feb 13, 2020
Mar 1, 2019
Oct 17, 2022
Feb 28, 2019
Sep 18, 2020
Sep 5, 2020
Feb 7, 2020
Oct 17, 2022
Mar 5, 2019
Feb 13, 2020
May 25, 2021
Mar 1, 2019
Feb 13, 2020
Feb 13, 2020
Feb 13, 2020

Repository files navigation

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"