-
Notifications
You must be signed in to change notification settings - Fork 2
/
topo.yml
223 lines (220 loc) · 6.89 KB
/
topo.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
name: 4l2s
mgmt:
network: intent-lab
ipv4-subnet: 172.20.21.0/24
topology:
kinds:
srl:
image: ghcr.io/nokia/srlinux:24.3.2
#image: ghcr.io/nokia/srlinux:23.10.2
linux:
image: ghcr.io/hellt/network-multitool
nodes:
l1:
kind: srl
type: ixrd2
mgmt-ipv4: 172.20.21.11
labels:
role: leaf
fabric: yes
l2:
kind: srl
type: ixrd2
mgmt-ipv4: 172.20.21.12
labels:
role: leaf
fabric: yes
l3:
kind: srl
type: ixrd2
mgmt-ipv4: 172.20.21.13
labels:
role: leaf
fabric: yes
l4:
kind: srl
type: ixrd2
mgmt-ipv4: 172.20.21.14
labels:
role: leaf
fabric: yes
s1:
kind: srl
type: ixrd3l
# type: ixrh2
mgmt-ipv4: 172.20.21.101
labels:
role: spine
fabric: yes
s2:
kind: srl
type: ixrd3l
#type: ixrh2
mgmt-ipv4: 172.20.21.102
labels:
role: spine
fabric: yes
cl011:
kind: linux
mgmt-ipv4: 172.20.21.141
exec:
- ip addr add 10.66.66.66/32 dev lo
- ip link add eth1
- ip link set addr 00:c1:ab:00:00:11 dev eth1
- ip addr add 10.5.0.1/31 dev eth1
- ip link set eth1 up
- ip route add 10.0.0.0/8 via 10.5.0.0
cl121:
kind: linux
mgmt-ipv4: 172.20.21.133
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set addr 00:c1:ab:00:01:21 dev bond0
- ip link add link bond0 name bond0.100 type vlan id 100
- ip addr add 10.0.1.2/24 dev bond0.100
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set eth1 up
- ip link set eth2 up
- ip link set bond0 up
- ip route add 10.0.0.0/8 via 10.0.1.254
cl122:
kind: linux
mgmt-ipv4: 172.20.21.134
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set addr 00:c1:ab:00:01:22 dev bond0
- ip link add link bond0 name bond0.200 type vlan id 200
- ip addr add 10.0.2.2/24 dev bond0.200
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set eth1 up
- ip link set eth2 up
- ip link set bond0 up
- ip route add 10.0.0.0/8 via 10.0.2.254
cl123:
kind: linux
mgmt-ipv4: 172.20.21.135
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set addr 00:c1:ab:00:01:23 dev bond0
- ip link add link bond0 name bond0.100 type vlan id 100
- ip addr add 10.0.1.3/24 dev bond0.100
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set eth1 up
- ip link set eth2 up
- ip link set bond0 up
- ip route add 10.0.0.0/8 via 10.0.1.254
cl124:
kind: linux
mgmt-ipv4: 172.20.21.136
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set addr 00:c1:ab:00:01:24 dev bond0
- ip link add link bond0 name bond0.200 type vlan id 200
- ip addr add 10.0.2.3/24 dev bond0.200
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set eth1 up
- ip link set eth2 up
- ip link set bond0 up
- ip route add 10.0.0.0/8 via 10.0.2.254
cl341:
kind: linux
mgmt-ipv4: 172.20.21.137
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set addr 00:c1:ab:00:03:41 dev bond0
- ip link add link bond0 name bond0.200 type vlan id 200
- ip addr add 10.0.2.3/24 dev bond0.200
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set eth1 up
- ip link set eth2 up
- ip link set bond0 up
- ip route add 10.0.0.0/8 via 10.0.2.254
cl342:
kind: linux
mgmt-ipv4: 172.20.21.138
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set addr 00:c1:ab:00:03:42 dev bond0
- ip link add link bond0 name bond0.300 type vlan id 300
- ip addr add 10.0.3.2/24 dev bond0.300
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set eth1 up
- ip link set eth2 up
- ip link set bond0 up
- ip route add 10.0.0.0/8 via 10.0.3.254
cl343:
kind: linux
mgmt-ipv4: 172.20.21.139
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set addr 00:c1:ab:00:03:43 dev bond0
- ip link add link bond0 name bond0.100 type vlan id 100
- ip addr add 10.0.1.4/24 dev bond0.100
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set eth1 up
- ip link set eth2 up
- ip link set bond0 up
- ip route add 10.0.0.0/8 via 10.0.1.254
cl344:
kind: linux
mgmt-ipv4: 172.20.21.140
exec:
- ip link add bond0 type bond mode 802.3ad
- ip link set addr 00:c1:ab:00:03:44 dev bond0
- ip link add link bond0 name bond0.300 type vlan id 300
- ip addr add 10.0.3.3/24 dev bond0.300
- ip link set eth1 down
- ip link set eth2 down
- ip link set eth1 master bond0
- ip link set eth2 master bond0
- ip link set eth1 up
- ip link set eth2 up
- ip link set bond0 up
- ip route add 10.0.0.0/8 via 10.0.3.254
links:
- endpoints: ["l1:e1-50", "s1:e1-1"]
- endpoints: ["l1:e1-49", "s2:e1-1"]
- endpoints: ["l2:e1-50", "s1:e1-2"]
- endpoints: ["l2:e1-49", "s2:e1-2"]
- endpoints: ["l3:e1-50", "s1:e1-3"]
- endpoints: ["l3:e1-49", "s2:e1-3"]
- endpoints: ["l4:e1-50", "s1:e1-4"]
- endpoints: ["l4:e1-49", "s2:e1-4"]
- endpoints: ["cl121:eth1", "l1:e1-20"]
- endpoints: ["cl121:eth2", "l2:e1-20"]
- endpoints: ["cl122:eth1", "l1:e1-21"]
- endpoints: ["cl122:eth2", "l2:e1-21"]
- endpoints: ["cl341:eth1", "l3:e1-20"]
- endpoints: ["cl341:eth2", "l4:e1-20"]
- endpoints: ["cl342:eth1", "l3:e1-21"]
- endpoints: ["cl342:eth2", "l4:e1-21"]
- endpoints: ["cl123:eth1", "l1:e1-30"]
- endpoints: ["cl123:eth2", "l2:e1-30"]
- endpoints: ["cl124:eth1", "l1:e1-31"]
- endpoints: ["cl124:eth2", "l2:e1-31"]
- endpoints: ["cl343:eth1", "l3:e1-30"]
- endpoints: ["cl343:eth2", "l4:e1-30"]
- endpoints: ["cl344:eth1", "l3:e1-31"]
- endpoints: ["cl344:eth2", "l4:e1-31"]
- endpoints: ["cl011:eth1", "l1:e1-22"]