-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-4-node.yml
82 lines (75 loc) · 1.61 KB
/
docker-compose-4-node.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
# The 4-node topology is comprised of routers xrd31 thru xrd34
services:
# Ubuntu containers
source:
non_xr: true
image: alpine:3.15
container_name: source
stdin_open: true
tty: true
cap_add:
- NET_ADMIN
command: /bin/sh -c "ip route add 10.0.0.0/8 via 10.0.25.1 && /bin/sh"
networks:
source-xrd25:
ipv4_address: 10.0.25.2
# XRd
xrd91:
xr_startup_cfg: config/xrd91.cfg
xr_interfaces:
- Gi0/0/0/0
- Gi0/0/0/1
- Gi0/0/0/2
- Gi0/0/0/3
- Mg0/RP0/CPU0/0
xrd92:
xr_startup_cfg: config/xrd92.cfg
xr_interfaces:
- Gi0/0/0/0
- Gi0/0/0/1
- Gi0/0/0/2
- Gi0/0/0/3
- Mg0/RP0/CPU0/0
xrd93:
xr_startup_cfg: config/xrd93.cfg
xr_interfaces:
- Gi0/0/0/0
- Gi0/0/0/1
- Gi0/0/0/2
- Gi0/0/0/3
- Mg0/RP0/CPU0/0
xrd94:
xr_startup_cfg: config/xrd94.cfg
xr_interfaces:
- Gi0/0/0/0
- Gi0/0/0/1
- Gi0/0/0/2
- Gi0/0/0/3
- Mg0/RP0/CPU0/0
xr_l2networks:
- ["xrd91:Gi0/0/0/0", "xrd92:Gi0/0/0/0"]
- ["xrd91:Gi0/0/0/1", "xrd93:Gi0/0/0/2"]
- ["xrd92:Gi0/0/0/2", "xrd94:Gi0/0/0/0"]
- ["xrd93:Gi0/0/0/1", "xrd94:Gi0/0/0/1"]
networks:
mgmt:
xr_interfaces:
- xrd91:Mg0/RP0/CPU0/0
- xrd92:Mg0/RP0/CPU0/0
- xrd93:Mg0/RP0/CPU0/0
- xrd94:Mg0/RP0/CPU0/0
ipam:
config:
- subnet: 172.40.0.0/24
xrd91-host:
ipam:
config:
- subnet: 10.0.91.0/24
xr_interfaces:
- xrd91:Gi0/0/0/2
xrd94-host:
ipam:
config:
- subnet: 10.10.94.0/24
xr_interfaces:
- xrd94:Gi0/0/0/2