Junos PyEZ Features and Architecture
Junos PyEZ is a Python "micro-framework" used to remotely manage or automate Junos OS devices. The user is NOT required to be a software programmer, have sophisticated knowledge of Junos OS, or have a complex understanding of the Junos OS XML API.
This library was built for two types of users:
Non-Programmers - Python as a Power Shell
Non-programmers, such as Network Engineers, can use the native Python shell on their management server (laptop, tablet, phone, and so on) as their point-of-control to remotely manage Junos OS devices. The Python shell is an interactive environment that provides the necessary means to perform common automation tasks, such as conditional testing, for-loops, macros, and templates.
Programmers - Open and Extensible
There is a growing interest and need to automate the network infrastructure into larger IT systems. To do so, traditional software programmers, DevOps, hackers, and so on, need an abstraction library of code to further those activities. Junos PyEZ is designed for extensibility so that the programmer can quickly and easily add new widgets to the library in support of their specific project requirements.
There is no need to "wait on the vendor" to provide new functionality. Junos PyEZ is not specifically tied to any version of Junos OS or any Junos OS product family.
Junos PyEZ Features
Junos PyEZ is designed to provide the same capabilities as the Junos OS CLI, but in an environment built for automation tasks. These capabilities include, but are not limited to:
- Provide "facts" about the device such as software version, serial number, and so on
- Retrieve the "operational" or "run-state" information (think "show" commands) using Tables/Views
- Retrieve the configuration using Tables/Views
- Make unstructured configuration changes with "snippets" and "templates"
- Make structured configuration changes with modeled abstractions
- Provide common utilities for tasks such as secure copy of files and software updates
Junos PyEZ Architecture
The following illustrates the usage architecture of Junos PyEZ. This micro framework is built on top of the community provided ncclient library. The ncclient library provides the basic protocol transport for NETCONF-managed devices.
Junos PyEZ enables both types of users--non-programmers and programmers--to easily interact and manage a network of JunosOS devices.