Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

portable_pyATS

An Ubuntu, pyATS environment you can shell into, update your testbed, and run pyATS tests locally as a Container

Instructions

  1. Windows

Install WSL

Enable WSL2

Install Ubuntu (WSL2 enabled)

Install VS Code + Docker Extension (optional)

Install Docker Desktop

In Ubuntu:

docker run -it johncapobianco/portable_pyats:latest

Either in Ubuntu or Docker Desktop run the interactive CLI

Update (vi testbed.yaml) the testbed.yaml file to match your target device. It is pre-canned to work with the Cisco DevNet Nexus 9000 Sandbox

  1. Linux

Install Docker

docker run -it johncapobianco/portable_pyats:latest

https://hub.docker.com/repository/docker/johncapobianco/portable_pyats

For The Pre-Canned Testbed - The Cisco DevNet Nexus 9000 Sandbox

Merlin Docker on a Cisco DevNet Sandbox Nexus 9000

You can now run Merlin against a Nexus 9000 in the Cisco DevNet Sandbox. We have included a custom script and pre-configured testbed file for this purpose.

To get started, sign up for a Cisco DevNet account at: https://devnetsandbox.cisco.com/RM/Topology

Once you are signed in, search for "Nexus" in the search dialog at the top left of the screen.

DevNet Search

Select one of the reserved instances - We recommend using the instance running the latest version of NXOS.

DevNet Reserve

Click "Reserve" after reviewing the reservation details.

DevNet Reserve

You will receive an email from Cisco confirming the reservation along with links to download the Cisco AnyConnect VPN Client and instructions for its installation.

Cisco AnyConnect VPN Client:

https://developer.cisco.com/site/sandbox/anyconnect/

Installation guide for Cisco AnyConnect VPN Client:

https://devnetsandbox.cisco.com/Docs/VPN_Access/AnyConnect_Installation_Guide.pdf

Click the "VPN Access" tab in the DevNet console and review the information in it.

DevNet VPN Access

Note: If this is your first time using the Cisco DevNet Sandbox, make sure to review the information in each of the tabs.

In about 15 to 20 minutes, you should receive another email from Cisco with the VPN credentials for your sandbox, including:

  • VPN address and port for the connection
  • VPN username
  • VPN password

Connect to the DevNet Sandbox VPN using the Cisco AnyConnect VPN Client

AnyConnect

Once connected, you will have direct network access to the Nexus 9000 in DevNet.

The "NXOS on Nexus 9k" tab in the DevNet console will show you the details you need to connect to the device, however we have already added this information to the testbed/testbed_DevNet_Nexus9k_Sandbox.yaml file.

You can confirm it to be sure.

AnyConnect

You're now ready to run Merlin against the DevNet Nexus 9000!

  • To transform at least 16 common commands run the following pyATS job as a Docker Container:
docker run -it johncapobianco/portable_pyats:latest

About

An Ubuntu, pyATS environment you can shell into, update your testbed, and run pyATS tests locally as a Container

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors