This code is based off my video Introduction To Genie video.
For instructions on how to setup the initial lab environment, please see this video:
All code has been tested on the Cisco DevNet Multi-IOS Cisco Test Network Sandbox HERE Please see the sandbox pages for credentials and reservations, virl default passwords are used on all routers (cisco/cisco). This demo example is based on Python 3.6 and was tested successfully under that version.
SSH Host - 10.10.20.50
Default Credentials – developer/C1sco12345
git clone https://github.com/IPvZero/Intro_To_Genie.git
cd Intro_To_Genie
virtualenv venv --python=python3.6
source venv/bin/activate
From the Intro_To_Genie
directory
# Get a list of currently running simulations
virl ls --all
# Stop any running simulations.
virl down --sim-name <Simulation name>
# Start the VIRL Simulation for demo
virl up
# Monitor status of simulation
virl nodes # Node startup
All of the code and examples for this are located in this directory. Clone and access it with the following commands on your local machine
git clone https://github.com/IPvZero/Intro_To_Genie.git
cd Intro_To_Genie
It is recommended that this demo be completed using Python 3.6. It is highly recommended to leverage Python Virtual Environments for completing exercises in this course.
Follow these steps to create and activate a venv.
virtualenv venv --python=python3.6
source venv/bin/activate
pip install -r requirements.txt
Test cases: Learn about all BGP sessions in each device, check their status and build a table to represent that info
Genie diff command, allows you to make quick yet stateful comparisons of your device operational states pre/post changes. Imagine for instance, that you kept a copy of your known-good device operational state in a repository. When your network is misbehaving, probe again and compare:
I am a Youtube content creator and Cybersecurity & Networks student with a strong interest in NetDevOps/Automation/Programmability Follow me on Twitter and YouTube