-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjinja2-napalm.j2
More file actions
69 lines (67 loc) · 1.21 KB
/
Copy pathjinja2-napalm.j2
File metadata and controls
69 lines (67 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
interface Loopback0
ipv4 address {{ IP_LO0 }} 255.255.255.255
!
interface GigabitEthernet0/0/0/0
ipv4 address {{ IP_GE0 }} 255.255.255.252
no shutdown
!
interface GigabitEthernet0/0/0/1
ipv4 address {{ IP_GE1 }} 255.255.255.252
no shutdown
!
{% if IP_GE2 %}
interface GigabitEthernet0/0/0/2
ipv4 address {{ IP_GE2 }} 255.255.255.252
no shutdown
{% endif %}
!
router ospf BACKBONE
area 0
interface Loopback0
!
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/0/0/1
!
{% if IP_GE2 %}
interface GigabitEthernet0/0/0/2
!
{% endif %}
!
mpls ldp
interface GigabitEthernet0/0/0/0
!
interface GigabitEthernet0/0/0/1
!
{% if IP_GE2 %}
interface GigabitEthernet0/0/0/2
!
{% endif %}
router bgp 65000
address-family vpnv4 unicast
!
{% if RR %}
neighbor-group CLIENTS
remote-as 65000
update-source Loopback0
address-family vpnv4 unicast
no route-reflector-client inheritance-disable
route-reflector-client
!
!
neighbor 2.2.2.2
use neighbor-group CLIENTS
!
neighbor 3.3.3.3
use neighbor-group CLIENTS
!
neighbor 4.4.4.4
use neighbor-group CLIENTS
!
{% else %}
neighbor 1.1.1.1
remote-as 65000
update-source Loopback0
address-family vpnv4 unicast
!
{% endif %}