In this recipe, we’ll learn how to make operational RPC calls to JUNOS through the XML RPC API using the PyEZ framework, and we’ll use that knowledge to build up the beginning of a software tool that could be used as an ISP looking glass.
A looking glass is a read-only view onto an ISP’s routers in order to allow customers and peers alike an ability to perform a self-serve troubleshoot activity by querying the provider’s routers to understand the routing of traffic to specific destinations.
We’ll also tweak PyEZ’s default settings to make it more patient for RPCs that might issue lots of output, taking significant time, such as when dealing with large configuration files.