With a formidable history starting in December 1989, Guido van Rossum’s Python programming language – fusing a desire for simplicity, clarity and reliability over code elegance, speed and performance – continues to be a highly popular technology choice for engineers writing glue code: the sort of code that interfaces different systems together.
Juniper have recognized Python’s dominance in the area of scripting and automation, and supported the development of the open source framework PyEZ, a Python library module that provides a useful abstraction layer over and above SSH and NETCONF in order to allow you to write Python code using high-level functional primitives that achieve useful actions on the JUNOS network elements.
In this chapter, we’ll explore a series of recipes that makes use of the PyEZ framework in order to achive commonly...