-
Notifications
You must be signed in to change notification settings - Fork 0
/
ixp.yml
487 lines (485 loc) · 11.6 KB
/
ixp.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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
---
#-----------------------------------------------------------------------------#
# Author: Ariel S. Weher <ariel at weher dot net>
# Date: 2023-06-27
# Description: IXP topology for ContainerLab
# License: CC-BY-SA 4.0
#-----------------------------------------------------------------------------#
#-----------------------------------------------------------------------------#
# Lab management and topology preferences
#-----------------------------------------------------------------------------#
name: ixp
prefix: lab
#-----------------------------------------------------------------------------#
mgmt:
network: lacnog_mng
ipv4-subnet: 100.64.0.0/24
ipv6-subnet: 2001:db8::/64
mtu: 9216
external-access: false
topology:
kinds:
linux:
image: quay.io/frrouting/frr:8.5.2
image-pull-policy: IfNotPresent
nodes:
#-----------------------------------------------------------------------------#
# IXP Site A
#-----------------------------------------------------------------------------#
sitea-edge1:
kind: linux
group: border-leaf
binds:
- ./.working-configs/sitea-edge1:/etc/frr
sitea-edge2:
kind: linux
group: border-leaf
binds:
- ./.working-configs/sitea-edge2:/etc/frr
sitea-spine1:
kind: linux
group: spine
binds:
- ./.working-configs/sitea-spine1:/etc/frr
sitea-spine2:
kind: linux
group: spine
binds:
- ./.working-configs/sitea-spine2:/etc/frr
sitea-leaf1:
kind: linux
group: leaf
binds:
- ./.working-configs/sitea-leaf1:/etc/frr
sitea-leaf2:
kind: linux
group: leaf
binds:
- ./.working-configs/sitea-leaf2:/etc/frr
#-----------------------------------------------------------------------------#
# IXP Site B
#-----------------------------------------------------------------------------#
siteb-edge1:
kind: linux
group: border-leaf
binds:
- ./.working-configs/siteb-edge1:/etc/frr
siteb-spine1:
kind: linux
group: spine
binds:
- ./.working-configs/siteb-spine1:/etc/frr
siteb-spine2:
kind: linux
group: spine
binds:
- ./.working-configs/siteb-spine2:/etc/frr
#-----------------------------------------------------------------------------#
# IXP Site C
#-----------------------------------------------------------------------------#
sitec-edge1:
kind: linux
group: border-leaf
binds:
- ./.working-configs/sitec-edge1:/etc/frr
sitec-spine1:
kind: linux
group: spine
binds:
- ./.working-configs/siteb-spine1:/etc/frr
sitec-spine2:
kind: linux
group: spine
binds:
- ./.working-configs/siteb-spine2:/etc/frr
#-----------------------------------------------------------------------------#
# CDNs
#-----------------------------------------------------------------------------#
cdn1:
kind: linux
group: server
binds:
- ./.working-configs/cdn1:/etc/frr
cdn2:
kind: linux
group: server
binds:
- ./.working-configs/cdn2:/etc/frr
cdn3:
kind: linux
group: server
binds:
- ./.working-configs/cdn3:/etc/frr
cdn4:
kind: linux
group: server
binds:
- ./.working-configs/cdn4:/etc/frr
#-----------------------------------------------------------------------------#
# Members
#-----------------------------------------------------------------------------#
member1:
kind: linux
group: server
binds:
- ./.working-configs/member1:/etc/frr
member2:
kind: linux
group: server
binds:
- ./.working-configs/member2:/etc/frr
member3:
kind: linux
group: server
binds:
- ./.working-configs/member3:/etc/frr
member4:
kind: linux
group: server
binds:
- ./.working-configs/member4:/etc/frr
member5:
kind: linux
group: server
binds:
- ./.working-configs/member5:/etc/frr
member6:
kind: linux
group: server
binds:
- ./.working-configs/member6:/etc/frr
member7:
kind: linux
group: server
binds:
- ./.working-configs/member7:/etc/frr
member8:
kind: linux
group: server
binds:
- ./.working-configs/member8:/etc/frr
#-----------------------------------------------------------------------------#
# IXP Route Servers
#-----------------------------------------------------------------------------#
rs1:
kind: linux
group: server
binds:
- ./.working-configs/rs1:/etc/frr
rs2:
kind: linux
group: server
binds:
- ./.working-configs/rs2:/etc/frr
rs3:
kind: linux
group: server
binds:
- ./.working-configs/rs3:/etc/frr
rs4:
kind: linux
group: server
binds:
- ./.working-configs/rs4:/etc/frr
#-----------------------------------------------------------------------------#
# Management hosts from the IXP Staff
#-----------------------------------------------------------------------------#
pc1:
kind: linux
image: wbitt/network-multitool:alpine-extra
group: server
binds:
- ./.working-configs/pc1:/etc/frr
pc2:
kind: linux
image: wbitt/network-multitool:alpine-extra
group: server
binds:
- ./.working-configs/pc2:/etc/frr
pc3:
kind: linux
image: wbitt/network-multitool:alpine-extra
group: server
binds:
- ./.working-configs/pc3:/etc/frr
pc4:
kind: linux
image: wbitt/network-multitool:alpine-extra
group: server
binds:
- ./.working-configs/pc4:/etc/frr
#-----------------------------------------------------------------------------#
# Links
#-----------------------------------------------------------------------------#
links:
# Edge1 a Spines
- endpoints:
- sitea-edge1:eth1
- sitea-spine1:eth1
- endpoints:
- sitea-edge1:eth2
- sitea-spine2:eth1
- endpoints:
- sitea-edge1:eth3
- sitea-spine1:eth2
- endpoints:
- sitea-edge1:eth4
- sitea-spine2:eth2
# Edge2 a Spines
- endpoints:
- sitea-edge2:eth1
- sitea-spine1:eth3
- endpoints:
- sitea-edge2:eth2
- sitea-spine2:eth3
- endpoints:
- sitea-edge2:eth3
- sitea-spine1:eth4
- endpoints:
- sitea-edge2:eth4
- sitea-spine2:eth4
# Spines a Leaf
## Spine1 a Leaf1
- endpoints:
- sitea-spine1:eth5
- sitea-leaf1:eth1
- endpoints:
- sitea-spine1:eth6
- sitea-leaf1:eth2
- endpoints:
- sitea-spine1:eth7
- sitea-leaf1:eth3
- endpoints:
- sitea-spine1:eth8
- sitea-leaf1:eth4
## Spine2 a Leaf2
- endpoints:
- sitea-spine2:eth5
- sitea-leaf2:eth1
- endpoints:
- sitea-spine2:eth6
- sitea-leaf2:eth2
- endpoints:
- sitea-spine2:eth7
- sitea-leaf2:eth3
- endpoints:
- sitea-spine2:eth8
- sitea-leaf2:eth4
## Spine1 a Leaf2
- endpoints:
- sitea-spine1:eth9
- sitea-leaf2:eth5
- endpoints:
- sitea-spine1:eth10
- sitea-leaf2:eth6
- endpoints:
- sitea-spine1:eth11
- sitea-leaf2:eth7
- endpoints:
- sitea-spine1:eth12
- sitea-leaf2:eth8
## Spine2 a Leaf1
- endpoints:
- sitea-spine2:eth9
- sitea-leaf1:eth5
- endpoints:
- sitea-spine2:eth10
- sitea-leaf1:eth6
- endpoints:
- sitea-spine2:eth11
- sitea-leaf1:eth7
- endpoints:
- sitea-spine2:eth12
- sitea-leaf1:eth8
## Leaf1 a Leaf2
- endpoints:
- sitea-leaf1:eth9
- sitea-leaf2:eth9
- endpoints:
- sitea-leaf1:eth10
- sitea-leaf2:eth10
- endpoints:
- sitea-leaf1:eth11
- sitea-leaf2:eth11
- endpoints:
- sitea-leaf1:eth12
- sitea-leaf2:eth12
- endpoints:
- sitea-leaf1:eth13
- sitea-leaf2:eth13
- endpoints:
- sitea-leaf1:eth14
- sitea-leaf2:eth14
- endpoints:
- sitea-leaf1:eth15
- sitea-leaf2:eth15
- endpoints:
- sitea-leaf1:eth16
- sitea-leaf2:eth16
# SiteB
## SiteA Leaf1 a SiteB Spine1
- endpoints:
- sitea-leaf1:eth17
- siteb-spine1:eth1
- endpoints:
- sitea-leaf1:eth18
- siteb-spine1:eth2
- endpoints:
- sitea-leaf1:eth19
- siteb-spine1:eth3
- endpoints:
- sitea-leaf1:eth20
- siteb-spine1:eth4
## Spine1 a Spine2
- endpoints:
- siteb-spine1:eth5
- siteb-spine2:eth1
- endpoints:
- siteb-spine1:eth6
- siteb-spine2:eth2
- endpoints:
- siteb-spine1:eth7
- siteb-spine2:eth3
- endpoints:
- siteb-spine1:eth8
- siteb-spine2:eth4
## Spine1 a Edge1
- endpoints:
- siteb-spine1:eth9
- siteb-edge1:eth1
- endpoints:
- siteb-spine1:eth10
- siteb-edge1:eth2
## Spine2 a Edge2
- endpoints:
- siteb-spine2:eth5
- siteb-edge1:eth3
- endpoints:
- siteb-spine2:eth6
- siteb-edge1:eth4
# SiteB a SiteC
## Spine2 a Spine1
- endpoints:
- siteb-spine2:eth7
- sitec-spine1:eth1
- endpoints:
- siteb-spine2:eth8
- sitec-spine1:eth2
- endpoints:
- siteb-spine2:eth9
- sitec-spine1:eth3
- endpoints:
- siteb-spine2:eth10
- sitec-spine1:eth4
# SiteC
## Spine1 a Spine2
- endpoints:
- sitec-spine1:eth5
- sitec-spine2:eth1
- endpoints:
- sitec-spine1:eth6
- sitec-spine2:eth2
- endpoints:
- sitec-spine1:eth7
- sitec-spine2:eth3
- endpoints:
- sitec-spine1:eth8
- sitec-spine2:eth4
## SiteA Leaf2 a SiteC Spine2
- endpoints:
- sitea-leaf2:eth17
- sitec-spine2:eth5
- endpoints:
- sitea-leaf2:eth18
- sitec-spine2:eth6
- endpoints:
- sitea-leaf2:eth19
- sitec-spine2:eth7
- endpoints:
- sitea-leaf2:eth20
- sitec-spine2:eth8
## Spine1 a Edge1
- endpoints:
- sitec-spine1:eth9
- sitec-edge1:eth1
- endpoints:
- sitec-spine1:eth10
- sitec-edge1:eth2
## Spine2 a Edge1
- endpoints:
- sitec-spine2:eth9
- sitec-edge1:eth3
- endpoints:
- sitec-spine2:eth10
- sitec-edge1:eth4
# PC
- endpoints:
- pc1:eth1
- sitea-edge1:eth5
- endpoints:
- pc2:eth1
- sitea-edge2:eth5
- endpoints:
- pc3:eth1
- siteb-edge1:eth5
- endpoints:
- pc4:eth1
- sitec-edge1:eth5
# CDN
- endpoints:
- cdn1:eth1
- sitea-edge1:eth6
- endpoints:
- cdn2:eth1
- sitea-edge2:eth6
- endpoints:
- cdn3:eth1
- siteb-edge1:eth6
- endpoints:
- cdn4:eth1
- sitec-edge1:eth6
# Members
- endpoints:
- member1:eth1
- sitea-edge1:eth7
- endpoints:
- member2:eth1
- sitea-edge1:eth8
- endpoints:
- member3:eth1
- sitea-edge2:eth7
- endpoints:
- member4:eth1
- sitea-edge2:eth8
- endpoints:
- member5:eth1
- siteb-edge1:eth7
- endpoints:
- member6:eth1
- siteb-edge1:eth8
- endpoints:
- member7:eth1
- sitec-edge1:eth7
- endpoints:
- member8:eth1
- sitec-edge1:eth8
# Route Servers
- endpoints:
- rs1:eth1
- sitea-edge1:eth9
- endpoints:
- rs2:eth1
- sitea-edge2:eth9
- endpoints:
- rs1:eth2
- sitea-edge2:eth10
- endpoints:
- rs2:eth2
- sitea-edge1:eth10
- endpoints:
- rs3:eth1
- siteb-edge1:eth9
- endpoints:
- rs4:eth1
- sitec-edge1:eth9
debug: false