-
Notifications
You must be signed in to change notification settings - Fork 0
/
freertr.clab.yml
46 lines (43 loc) · 1.09 KB
/
freertr.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
name: freertr
topology:
nodes:
n1:
kind: linux
image: freertr/freertr-p4emu:latest
binds:
- cfgs/n1-sw.txt:/opt/freertr/run/n1-sw.txt
env:
FREERTR_HOSTNAME: n1
FREERTR_INTF_LIST: eth1 eth2
n2:
kind: linux
image: freertr/freertr-p4emu:latest
binds:
- cfgs/n2-sw.txt:/opt/freertr/run/n2-sw.txt
env:
FREERTR_HOSTNAME: n2
FREERTR_INTF_LIST: eth1 eth2
n3:
kind: linux
image: freertr/freertr-p4emu:latest
binds:
- cfgs/n3-sw.txt:/opt/freertr/run/n3-sw.txt
env:
FREERTR_HOSTNAME: n3
FREERTR_INTF_LIST: eth1 eth2
host1:
kind: linux
image: alpine:latest
exec:
- ip address add 192.168.1.10/24 dev eth1
host2:
kind: linux
image: alpine:latest
exec:
- ip address add 192.168.2.10/24 dev eth1
links:
- endpoints: ["n1:eth1","host1:eth1"]
- endpoints: ["n2:eth1","host2:eth1"]
- endpoints: ["n1:eth2","n2:eth2"]
- endpoints: ["n1:eth3","n3:eth1"]
- endpoints: ["n2:eth3","n3:eth2"]