forked from sflow-rt/containerlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
evpn3.yml
91 lines (90 loc) · 2.25 KB
/
evpn3.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
83
84
85
86
87
88
89
90
91
name: evpn3
mgmt:
network: fixedips
ipv4_subnet: 172.100.100.0/24
ipv6_subnet: 2001:172:100:100::/80
topology:
defaults:
env:
COLLECTOR: 172.100.100.8
nodes:
leaf1:
kind: linux
image: sflow/clab-frr
mgmt_ipv4: 172.100.100.2
mgmt_ipv6: 2001:172:100:100::2
env:
LOCAL_AS: 65001
NEIGHBORS: eth1 eth2
HOSTPORT: eth3
HOSTNET: evpn
EVPNSRC: "192.168.1.1"
exec:
- touch /tmp/initialized
leaf2:
kind: linux
image: sflow/clab-frr
mgmt_ipv4: 172.100.100.3
mgmt_ipv6: 2001:172:100:100::3
env:
LOCAL_AS: 65002
NEIGHBORS: eth1 eth2
HOSTPORT: eth3
HOSTNET: evpn
EVPNSRC: "192.168.1.2"
exec:
- touch /tmp/initialized
spine1:
kind: linux
image: sflow/clab-frr
mgmt_ipv4: 172.100.100.4
mgmt_ipv6: 2001:172:100:100::4
env:
LOCAL_AS: 65003
NEIGHBORS: eth1 eth2
HOSTNET: evpn
exec:
- touch /tmp/initialized
spine2:
kind: linux
image: sflow/clab-frr
mgmt_ipv4: 172.100.100.5
mgmt_ipv6: 2001:172:100:100::5
env:
LOCAL_AS: 65003
NEIGHBORS: eth1 eth2
HOSTNET: evpn
exec:
- touch /tmp/initialized
h1:
kind: linux
image: sflow/clab-iperf3
mgmt_ipv4: 172.100.100.6
mgmt_ipv6: 2001:172:100:100::6
exec:
- ip link set dev eth1 mtu 1500
- ip addr add 172.16.10.1/24 dev eth1
- ip addr add 2001:172:16:10::1/64 dev eth1
h2:
kind: linux
image: sflow/clab-iperf3
mgmt_ipv4: 172.100.100.7
mgmt_ipv6: 2001:172:100:100::7
exec:
- ip link set dev eth1 mtu 1500
- ip addr add 172.16.10.2/24 dev eth1
- ip addr add 2001:172:16:10::2/64 dev eth1
sflow-rt:
kind: linux
image: sflow/prometheus
mgmt_ipv4: 172.100.100.8
mgmt_ipv6: 2001:172:100:100::8
ports:
- 8008:8008
links:
- endpoints: ["leaf1:eth1","spine1:eth1"]
- endpoints: ["leaf1:eth2","spine2:eth1"]
- endpoints: ["leaf2:eth1","spine1:eth2"]
- endpoints: ["leaf2:eth2","spine2:eth2"]
- endpoints: ["h1:eth1","leaf1:eth3"]
- endpoints: ["h2:eth1","leaf2:eth3"]