-
Notifications
You must be signed in to change notification settings - Fork 0
/
mirroring.clab.yml
54 lines (48 loc) · 1.26 KB
/
mirroring.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
name: mirroring
prefix: ${LAB_PREFIX:-""}
topology:
kinds:
nokia_srlinux:
image: ghcr.io/nokia/srlinux:24.7.1
linux:
image: ghcr.io/srl-labs/network-multitool
nodes:
### SPINES ###
spine1:
kind: nokia_srlinux
type: ixrd3l
startup-config: configs/spine1.cfg
### LEAFS ###
leaf1:
kind: nokia_srlinux
type: ixrd2l
startup-config: configs/leaf1.cfg
leaf2:
kind: nokia_srlinux
type: ixrd2l
startup-config: configs/leaf2.cfg
### CLIENTS ###
client1:
kind: linux
exec:
- ip address add 172.17.0.1/24 dev eth1
- ip link set dev eth1 address 00:C1:AB:00:00:01
client2:
kind: linux
exec:
- ip address add 172.17.0.2/24 dev eth1
- ip link set dev eth1 address 00:C1:AB:00:00:02
### MIRROR DESTINATIONS ###
mirror1:
kind: linux
mirror2:
kind: linux
exec:
- ip address add 192.168.1.10/24 dev eth1
links:
- endpoints: ["spine1:e1-1", "leaf1:e1-50"]
- endpoints: ["spine1:e1-2", "leaf2:e1-50"]
- endpoints: ["spine1:e1-10", "mirror2:eth1"]
- endpoints: ["leaf1:e1-1", "client1:eth1"]
- endpoints: ["leaf2:e1-1", "client2:eth1"]
- endpoints: ["leaf1:e1-10", "mirror1:eth1"]