In this recipe, we’ll use the PyEZ framework to explore the XML RPC APIs to determine the necessary calls for equivalent command lines and parameters. Introspecting the XML RPC API like this can be a useful technique for building bigger fully-fledged automation applications.
Exploring the XML RPC using PyEZ
Getting ready
In order to complete this recipe, you’ll need Python 2.7 in a Linux or BSD-based development environment of your choice. You should have already:
- Configured NETCONF-over-SSH setup (Chapter 1, Configuring JUNOS through NETCONF)
- Set up a PyEZ Environment (Chapter 2, Working with Junos REST API).