-
Notifications
You must be signed in to change notification settings - Fork 12
/
mini-lab.cumulus.yaml
57 lines (55 loc) · 1.52 KB
/
mini-lab.cumulus.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
name: mini-lab
prefix: ""
mgmt:
network: bridge
topology:
kinds:
cvx:
image: networkop/cx:3.7.0
kernel: docker.io/grigoriymikh/kernel:4.1.0
sandbox: grigoriymikh/sandbox:latest
labels:
ansible-group: cumulus
binds:
- apt-transport-https.tar.gz:/root/jessie-apt-transport-fix.tar.gz
- files/ssh/id_rsa.pub:/root/.ssh/authorized_keys
nodes:
mini_lab_ext:
kind: bridge
leaf01:
kind: cvx
leaf02:
kind: cvx
inet:
kind: linux
image: quay.io/frrouting/frr:10.0.1
binds:
- files/inet/daemons:/etc/frr/daemons
- files/inet/frr.conf:/etc/frr/frr.conf
- files/inet/vtysh.conf:/etc/frr/vtysh.conf
- files/inet/network.sh:/root/network.sh
exec:
- sh /root/network.sh
vms:
kind: linux
image: ${MINI_LAB_VM_IMAGE}
binds:
- /dev:/dev
- scripts:/mini-lab
www:
kind: linux
image: docker.io/library/nginx:alpine-slim
network-mode: none
exec:
- ip addr add 203.0.113.3/24 dev ext
- ip route add 203.0.113.128/25 via 203.0.113.2 dev ext
links:
- endpoints: ["inet:ext", "mini_lab_ext:inet"]
mtu: 9000
- endpoints: ["www:ext", "mini_lab_ext:www"]
- endpoints: ["leaf01:swp1", "vms:lan0"]
- endpoints: ["leaf02:swp1", "vms:lan1"]
- endpoints: ["leaf01:swp2", "vms:lan2"]
- endpoints: ["leaf02:swp2", "vms:lan3"]
- endpoints: ["leaf01:swp31", "inet:eth1"]
- endpoints: ["leaf02:swp31", "inet:eth2"]