5. MPLS VPN Configuration Step by Step

MPLS VPN enables a private network service over an MPLS infrastructure, allowing customer traffic to be securely routed between multiple sites while maintaining isolation between different customers. In this lesson, we will start with an MPLS VPN configuration example on Cisco devices. In the next lessons, we will focus on how MPLS VPN operates in both the control plane and data plane.

Details

5. pyATS Genie Parsers

pyATS Genie parsers are a set of pre-built data parsers designed to transform raw CLI command outputs into structured Python dictionaries. These parsers eliminate the need for complex manual text parsing with regular expressions, allowing for easier data access and processing in automation workflows.

Details

4. MPLS TTL Propagation

MPLS TTL propagation, enabled by default, allows the TTL value to be copied between the IP and MPLS networks. As a result, when performing a traceroute from an IP network through an MPLS network, all P routers are transparently visible. However, by disabling TTL propagation, we can prevent MPLS P routers from being exposed to IP customers, effectively hiding them from view.

Details

3. Cisco pyATS Testbed

Cisco pyATS testbed is a YAML representation of your network’s topology. It defines the devices, their connection details (such as IP addresses and credentials), and optionally their interface connectivities.
It is called a testbed because it serves as a foundational configuration for automated testing and validation of network infrastructures. However, if device connectivities are ignored, it functions similarly to an inventory in other automation tools like Netmiko and Scrapli in Nornir.

Details

2. Install pyATS and genie

Installing pyATS and Genie and setting up the environment is the first step before starting automation with pyATS. In this section, I will demonstrate how to install and configure the required components using a Python virtual environment.
Additionally, I have prepared a Docker image for development purposes that includes all the necessary components covered in this lesson.

Details