- Network Automation Cookbook
- Karim Okasha
- 74字
- 2025-04-04 13:10:14
How it works...
We use the same methodology as used to configure the interfaces and OSPF, by using a Jinja2 template to generate the needed MPLS configuration for the Juniper devices in our inventory, and the following is a sample of the MPLS configuration for the mxpe02 router:
protocols {
ldp {
interface ge-0/0/0.0;
interface ge-0/0/1.0;
interface lo0.0;
}
rsvp {
interface ge-0/0/0.0;
interface ge-0/0/1.0;
}
mpls {
interface ge-0/0/0.0;
interface ge-0/0/1.0;
}
}