-
Notifications
You must be signed in to change notification settings - Fork 1
/
srl-elk.clab.yml
136 lines (133 loc) · 3.15 KB
/
srl-elk.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
name: elk
prefix: ""
mgmt:
network: srl_elk_lab
ipv4-subnet: 172.22.22.0/24
topology:
kinds:
srl:
image: ghcr.io/nokia/srlinux:23.3.1
type: ixrd3
wait-for:
- kibana
linux:
image: ghcr.io/hellt/network-multitool
nodes:
#
# DC FABRIC
#
leaf1:
mgmt-ipv4: 172.22.22.21
kind: srl
group: tier-1
startup-config: fabric/leaf1.cfg
leaf2:
kind: srl
mgmt-ipv4: 172.22.22.22
group: tier-1
startup-config: fabric/leaf2.cfg
leaf3:
kind: srl
mgmt-ipv4: 172.22.22.23
group: tier-1
startup-config: fabric/leaf3.cfg
spine1:
kind: srl
mgmt-ipv4: 172.22.22.25
group: tier-2
startup-config: fabric/spine1.cfg
spine2:
kind: srl
mgmt-ipv4: 172.22.22.26
group: tier-2
startup-config: fabric/spine2.cfg
#
# ELK STACK
#
elastic:
kind: linux
mgmt-ipv4: 172.22.22.10
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.7
env:
node.name: es01
discovery.type: single-node
ES_JAVA_OPTS: "-Xms1g -Xmx1g"
ports:
- 9200:9200/tcp
logstash:
kind: linux
mgmt-ipv4: 172.22.22.11
image: docker.elastic.co/logstash/logstash:7.17.7
cmd: --config.reload.automatic
binds:
- ./elk/logstash/pipeline/:/usr/share/logstash/pipeline/
- ./elk/logstash/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./elk/logstash/patterns:/var/lib/logstash/patterns
- ./elk/logstash/logs/fail_to_parse_srl.log:/srl/fail_to_parse_srl.log
- ./elk/logstash/index-template.json:/tmp/index-template.json
wait-for:
- elastic
kibana:
kind: linux
mgmt-ipv4: 172.22.22.12
image: docker.elastic.co/kibana/kibana:7.17.7
binds:
- ./elk/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- 5601:5601/tcp
wait-for:
- elastic
#
# CLIENTS
#
client1:
kind: linux
mgmt-ipv4: 172.22.22.31
exec:
- ip link set eth1 down
- ip addr add 172.16.3.1/24 dev eth1
- ip link set eth1 up
client2:
kind: linux
mgmt-ipv4: 172.22.22.32
exec:
- ip link add bond0 type bond
- ip link set bond0 type bond miimon 100 mode 802.3ad
- ip link set bond0 type bond lacp_rate fast
- 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 bond0 up
- ip addr add 172.16.3.2/24 dev bond0
#
# LINKS
#
links:
- endpoints:
- leaf1:e1-1
- spine1:e1-1
- endpoints:
- leaf1:e1-2
- spine2:e1-1
- endpoints:
- leaf2:e1-1
- spine1:e1-2
- endpoints:
- leaf2:e1-2
- spine2:e1-2
- endpoints:
- leaf3:e1-1
- spine1:e1-3
- endpoints:
- leaf3:e1-2
- spine2:e1-3
- endpoints:
- client1:eth1
- leaf1:e1-10
- endpoints:
- client2:eth1
- leaf2:e1-10
- endpoints:
- client2:eth2
- leaf3:e1-10