Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
csv
template
.gitignore
LICENSE
README.md
ztpexample.py
ztprender.py

README.md

About Project

This project shows examples of how to use Python and Jinja2 to automate the setup of a Juniper zero touch provisioning (ZTP) environment.

System requirements

Tested using:
python 2.7.5 
jinja2 2.9.6
Dependencies
Jinja2
 pip install jinja2 

Example

ztpExample.py
This file contains the following examples:
# template_loader(cvs_file)
	This function generates a Juniper configuration file using jinja2 templates.
	The code for this function is located in a file named ztpRender.py.

# dhcp_loader(cvs_file, dhcp_conf_dest)
	This function generates an updated dhcpd.conf file using jinja2 templates.
	The code for this function is located in a file named ztpRender.py.

License

Apache License

Author Information

Matthew McGeehan

You can’t perform that action at this time.