-
Notifications
You must be signed in to change notification settings - Fork 5
/
st.clab.yml
177 lines (162 loc) · 4.92 KB
/
st.clab.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
# Copyright 2020 Nokia
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
name: st # short for streaming telemetry ;)
prefix: ""
mgmt:
network: st
ipv4-subnet: 172.80.80.0/24
topology:
defaults:
kind: srl
kinds:
vr-sros:
image: vrnetlab/vr-sros:23.3.R1
license: ./license_sr.key
srl:
image: ghcr.io/nokia/srlinux:23.3.1
type: ixrd2l
linux:
image: ghcr.io/hellt/network-multitool
nodes:
### DCGWS ###
dcgw1:
kind: vr-sros
mgmt-ipv4: 172.80.80.51
type: sr-1
startup-config: configs/dci/dcgw1.partial.cfg
dcgw2:
kind: vr-sros
mgmt-ipv4: 172.80.80.52
type: sr-1
startup-config: configs/dci/dcgw2.partial.cfg
### SPINES ###
spine1:
type: ixrd3l
group: spine
startup-config: configs/fabric/spine1.cfg
mgmt-ipv4: 172.80.80.21
spine2:
type: ixrd3l
group: spine
startup-config: configs/fabric/spine2.cfg
mgmt-ipv4: 172.80.80.22
### LEAFS ###
leaf1:
startup-config: configs/fabric/leaf1.cfg
mgmt-ipv4: 172.80.80.11
group: leaf
leaf2:
startup-config: configs/fabric/leaf2.cfg
mgmt-ipv4: 172.80.80.12
group: leaf
leaf3:
startup-config: configs/fabric/leaf3.cfg
mgmt-ipv4: 172.80.80.13
group: leaf
### CLIENTS ###
client1:
kind: linux
mgmt-ipv4: 172.80.80.31
exec:
- ip address add 172.17.0.1/24 dev eth1
- ip -6 address add 2002::172:17:0:1/96 dev eth1
- iperf3 -s -p 5201 -D > iperf3_1.log
- iperf3 -s -p 5202 -D > iperf3_2.log
group: server
client2:
kind: linux
mgmt-ipv4: 172.80.80.32
binds:
- configs/client2:/config
exec:
- ip address add 172.17.0.2/24 dev eth1
- ip -6 address add 2002::172:17:0:2/96 dev eth1
group: server
client3:
kind: linux
mgmt-ipv4: 172.80.80.33
binds:
- configs/client3:/config
exec:
- ip address add 172.17.0.3/24 dev eth1
- ip -6 address add 2002::172:17:0:3/96 dev eth1
group: server
client4:
kind: linux
mgmt-ipv4: 172.80.80.34
binds:
- configs/client4:/config
exec:
- bash /config/eth1.sh
- ip address add 172.17.0.4/24 dev eth1.10
- ip -6 address add 2002::172:17:0:4/96 dev eth1.10
group: server
client5:
kind: linux
mgmt-ipv4: 172.80.80.35
binds:
- configs/client5:/config
exec:
- bash /config/eth1.sh
- ip address add 172.17.0.5/24 dev eth1.10
- ip -6 address add 2002::172:17:0:5/96 dev eth1.10
group: server
client6:
kind: linux
mgmt-ipv4: 172.80.80.36
exec:
- ip address add 172.17.0.6/24 dev eth1
- ip -6 address add 2002::172:17:0:6/96 dev eth1
- iperf3 -s -p 5214 -D > iperf6_4.log
- iperf3 -s -p 5215 -D > iperf6_5.log
group: server
### TELEMETRY STACK ###
gnmic:
kind: linux
mgmt-ipv4: 172.80.80.41
image: ghcr.io/openconfig/gnmic:0.30.0
binds:
- gnmic-config.yml:/gnmic-config.yml:ro
cmd: --config /gnmic-config.yml --log subscribe
group: "10" # group 10 is assigned to the nodes of a telemetry stack
prometheus:
kind: linux
mgmt-ipv4: 172.80.80.42
image: prom/prometheus:v2.37.8
binds:
- configs/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
cmd: --config.file=/etc/prometheus/prometheus.yml
ports:
- 9090:9090
group: "10"
grafana:
kind: linux
mgmt-ipv4: 172.80.80.43
image: grafana/grafana:9.5.2
binds:
- configs/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
- configs/grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- configs/grafana/dashboards:/var/lib/grafana/dashboards
ports:
- 3000:3000
env:
GF_INSTALL_PLUGINS: https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-1.0.0d.220606199-SNAPSHOT.zip;agenty-flowcharting-panel
group: "10"
links:
- endpoints: ["spine1:e1-1", "leaf1:e1-49"]
- endpoints: ["spine1:e1-2", "leaf2:e1-49"]
- endpoints: ["spine1:e1-3", "leaf3:e1-49"]
- endpoints: ["spine2:e1-1", "leaf1:e1-50"]
- endpoints: ["spine2:e1-2", "leaf2:e1-50"]
- endpoints: ["spine2:e1-3", "leaf3:e1-50"]
- endpoints: ["leaf1:e1-1", "client1:eth1"]
- endpoints: ["leaf2:e1-1", "client2:eth1"]
- endpoints: ["leaf3:e1-1", "client3:eth1"]
- endpoints: ["dcgw1:eth1", "spine1:e1-31"]
- endpoints: ["dcgw2:eth1", "spine1:e1-32"]
- endpoints: ["dcgw1:eth2", "spine2:e1-31"]
- endpoints: ["dcgw2:eth2", "spine2:e1-32"]
- endpoints: ["client4:eth1", "dcgw1:eth3"]
- endpoints: ["client5:eth1", "dcgw2:eth3"]
- endpoints: ["leaf2:e1-2", "client6:eth1"]