Coder Social home page Coder Social logo

ciscotestautomation / solutions_examples Goto Github PK

View Code? Open in Web Editor NEW
74.0 22.0 43.0 243 KB

pyATS example solutions for NetDevOps use cases

Home Page: https://cs.co/pyats

License: Apache License 2.0

RobotFramework 4.50% Python 94.64% Makefile 0.41% Shell 0.44%
networkautomation cisco pyats netdevops network-automation

solutions_examples's Introduction

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"

solutions_examples's People

Contributors

badalsoyantar avatar danielgraziano avatar domachad avatar ericchou1 avatar gdiazmez avatar gerriorl avatar gwoodwa1 avatar jeaubin avatar juliogomez avatar kamyarziabari avatar karmoham avatar lukasmcclelland avatar miott avatar msiegy avatar obrigg avatar simingy avatar tahigash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

solutions_examples's Issues

position of " failed_dict[device] = {} "

line 106 -- " failed_dict[device] = {} "

Is above line to initiate the dict to store the failed neighbor for a device at the right place? It seems to me if needs to be in the device loop, not in the neighbor loop. Because if it is neighbor loop, it will become empty every time there is a failed neighbor, so only the last failed neighbor will be stored. Correct me if I am wrong.

Thanks,

Ken

Cannot test bgp

Hi, thanks open this issue.

I have tried to solution_examples/bgp_adjacencies's tutorial but I got this error message below.
'''
LookupError: No such attribute in abstraction package 'genie.libs.ops': 'genie.libs.ops.bgp.bgp.Bgp'
'''
I have checked my testbed and bgp status but these are fine. I have also tried to Ping module from pyATS and that works fine.

Or accordingly this error message, probably I don't install pyATS and Genie module correctly?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.