Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
This example will show how to configure security policies on Juniper's SRX firewalls with Nornir
In addition to the Python script, this project also ships with additional tools to help you along your way. You will find a Dockerfile for running the project in an isolated environment, and an Invoke tasks.py file for those of us that hate typing out everything all the time.
tasks.py
How it works
Configuration parameters are stored as YAML, then ran through a Jinja2 template to produce the device's configuration. The is then pushed to the device using the NETCONF API on board.
Let's take a second to review the documentation in the files/docs/ directory.
files/docs/
nornir
Dependencies
Refer to the Poetry Lock file located at poetry.lock for detailed descriptions on each package installed.
Executing the script
This project provides two unique methods of executing the playbook: