nre-learning / nrelabs-curriculum

Learn next-generation skills for network engineers, all in your browser.
https://nrelabs.io
Apache License 2.0
140 stars 79 forks source link

Adding stage6 PyEZ lesson - Jinja templates and PyEZ #270

Open manasasu opened 5 years ago

manasasu commented 5 years ago

Configuring devices using Jinja2 template Use the template to configure loopbacks, IP addresses on multiple interfaces Use the template to configure multiple devices Import a csv file with data externally to configure devices Use YAML files in coordination with Jinja2 template for pushing configurations

Mierdin commented 5 years ago

@manasasu Thanks, but can you add some more structure? I'm not sure how to interpret the above re: an action plan for a new addition to a lesson. Some of the lines seem to overlap with each other, or be supersets of each other. Also, this is all meant to be in a single stage? If so I might suggest breaking the content up, as this is a lot to go over, and stages are meant to be around 5 minutes.

Also, it's not clear to me how this furthers the PyEZ lesson. It seems more closely aligned with the existing lesson 16 that covers Jinja2, but even then there's overlap, so if that's the direction you want to go I'd want to know how this will expand on what's there.

Hopefully that makes sense.

manasasu commented 5 years ago

@Mierdin Jinja2 lesson covers the basic template format and prints out the data. It doesn't show how to use Jinja2 in the context of PyEZ. So it could be an extension of Jinja2 lesson as well. Using the template for configuration deployment via PyEZ.

There are separate sections for Jinja, YAML and PyEZ. But nothing that combines PyEZ with the other two templates together for configuration deployment. So a section that covers how to use PyEZ and Jinja2 together and PyEZ and YAML together for configuring loopbacks, interfaces and multiple devices can be covered as an extension of PyEZ lesson.