O'Reilly logo

JUNOS Automation Cookbook by Adam Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extracting graphs from MPLS VPNs

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required