-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathnanog83.clab.yaml
178 lines (161 loc) · 5.18 KB
/
nanog83.clab.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
name: nanog83
topology:
defaults:
kind: srl
kinds:
srl:
image: ghcr.io/nokia/srlinux
nodes:
super-spine1:
type: ixr6
super-spine2:
type: ixr6
spine11:
group: spines
spine12:
group: spines
spine21:
group: spines
spine22:
group: spines
leaf11:
leaf12:
leaf13:
leaf14:
leaf21:
leaf22:
leaf23:
leaf24:
client1:
kind: linux
image: ghcr.io/hellt/network-multitool
group: clients
client2:
kind: linux
image: ghcr.io/hellt/network-multitool
group: clients
client3:
kind: linux
image: ghcr.io/hellt/network-multitool
group: clients
client4:
kind: linux
image: ghcr.io/hellt/network-multitool
group: clients
gnmic1:
kind: linux
image: ghcr.io/karimra/gnmic:0.20.0
binds:
- ./gnmic.yaml:/app/gnmic.yaml:ro
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 7890:7890 # gnmic API port
- 9804:9804 # prometheus output endpoint
env:
GNMIC_API: :7890
GNMIC_CLUSTERING_INSTANCE_NAME: clab-nanog83-gnmic1
GNMIC_CLUSTERING_SERVICE_ADDRESS: clab-nanog83-gnmic1
GNMIC_OUTPUTS_OUTPUT1_LISTEN: clab-nanog83-gnmic1:9804
cmd: '--config /app/gnmic.yaml subscribe'
gnmic2:
kind: linux
image: ghcr.io/karimra/gnmic:0.20.0
binds:
- ./gnmic.yaml:/app/gnmic.yaml:ro
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 7891:7891 # gnmic API port
- 9805:9805 # prometheus output endpoint
env:
GNMIC_API: :7891
GNMIC_CLUSTERING_INSTANCE_NAME: clab-nanog83-gnmic2
GNMIC_CLUSTERING_SERVICE_ADDRESS: clab-nanog83-gnmic2
GNMIC_OUTPUTS_OUTPUT1_LISTEN: clab-nanog83-gnmic2:9805
cmd: '--config /app/gnmic.yaml subscribe'
gnmic3:
kind: linux
image: ghcr.io/karimra/gnmic:0.20.0
binds:
- ./gnmic.yaml:/app/gnmic.yaml:ro
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 7892:7892 # gnmic API port
- 9806:9806 # prometheus output endpoint
env:
GNMIC_API: :7892
GNMIC_CLUSTERING_INSTANCE_NAME: clab-nanog83-gnmic3
GNMIC_CLUSTERING_SERVICE_ADDRESS: clab-nanog83-gnmic3
GNMIC_OUTPUTS_OUTPUT1_LISTEN: clab-nanog83-gnmic3:9806
cmd: '--config /app/gnmic.yaml subscribe'
consul-agent:
kind: linux
image: consul:latest
ports:
- 8500:8500
- 8600:8600/udp
cmd: 'agent -server -ui -bind=127.0.0.1 -node=server-1 -bootstrap-expect=1 -client=0.0.0.0'
prometheus:
kind: linux
image: prom/prometheus:latest
user: 65534:65534
ports:
- 9090:9090
binds:
- ./prometheus/:/etc/prometheus/
cmd: |
--config.file=/etc/prometheus/prometheus.yaml
--web.console.libraries=/usr/share/prometheus/console_libraries
--web.console.templates=/usr/share/prometheus/consoles
--log.level=debug
grafana:
kind: linux
image: grafana/grafana:latest
binds:
- grafana/datasources/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
- grafana/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- grafana/dashboards/:/var/lib/grafana/dashboards
ports:
- 3000:3000
links:
# super-spine1 links
- endpoints: ["super-spine1:e1-1", "spine11:e1-1"]
- endpoints: ["super-spine1:e1-2", "spine12:e1-1"]
- endpoints: ["super-spine1:e1-3", "spine21:e1-1"]
- endpoints: ["super-spine1:e1-4", "spine22:e1-1"]
# super-spine2 links
- endpoints: ["super-spine2:e1-1", "spine11:e1-2"]
- endpoints: ["super-spine2:e1-2", "spine12:e1-2"]
- endpoints: ["super-spine2:e1-3", "spine21:e1-2"]
- endpoints: ["super-spine2:e1-4", "spine22:e1-2"]
# spine1 links
- endpoints: ["spine11:e1-3", "leaf11:e1-1"]
- endpoints: ["spine11:e1-4", "leaf12:e1-1"]
- endpoints: ["spine11:e1-5", "leaf13:e1-1"]
- endpoints: ["spine11:e1-6", "leaf14:e1-1"]
# spine2 links
- endpoints: ["spine12:e1-3", "leaf11:e1-2"]
- endpoints: ["spine12:e1-4", "leaf12:e1-2"]
- endpoints: ["spine12:e1-5", "leaf13:e1-2"]
- endpoints: ["spine12:e1-6", "leaf14:e1-2"]
# spine3 links
- endpoints: ["spine21:e1-3", "leaf21:e1-1"]
- endpoints: ["spine21:e1-4", "leaf22:e1-1"]
- endpoints: ["spine21:e1-5", "leaf23:e1-1"]
- endpoints: ["spine21:e1-6", "leaf24:e1-1"]
# spine4 links
- endpoints: ["spine22:e1-3", "leaf21:e1-2"]
- endpoints: ["spine22:e1-4", "leaf22:e1-2"]
- endpoints: ["spine22:e1-5", "leaf23:e1-2"]
- endpoints: ["spine22:e1-6", "leaf24:e1-2"]
# client1 links
- endpoints: ["leaf11:e1-48", "client1:eth1"]
- endpoints: ["leaf12:e1-48", "client1:eth2"]
# client2 links
- endpoints: ["leaf13:e1-48", "client2:eth1"]
- endpoints: ["leaf14:e1-48", "client2:eth2"]
# client3 links
- endpoints: ["leaf21:e1-48", "client3:eth1"]
- endpoints: ["leaf22:e1-48", "client3:eth2"]
# client4 links
- endpoints: ["leaf23:e1-48", "client4:eth1"]
- endpoints: ["leaf24:e1-48", "client4:eth2"]