-
Notifications
You must be signed in to change notification settings - Fork 1
/
cvx-dcn.clab.yaml
154 lines (136 loc) · 4.21 KB
/
cvx-dcn.clab.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
name: cdc # Cumulus Data Centre
# Note: default runtime is ignite
topology:
kinds:
cvx:
image: networkop/cx:5.3.0
runtime: docker
linux:
image: akpinar/alpine:latest
nodes:
leaf01:
kind: cvx
binds:
- config/leaf01/interfaces:/etc/network/interfaces
- config/leaf01/daemons:/etc/frr/daemons
- config/leaf01/frr.conf:/etc/frr/frr.conf
- config/leaf01/snmpd.conf.cumulus:/etc/snmp/snmpd.conf.cumulus
mgmt-ipv4: 172.20.20.21
group: leaf
leaf02:
kind: cvx
binds:
- config/leaf02/interfaces:/etc/network/interfaces
- config/leaf02/daemons:/etc/frr/daemons
- config/leaf02/frr.conf:/etc/frr/frr.conf
- config/leaf02/snmpd.conf.cumulus:/etc/snmp/snmpd.conf.cumulus
mgmt-ipv4: 172.20.20.22
group: leaf
leaf03:
kind: cvx
binds:
- config/leaf03/interfaces:/etc/network/interfaces
- config/leaf03/daemons:/etc/frr/daemons
- config/leaf03/frr.conf:/etc/frr/frr.conf
- config/leaf03/snmpd.conf.cumulus:/etc/snmp/snmpd.conf.cumulus
mgmt-ipv4: 172.20.20.23
group: leaf
spine01:
kind: cvx
binds:
- config/spine01/interfaces:/etc/network/interfaces
- config/spine01/daemons:/etc/frr/daemons
- config/spine01/frr.conf:/etc/frr/frr.conf
- config/spine01/snmpd.conf.cumulus:/etc/snmp/snmpd.conf.cumulus
- config/11-remotesyslog.conf:/etc/rsyslog.d/11-remotesyslog.conf
# To test sFlow
- config/hsflowd.conf:/etc/hsflowd.conf
mgmt-ipv4: 172.20.20.11
# exec:
# - systemctl stop hsflowd.service
# - systemctl start hsflowd@mgmt.service
group: spine
spine02:
kind: cvx
binds:
- config/spine02/interfaces:/etc/network/interfaces
- config/spine02/daemons:/etc/frr/daemons
- config/spine02/frr.conf:/etc/frr/frr.conf
- config/spine02/snmpd.conf.cumulus:/etc/snmp/snmpd.conf.cumulus
mgmt-ipv4: 172.20.20.12
group: spine
server01:
kind: linux
exec:
- ip addr add 10.0.10.101/24 dev eth1
- ip route replace default via 10.0.10.1 dev eth1
mgmt-ipv4: 172.20.20.31
group: server
server02:
kind: linux
exec:
- ip addr add 10.0.20.101/24 dev eth1
- ip route replace default via 10.0.20.1 dev eth1
mgmt-ipv4: 172.20.20.32
group: server
server03:
kind: linux
exec:
- ip addr add 10.0.30.101/24 dev eth1
- ip route replace default via 10.0.30.1 dev eth1
mgmt-ipv4: 172.20.20.33
group: server
server04:
kind: linux
exec:
- ip addr add 10.0.10.102/24 dev eth1
- ip route replace default via 10.0.10.1 dev eth1
mgmt-ipv4: 172.20.20.34
group: server
server05:
kind: linux
exec:
- ip addr add 10.0.20.102/24 dev eth1
- ip route replace default via 10.0.20.1 dev eth1
mgmt-ipv4: 172.20.20.35
group: server
server06:
kind: linux
exec:
- ip addr add 10.0.30.102/24 dev eth1
- ip route replace default via 10.0.30.1 dev eth1
mgmt-ipv4: 172.20.20.36
group: server
nms:
kind: linux
image: nicolaka/netshoot
mgmt-ipv4: 172.20.20.101
group: server
sflow:
kind: linux
image: sflow/sflowtrend
mgmt-ipv4: 172.20.20.102
publish:
- udp/6343
- tcp/8087
- tcp/8443
env:
TZ: America/Halifax
group: server
links:
- endpoints: ["leaf01:swp1", "server01:eth1"]
- endpoints: ["leaf01:swp2", "server04:eth1"]
- endpoints: ["leaf02:swp1", "server02:eth1"]
- endpoints: ["leaf02:swp2", "server05:eth1"]
- endpoints: ["leaf03:swp1", "server03:eth1"]
- endpoints: ["leaf03:swp2", "server06:eth1"]
- endpoints: ["spine01:swp1", "leaf01:swp11"]
- endpoints: ["spine01:swp2", "leaf02:swp11"]
- endpoints: ["spine01:swp3", "leaf03:swp11"]
- endpoints: ["spine02:swp1", "leaf01:swp12"]
- endpoints: ["spine02:swp2", "leaf02:swp12"]
- endpoints: ["spine02:swp3", "leaf03:swp12"]
# All nodes were assigned static addresses
# to be able to use SuzieQ
mgmt:
ipv4-gw: 172.20.20.100