Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
JUNOS Automation Cookbook

You're reading from   JUNOS Automation Cookbook Automate network devices on Juniper's operating system

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781788290999
Length 382 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
 Chappell Chappell
Author Profile Icon Chappell
Chappell
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Configuring JUNOS through NETCONF FREE CHAPTER 2. Working with the Junos REST API 3. Using SLAX to Write Op Scripts 4. Event Programming 5. Automating JUNOS with PyEZ 6. Advanced Visualization Applications 7. Monitoring and Maintaining JUNOS 8. Security Applications 9. Extending JUNOS with Ansible

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.

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 information and obtain a visual representation of the protocol in return.

BGP MPLS VPN primer

BGP-based MPLS VPNs were first specified in IETF RFC 2547 in 1999. MPLS VPN technology spent the early 2000s competing hard with legacy private network technologies such as ATM/Frame Relay and...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images