In this recipe, we'll write a Python PyEZ-based script, process-ospf.py, to connect to one of our JUNOS OS devices and extract the OSPF link-state database. Like the previous recipe looking at ISIS, OSPF is a link-state protocol that shares a lot of properties with ISIS. A single router usually holds the link-state database information for all other routers in the same area, and single-area backbone environments are common. We can use this information to help visualize our network.
Extracting graphs from OSPF
Getting ready
In order to complete this recipe, you'll need a Python 2.7 development environment and access to an OSPF-speaking JUNOS OS device. Ideally, you'll also have completed the first recipe on visualizing...