In this recipe, we will outline how to model and configure L3VPNs on Juniper devices using various Ansible modules. This enables us to model our services using Infrastructure as Code (IaC) practices, and utilize Ansible to deploy and push the required configuration to have the L3VPN deployed on Juniper devices.
Configuring the L3VPN service on Juniper devices
Getting ready
NETCONF must be enabled on the Juniper devices so as to use the Ansible modules in this recipe.
How to do it...
- Create a new file called l3vpn.yml with the following content:
---
l3vpns:
vpna:
state...