-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmini-lab.capms.yaml
More file actions
90 lines (88 loc) · 2.74 KB
/
mini-lab.capms.yaml
File metadata and controls
90 lines (88 loc) · 2.74 KB
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
# flavor for mini-lab cluster-api-provider-metal-stack
name: mini-lab
prefix: ""
mgmt:
network: mini_lab_ext
topology:
defaults:
kind: linux
kinds:
dell_sonic:
image: ${MINI_LAB_SONIC_IMAGE}
group: leaves
enforce-startup-config: true
stages:
healthy:
exec:
- command: date
phase: on-exit
nodes:
metal-control-plane-control-plane:
kind: ext-container
exec:
- ip route add 203.0.113.128/25 via 203.0.113.128 dev eth0
exit:
image: quay.io/frrouting/frr:10.3.0
network-mode: none
binds:
- files/exit/daemons:/etc/frr/daemons
- files/exit/frr.conf:/etc/frr/frr.conf
- files/exit/vtysh.conf:/etc/frr/vtysh.conf
- files/exit/network.sh:/root/network.sh
exec:
- sh /root/network.sh
kea:
kind: linux
network-mode: container:exit # join the network namespace of inet
image: docker.cloudsmith.io/isc/docker/kea-dhcp4:2.6.0
binds:
- files/kea.json:/etc/kea/kea-dhcp4.conf
mini_lab_ext:
kind: bridge
leaf01:
kind: dell_sonic
startup-config: files/startup-config/leaf01_${MINI_LAB_DELL_SONIC_VERSION}.json
leaf02:
kind: dell_sonic
startup-config: files/startup-config/leaf02_${MINI_LAB_DELL_SONIC_VERSION}.json
machine01:
group: machines
image: ${MINI_LAB_VM_IMAGE}
env:
QEMU_CPU_CORES: 2
QEMU_DISK_SIZE: 20G
UUID: 00000000-0000-0000-0000-000000000001
machine02:
group: machines
image: ${MINI_LAB_VM_IMAGE}
env:
QEMU_CPU_CORES: 2
QEMU_DISK_SIZE: 20G
UUID: 00000000-0000-0000-0000-000000000002
machine03:
group: machines
image: ${MINI_LAB_VM_IMAGE}
env:
QEMU_CPU_CORES: 2
QEMU_DISK_SIZE: 20G
UUID: 00000000-0000-0000-0000-000000000003
machine04:
group: machines
image: ${MINI_LAB_VM_IMAGE}
env:
QEMU_CPU_CORES: 2
QEMU_DISK_SIZE: 20G
UUID: 00000000-0000-0000-0000-000000000004
links:
- endpoints: ["exit:mini_lab_ext", "mini_lab_ext:exit"]
mtu: 9000
- endpoints: ["leaf01:eth1", "machine01:lan0"] # Ethernet0
- endpoints: ["leaf02:eth1", "machine01:lan1"] # Ethernet0
- endpoints: ["leaf01:eth2", "machine02:lan0"] # Ethernet1
- endpoints: ["leaf02:eth2", "machine02:lan1"] # Ethernet1
- endpoints: ["leaf01:eth3", "machine03:lan0"] # Ethernet2
- endpoints: ["leaf02:eth3", "machine03:lan1"] # Ethernet2
- endpoints: ["leaf01:eth4", "machine04:lan0"] # Ethernet3
- endpoints: ["leaf02:eth4", "machine04:lan1"] # Ethernet3
- endpoints: ["leaf01:eth10", "exit:eth1"] # Ethernet9
- endpoints: ["leaf02:eth10", "exit:eth2"] # Ethernet9