-
Notifications
You must be signed in to change notification settings - Fork 6
/
clos5.yml
164 lines (163 loc) · 4.28 KB
/
clos5.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
name: clos5
mgmt:
network: fixedips
ipv4-subnet: 172.100.100.0/24
ipv6-subnet: 2001:172:100:100::/80
mtu: 1500
topology:
defaults:
kind: linux
env:
COLLECTOR: sflow-rt
SAMPLING: ${SAMPLING:=1000}
POLLING: ${POLLING:=30}
nodes:
leaf1:
image: sflow/clab-frr
group: leaf
env:
LOCAL_AS: 65001
NEIGHBORS: eth1 eth2
HOSTPORT: eth3
HOSTNET: "172.16.1.1/24"
HOSTNET6: "2001:172:16:1::1/64"
exec:
- touch /tmp/initialized
leaf2:
image: sflow/clab-frr
group: leaf
env:
LOCAL_AS: 65002
NEIGHBORS: eth1 eth2
HOSTPORT: eth3
HOSTNET: "172.16.2.1/24"
HOSTNET6: "2001:172:16:2::1/64"
exec:
- touch /tmp/initialized
leaf3:
image: sflow/clab-frr
group: leaf
env:
LOCAL_AS: 65003
NEIGHBORS: eth1 eth2
HOSTPORT: eth3
HOSTNET: "172.16.3.1/24"
HOSTNET6: "2001:172:16:3::1/64"
exec:
- touch /tmp/initialized
leaf4:
image: sflow/clab-frr
group: leaf
env:
LOCAL_AS: 65004
NEIGHBORS: eth1 eth2
HOSTPORT: eth3
HOSTNET: "172.16.4.1/24"
HOSTNET6: "2001:172:16:4::1/64"
exec:
- touch /tmp/initialized
spine1:
image: sflow/clab-frr
group: spine
env:
LOCAL_AS: 65005
NEIGHBORS: eth1 eth2 eth3
exec:
- touch /tmp/initialized
spine2:
image: sflow/clab-frr
group: spine
env:
LOCAL_AS: 65005
NEIGHBORS: eth1 eth2 eth3
exec:
- touch /tmp/initialized
spine3:
image: sflow/clab-frr
group: spine
env:
LOCAL_AS: 65006
NEIGHBORS: eth1 eth2 eth3
exec:
- touch /tmp/initialized
spine4:
image: sflow/clab-frr
group: spine
env:
LOCAL_AS: 65006
NEIGHBORS: eth1 eth2 eth3
exec:
- touch /tmp/initialized
superspine1:
image: sflow/clab-frr
group: superspine
env:
LOCAL_AS: 65007
NEIGHBORS: eth1 eth2
exec:
- touch /tmp/initialized
superspine2:
image: sflow/clab-frr
group: superspine
env:
LOCAL_AS: 65007
NEIGHBORS: eth1 eth2
exec:
- touch /tmp/initialized
h1:
image: sflow/clab-iperf3
group: server
exec:
- ip addr add 172.16.1.2/24 dev eth1
- ip route add 172.16.0.0/16 via 172.16.1.1
- ip addr add 2001:172:16:1::2/64 dev eth1
- ip route add 2001:172:16::/48 via 2001:172:16:1::1
h2:
image: sflow/clab-iperf3
group: server
exec:
- ip addr add 172.16.2.2/24 dev eth1
- ip route add 172.16.0.0/16 via 172.16.2.1
- ip addr add 2001:172:16:2::2/64 dev eth1
- ip route add 2001:172:16::/48 via 2001:172:16:2::1
h3:
image: sflow/clab-iperf3
group: server
exec:
- ip addr add 172.16.3.2/24 dev eth1
- ip route add 172.16.0.0/16 via 172.16.3.1
- ip addr add 2001:172:16:3::2/64 dev eth1
- ip route add 2001:172:16::/48 via 2001:172:16:3::1
h4:
image: sflow/clab-iperf3
group: server
exec:
- ip addr add 172.16.4.2/24 dev eth1
- ip route add 172.16.0.0/16 via 172.16.4.1
- ip addr add 2001:172:16:4::2/64 dev eth1
- ip route add 2001:172:16::/48 via 2001:172:16:4::1
sflow-rt:
image: sflow/clab-sflow-rt
ports:
- 8008:8008
links:
- endpoints: ["leaf1:eth1","spine1:eth1"]
- endpoints: ["leaf1:eth2","spine2:eth1"]
- endpoints: ["leaf2:eth1","spine1:eth2"]
- endpoints: ["leaf2:eth2","spine2:eth2"]
- endpoints: ["leaf3:eth1","spine3:eth1"]
- endpoints: ["leaf3:eth2","spine4:eth1"]
- endpoints: ["leaf4:eth1","spine3:eth2"]
- endpoints: ["leaf4:eth2","spine4:eth2"]
- endpoints: ["spine1:eth3","superspine1:eth1"]
- endpoints: ["spine2:eth3","superspine2:eth1"]
- endpoints: ["spine3:eth3","superspine1:eth2"]
- endpoints: ["spine4:eth3","superspine2:eth2"]
- endpoints: ["h1:eth1","leaf1:eth3"]
mtu: 1500
- endpoints: ["h2:eth1","leaf2:eth3"]
mtu: 1500
- endpoints: ["h3:eth1","leaf3:eth3"]
mtu: 1500
- endpoints: ["h4:eth1","leaf4:eth3"]
mtu: 1500