In this recipe, we'll write a Python PyEZ-based script, process-mplsvpn.py, to connect to one of our JUNOS OS devices and query the BGP table for routing information related to a specific customer VPN. We'll use the associated BGP information to determine the customer-level network prefixes within the VPN and the Provider Edge (PE) routers involved in serving that MPLS VPN. We can visualize this information in a graph format.
Extracting graphs from MPLS VPNs
Getting ready
In order to complete this recipe, you'll need a Python 2.7 development environment and access to a BGP-speaking JUNOS OS device. Ideally, you'll also have completed the first recipe on visualizing graphs, so that you can provide the extracted...