forked from aristanetworks/avd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
router-bgp-v4-evpn.yml
227 lines (227 loc) · 6.1 KB
/
router-bgp-v4-evpn.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
### Routing - BGP ###
router_bgp:
as: 65101
router_id: 192.168.255.3
bgp_defaults:
- no bgp default ipv4-unicast
- distance bgp 20 200 200
- graceful-restart restart-time 300
- graceful-restart
- maximum-paths 2 ecmp 2
peer_groups:
- name: IPv4-UNDERLAY-PEERS
type: ipv4
remote_as: 65001
password: "AQQvKeimxJu+uGQ/yYvv9w=="
maximum_routes: 12000
send_community: all
- name: EVPN-OVERLAY-PEERS
type: evpn
remote_as: 65001
update_source: Loopback0
bfd: true
ebgp_multihop: 3
password: "q+VNViP5i4rVjW1cxFv2wA=="
send_community: all
maximum_routes: 0
- name: MLAG-IPv4-UNDERLAY-PEER
type: ipv4
remote_as: 65101
next_hop_self: true
password: "vnEaG8gMeQf3d3cN6PktXQ=="
maximum_routes: 12000
send_community: all
route_map_in: RM-MLAG-PEER-IN
route_map_out: RM-MLAG-PEER-OUT
remove_private_as:
enabled: true
all: true
replace_as: true
remove_private_as_ingress:
enabled: true
replace_as: true
- name: STARDARD-COMMUNITY
type: ipv4
send_community: standard
- name: EXTENDED-COMMUNITY
type: ipv4
send_community: extended
- name: LARGE-COMMUNITY
type: ipv4
send_community: large
- name: MULTIPLE-COMMUNITY
type: ipv4
send_community: standard large
- name: NO-COMMUNITY
type: ipv4
send_community: null
- name: LOCAL-AS
type: ipv4
local_as: 65000
neighbors:
- ip_address: 172.31.255.0
peer_group: IPv4-UNDERLAY-PEERS
- ip_address: 172.31.255.2
peer_group: IPv4-UNDERLAY-PEERS
- ip_address: 192.168.255.1
peer_group: EVPN-OVERLAY-PEERS
- ip_address: 192.168.255.2
peer_group: EVPN-OVERLAY-PEERS
- ip_address: 10.255.251.1
peer_group: MLAG-IPv4-UNDERLAY-PEER
redistribute_routes:
- source_protocol: connected
route_map: RM-CONN-2-BGP
address_family_evpn:
peer_groups:
- name: EVPN-OVERLAY-PEERS
activate: true
- name: IPv4-UNDERLAY-PEERS
activate: false
- name: MLAG-IPv4-UNDERLAY-PEER
activate: false
address_family_ipv4:
peer_groups:
- name: EVPN-OVERLAY-PEERS
activate: false
- name: IPv4-UNDERLAY-PEERS
activate: true
- name: MLAG-IPv4-UNDERLAY-PEER
activate: true
vlan_aware_bundles:
## Tenant_A ##
- name: TENANT_A_PROJECT01
rd: "192.168.255.3:11"
description: TENANT_A_PROJECT01
route_targets:
both:
- "11:11"
redistribute_routes:
- learned
vlan: 110
- name: TENANT_A_PROJECT02
rd: "192.168.255.3:12"
route_targets:
both:
- "12:12"
redistribute_routes:
- learned
vlan: 112
## Tenant_B ##
- name: B-ELAN-201
tenant: Tenant_B
rd: "192.168.255.3:20201"
route_targets:
both:
- "20201:20201"
redistribute_routes:
- learned
vlan: 201
vlans:
vrfs:
## Tenant_A ##
- name: TENANT_A_PROJECT01
router_id: 192.168.255.3
rd: "192.168.255.3:11"
networks:
- prefix: 10.0.0.0/8
- prefix: 100.64.0.0/10
route_targets:
import:
- address_family: evpn
route_targets:
- "11:11"
export:
- address_family: evpn
route_targets:
- "11:11"
neighbors:
- ip_address: 10.255.251.1
peer_group: MLAG-IPv4-UNDERLAY-PEER
- ip_address: 10.2.3.4
remote_as: 1234
local_as: 123
description: Tenant A BGP Peer
remove_private_as:
enabled: true
all: true
ebgp_multihop: 3
send_community: all
maximum_routes: 0
default_originate:
always: true
route_map: RM-10.2.3.4-SET-NEXT-HOP-OUT
route_map_out: RM-10.2.3.4-SET-NEXT-HOP-OUT
address_family_ipv4:
bgp:
missing_policy:
direction_in_action: permit
direction_out_action: deny
additional_paths:
install: true
receive: true
send:
ecmp: true
neighbors:
- ip_address: 10.2.3.4
activate: true
route_map_out: RM-10.2.3.4-SET-NEXT-HOP-OUT
- ip_address: 10.2.3.5
activate: true
route_map_in: RM-10.2.3.5-SET-NEXT-HOP-IN
networks:
- prefix: 10.0.0.0/8
- prefix: 100.64.0.0/10
route_map: RM-10.2.3.4
peer_groups:
- name: TEST_PEER_GRP
activate: true
next_hop:
address_family_ipv6:
enabled: true
originate: true
redistribute_routes:
- source_protocol: connected
- source_protocol: static
- name: TENANT_A_PROJECT02
router_id: 192.168.255.3
timers: 5 15
rd: "192.168.255.3:12"
route_targets:
import:
- address_family: evpn
route_targets:
- "12:12"
export:
- address_family: evpn
route_targets:
- "12:12"
neighbors:
- ip_address: 10.255.251.1
peer_group: MLAG-IPv4-UNDERLAY-PEER
description: ABCDEFG
next_hop_self: true
timers: 1 3
send_community: standard
- ip_address: 10.255.251.2
peer_group: MLAG-IPv4-UNDERLAY-PEER
description: ABCDEFGfg
next_hop_self: false
timers: 1 3
send_community: extended
- ip_address: 10.255.251.3
peer_group: MLAG-IPv4-UNDERLAY-PEER
description: ABCDEFGfgLCLCLCLC
next_hop_self: true
timers: 1 3
send_community: large
default_originate:
always: true
- ip_address: 10.255.251.4
peer_group: MLAG-IPv4-UNDERLAY-PEER
description: Test_Bfd
bfd: true
redistribute_routes:
- source_protocol: connected
- source_protocol: static
route_map: RM-CONN-2-BGP