Basic example using nornir_scrapli and Cisco Always-On Sandbox #137
writememe
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
After a question in slack, I thought I'd make a very quick example so that people have something to work with..
Below is a cut-down basic example of using
nornir_scrapli
and the Cisco Always-On IOS-XE SandboxIt performs the following:
File Structure
There are four files that you need to generate/copy into your local machine:
. ├── basic_nornir_scrapli_example.py ├── groups.yaml ├── hosts.yaml └── requirements.txt
requirements.txt
This file contains the python requirements to run this example. Ensure that they are on your machine/python virtual environment:
hosts.yaml
This file contains the details for IOS-XE Sandbox host. In production, DO NOT save your passwords here in a clear-text, unencrypted file:
groups.yaml
This file contains a single group to setup the
iosxe
specific settings.basic_nornir_scrapli_example.py
Finally, here is the script which performs the tasks:
Ideas to extend the basic example
Here are some ideas on how you can extend this to learn more about scrapli or nornir:
Beta Was this translation helpful? Give feedback.
All reactions