-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
! | ||
{% for vpn in item.vpns %} | ||
vrf {{ vpn.name }} | ||
address-family ipv4 unicast | ||
import route-target {{ item.as_number }}:{{ vpn.iRT }} | ||
export route-target {{ item.as_number }}:{{ vpn.eRT }} | ||
! | ||
{% endfor %} | ||
router static | ||
{% for vpn in item.vpns %} | ||
vrf {{ vpn.name }} | ||
address-family ipv4 unicast | ||
0.0.0.0/0 Null0 description Default_route_for_VPN_{{vpn.name}} | ||
{% endfor %} | ||
! | ||
router bgp {{ item.as_number }} | ||
{% for vpn in item.vpns %} | ||
vrf {{ vpn.name }} | ||
rd {{ item.as_number }}:{{ vpn.RD }} | ||
default-information originate | ||
address-family ipv4 unicast | ||
redistribute connected | ||
redistribute static | ||
{% endfor %} |