Giter Site home page Giter Site logo

cl-devnet-2595's Introduction

published

Cisco Live! DEVWKS-2595: Stateful Network Validation using pyATS/Genie

This repository contains the files required for the participants of Cisco Live! workshop DEVWKS-2595: Stateful Network Validation using pyATS/Genie.

Note: This workshop can be completed at home.

All files required are included in this repository. You do not need physical devices - mock devices are provided.

General Information

Requirements

  • Mac OSX, Linux or Windows 10 WSL
  • Python 3.5, 3.6 or 3.7
  • Network connectivity (for downloading PyPI packages)
  • Working knowledge of Python is a plus, but not required.

Preparation Instructions

Note:

For those attending Cisco Live! Workshop in person, these instructions have already been performed on the laptop you are using in front of you.

Step 1: Create a Python Virtual Environment

In a new terminal window:

# go to your workspace directory
# (or where you typical work from)
cd ~/workspace

# create python virtual environment
python3 -m venv devwks-2595

# activate virtual environment
cd devwks-2595
source bin/activate

# update your pip/setuptools
pip install --upgrade pip setuptools

Step 2: Install pyATS & Genie

# install our packages 
pip install pyats[full]

Note:

The install target pyATS[full] performs a full installation, that is, including the core framework pyATS, the standard libraries Genie, and additional components such as RobotFramework support etc.

Step 3: Clone This Repository

# clone this repo
git clone https://github.com/CiscoTestAutomation/CL-DevNet-2595.git workshop

# cd to the directory
cd workshop

and now you should be ready to get going!

Head to the >Main Workshop< to start!


Repository Content

    testbed.yaml                      testbed YAML file to connect to our devices
    robot_initial_snapshot/           Directory with RobotFramework script to gather the first snapshot
    robot_compare_snapshot/           Directory with RobotFramework script to collect the second snapshot and compare with the initial snapshot
    mocked_devices/                   Data for the mocked devices.
    README.md                         Introduction text for this Workshop
    workshop.md                       Workshop instruction

cl-devnet-2595's People

Contributors

eckelcu avatar jeaubin avatar juliogomez avatar simingy 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

Watchers

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

cl-devnet-2595's Issues

typo in path

mock_device_cli --os nxos --mock_data_dir mocked_device/initial_yamls/nxos --state execute

instead of mocked_device - should be mocked_devices

robot doesn't work

When I run robot it doesn't work:

(devnet-2595) XXX@ubuntu:~/devnet-2595/workshop/robot_initial_snapshot$ robot --outputdir run robot_initial_snapshot.robot

Robot Initial Snapshot

Connect | FAIL |
LoadError: Content of '../tb.yaml' failed to load into a dict.
Got: ../tb.yaml

Profile the devices | FAIL |
AttributeError: It is mandatory to 'use genie testbed ' command first.

Robot Initial Snapshot | FAIL |
2 critical tests, 0 passed, 2 failed
2 tests total, 0 passed, 2 failed

Output: /home/XXX/devnet-2595/workshop/robot_initial_snapshot/run/output.xml
Log: /home/XXX/devnet-2595/workshop/robot_initial_snapshot/run/log.html
Report: /home/XXX/devnet-2595/workshop/robot_initial_snapshot/run/report.html

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.