-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAristaCapstoneTopology.yaml
291 lines (257 loc) · 7.23 KB
/
AristaCapstoneTopology.yaml
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
---
# -------------------------------------------------------------
# Arista Data Center Topology
# 2 Spines & 2 Leaf Pairs with MLAG
# -------------------------------------------------------------
#https://containerlab.dev/manual/topo-def-file/#name
name: Arista Capstone
#https://containerlab.dev/manual/topo-def-file/#prefix
prefix: ""
#https://containerlab.dev/manual/network/#configuring-management-network
mgmt:
network: mgmt
ipv4-subnet: 172.100.100.0/24
#https://containerlab.dev/manual/topo-def-file/#topology
topology:
defaults:
env:
INTFTYPE: et
kinds:
ceos:
# adjust to the name of the docker image you imported
# format:
# image: <REPOSITORY>:<TAG>
# Check docker images with the following docker command:
# docker images
image: ceos:4.30.5M
linux:
image: mitchv85/ohv-host
nodes:
###########################################
# Graphite Node #
# Provides Topology Graphing and the #
# ability to connect to nodes in the #
# topology via a web/ssh session #
###########################################
graphite:
kind: linux
image: netreplica/graphite
mgmt-ipv4: 172.100.100.109
env:
HOST_CONNECTION: ${SSH_CONNECTION}
binds:
- __clabDir__/topology-data.json:/htdocs/default/default.json:ro
- __clabDir__/ansible-inventory.yml:/htdocs/lab/default/ansible-inventory.yml:ro
ports:
- 80:80
exec:
- sh -c 'graphite_motd.sh 80'
labels:
graph-hide: yes
#########################
# SPINE #
#########################
#https://containerlab.dev/manual/topo-def-file/#nodes
SPINE1:
kind: ceos
mgmt-ipv4: 172.100.100.101
startup-config: configs/SPINE1.cfg
ports:
- '22001:22'
- '8001:80'
- '44301:443'
labels:
graph-level: 1
graph-icon: switch
SPINE2:
kind: ceos
mgmt-ipv4: 172.100.100.102
startup-config: configs/SPINE2.cfg
ports:
- '22002:22'
- '8002:80'
- '44302:443'
labels:
graph-level: 1
graph-icon: switch
SPINE3:
kind: ceos
mgmt-ipv4: 172.100.100.103
startup-config: configs/SPINE3.cfg
ports:
- '22003:22'
- '8003:80'
- '44303:443'
labels:
graph-level: 1
graph-icon: switch
#########################
# LEAF #
#########################
LEAF1:
kind: ceos
mgmt-ipv4: 172.100.100.104
startup-config: configs/LEAF1.cfg
ports:
- '22004:22'
- '8004:80'
- '44304:443'
labels:
graph-level: 2
graph-icon: switch
LEAF2:
kind: ceos
mgmt-ipv4: 172.100.100.105
startup-config: configs/LEAF2.cfg
ports:
- '22005:22'
- '8005:80'
- '44305:443'
labels:
graph-level: 2
graph-icon: switch
LEAF3:
kind: ceos
mgmt-ipv4: 172.100.100.106
startup-config: configs/LEAF3.cfg
ports:
- '22006:22'
- '8006:80'
- '44306:443'
labels:
graph-level: 2
graph-icon: switch
LEAF4:
kind: ceos
mgmt-ipv4: 172.100.100.107
startup-config: configs/LEAF4.cfg
ports:
- '22007:22'
- '8007:80'
- '44307:443'
labels:
graph-level: 2
graph-icon: switch
Y-BORDERLEAF1:
kind: ceos
mgmt-ipv4: 172.100.100.108
startup-config: configs/BORDERLEAF1.cfg
ports:
- '22008:22'
- '8008:80'
- '44308:443'
labels:
graph-level: 2
graph-icon: switch
Z-BORDERLEAF2:
kind: ceos
mgmt-ipv4: 172.100.100.110
startup-config: configs/BORDERLEAF2.cfg
ports:
- '22009:22'
- '8009:80'
- '44309:443'
labels:
graph-level: 2
graph-icon: switch
###########################################
# HOST #
###########################################
HOSTA:
kind: linux
image: mitchv85/ohv-host
mgmt-ipv4: 172.100.100.111
ports:
- '22210:22'
exec:
- bash /usr/local/bin/hostnetconfig.sh -b -i 10.10.10.100/24 -g 10.10.10.1
labels:
graph-level: 3
graph-icon: host
HOSTB:
kind: linux
image: mitchv85/ohv-host
mgmt-ipv4: 172.100.100.112
ports:
- '22211:22'
exec:
- bash /usr/local/bin/hostnetconfig.sh -b -i 10.20.20.100/24 -g 10.20.20.1
labels:
graph-level: 3
graph-icon: host
HOSTC:
kind: linux
image: mitchv85/ohv-host
mgmt-ipv4: 172.100.100.113
ports:
- '22212:22'
exec:
- bash /usr/local/bin/hostnetconfig.sh -b -i 10.30.30.100/24 -g 10.30.30.1
labels:
graph-level: 3
graph-icon: host
#https://containerlab.dev/manual/topo-def-file/#links
links:
####################
# SPINE1 to LEAF #
####################
- endpoints: ["SPINE1:et2", "LEAF1:et3"]
- endpoints: ["SPINE1:et3", "LEAF2:et3"]
- endpoints: ["SPINE1:et4", "LEAF3:et3"]
- endpoints: ["SPINE1:et5", "LEAF4:et3"]
- endpoints: ["SPINE1:et6", "Y-BORDERLEAF1:et3"]
- endpoints: ["SPINE1:et7", "Z-BORDERLEAF2:et3"]
####################
# SPINE2 to LEAF #
####################
- endpoints: ["SPINE2:et2", "LEAF1:et4"]
- endpoints: ["SPINE2:et3", "LEAF2:et4"]
- endpoints: ["SPINE2:et4", "LEAF3:et4"]
- endpoints: ["SPINE2:et5", "LEAF4:et4"]
- endpoints: ["SPINE2:et6", "Y-BORDERLEAF1:et4"]
- endpoints: ["SPINE2:et7", "Z-BORDERLEAF2:et4"]
####################
# SPINE3 to LEAF #
####################
- endpoints: ["SPINE3:et1", "LEAF1:et5"]
- endpoints: ["SPINE3:et2", "LEAF2:et5"]
- endpoints: ["SPINE3:et3", "LEAF3:et5"]
- endpoints: ["SPINE3:et4", "LEAF4:et5"]
- endpoints: ["SPINE3:et5", "Y-BORDERLEAF1:et5"]
- endpoints: ["SPINE3:et6", "Z-BORDERLEAF2:et5"]
####################
# LEAF1 to LEAF2 #
####################
- endpoints: ["LEAF1:et1", "LEAF2:et1"]
- endpoints: ["LEAF1:et2", "LEAF2:et2"]
####################
# LEAF3 to LEAF4 #
####################
- endpoints: ["LEAF3:et1", "LEAF4:et1"]
- endpoints: ["LEAF3:et2", "LEAF4:et2"]
################################
# BORDERLEAF1 to BORDERLEAF2 #
################################
- endpoints: ["Y-BORDERLEAF1:et1", "Z-BORDERLEAF2:et1"]
- endpoints: ["Y-BORDERLEAF1:et2", "Z-BORDERLEAF2:et2"]
####################
# HOSTA #
####################
- endpoints: ["HOSTA:et1", "LEAF1:et6"]
- endpoints: ["HOSTA:et3", "LEAF1:et7"]
- endpoints: ["HOSTA:et2", "LEAF2:et6"]
- endpoints: ["HOSTA:et4", "LEAF2:et7"]
####################
# HOSTB #
####################
- endpoints: ["HOSTB:et1", "LEAF3:et6"]
- endpoints: ["HOSTB:et3", "LEAF3:et7"]
- endpoints: ["HOSTB:et2", "LEAF4:et6"]
- endpoints: ["HOSTB:et4", "LEAF4:et7"]
####################
# HOSTC #
####################
- endpoints: ["HOSTC:et1", "Y-BORDERLEAF1:et6"]
- endpoints: ["HOSTC:et3", "Y-BORDERLEAF1:et7"]
- endpoints: ["HOSTC:et2", "Z-BORDERLEAF2:et6"]
- endpoints: ["HOSTC:et4", "Z-BORDERLEAF2:et7"]