-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrl.clab.yaml
113 lines (93 loc) · 2.19 KB
/
srl.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
name: srl
mgmt:
ipv4-subnet: 11.11.10.0/24
topology:
nodes:
R1:
kind: nokia_srlinux
image: ghcr.io/nokia/srlinux
R2:
kind: nokia_srlinux
image: ghcr.io/nokia/srlinux
R3:
kind: nokia_srlinux
image: ghcr.io/nokia/srlinux
R4:
kind: nokia_srlinux
image: ghcr.io/nokia/srlinux
H1:
kind: linux
image: vpc:latest
memory: 10m
exec:
- ip addr add 10.10.11.2/24 dev eth1
- ip route replace 0/0 via 10.10.11.1
H2:
kind: linux
image: vpc:latest
memory: 10m
exec:
- ip addr add 10.10.22.2/24 dev eth1
- ip route replace 0/0 via 10.10.22.1
H3:
kind: linux
image: vpc:latest
memory: 10m
exec:
- ip addr add 10.10.33.2/24 dev eth1
- ip route replace 0/0 via 10.10.33.1
H4:
kind: linux
image: vpc:latest
memory: 10m
exec:
- ip addr add 10.10.44.2/24 dev eth1
- ip route replace 0/0 via 10.10.44.1
#gnmic:
#kind: linux
#image: ghcr.io/openconfig/gnmic
#binds:
#- ./gnmic.yaml:/app/gnmic.yaml:ro
#- /var/run/docker.sock:/var/run/docker.sock
#cmd: " --config /app/gnmic.yaml --log subscribe"
influxdb:
kind: linux
image: influxdb:1.8.10
ports:
- 8086:8086
env:
INFLUXDB_DATA_ENGINE: tsm1
INFLUXDB_REPORTING_DISABLED: "false"
INFLUXDB_USER: gnmic
INFLUXDB_USER_PASSWORD: gnmic
INFLUXDB_DB: telemetry
chronograf:
kind: linux
image: chronograf:latest
ports:
- 8888:8888
env:
INFLUXDB_URL: http://influxdb:8086
INFLUXDB_USER: gnmic
INFLUXDB_USER_PASSWORD: gnmic
telegraf:
kind: linux
image: telegraf:latest
certificate:
issue: true
ports:
- 9273:9273
binds:
- ./telegraf/:/etc/telegraf/
- ./clab-srl/.tls/ca/:/etc/telegraf/ssl-ca
- ./clab-srl/.tls/telegraf/:/etc/telegraf/ssl-cert
cmd: '-config /etc/telegraf/telegraf.conf $TELEGRAF_OPTS'
links:
- endpoints: ["R1:e1-1", "R2:e1-1"]
- endpoints: ["R2:e1-2", "R3:e1-1"]
- endpoints: ["R3:e1-2", "R4:e1-1"]
- endpoints: ["R4:e1-2", "R1:e1-2"]
- endpoints: ["H1:eth1", "R1:e1-3"]
- endpoints: ["H2:eth1", "R2:e1-3"]
- endpoints: ["H3:eth1", "R3:e1-3"]
- endpoints: ["H4:eth1", "R4:e1-3"]