-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy path01-esi-lag.yml
More file actions
97 lines (85 loc) · 2.2 KB
/
Copy path01-esi-lag.yml
File metadata and controls
97 lines (85 loc) · 2.2 KB
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
message: |
The devices under test are an ESI-LAG pair connected to an Arista EOS switch. The
Arista EOS switch should have a working LAG, and the attached hosts should be
able to ping each other.
plugin: [ 'evpn.multihoming' ]
defaults.vxlan.start_vni: 20000
bgp.as: 65000
evpn.ethernet_segments:
#seg_1.auto: true
seg_1.id: 00:11:22:33:44:55:66:77:88:99
groups:
_auto_create: true
switches:
members: [ dut_s1, dut_s2 ]
module: [ vlan, vxlan, ospf, bgp, evpn, lag ]
evpn._junos_default_macvrf: true # let's keep it simple for now
probes:
members: [ x1 ]
module: [ lag, vlan ]
device: eos
hosts:
members: [ h1, h2, h3 ]
device: linux
provider: clab
vlans:
red:
mode: bridge
links: [ h1-x1, h2-dut_s1, h3-dut_s2 ]
links:
# EVPN/VXLAN Link
- dut_s1:
dut_s2:
mtu: 1600
# ESI-LAG
- lag:
members:
- dut_s1:
lag.lacp_system_id: 1
evpn.es: seg_1
x1:
- dut_s2:
lag.lacp_system_id: 1
evpn.es: seg_1
x1:
vlan.access: red
defaults.devices.dellos10.netlab_validate.lag.wait: 120
validate:
lag:
description: Check LAG ports on X1
wait: 30
wait_msg: Waiting for LAG to start
nodes: [ x1 ]
devices: [ eos ]
pass: The LAG is active
fail: X1 cannot establish a LAG with both switches in MLAG pair
show: port-channel | json
valid: >-
len(portChannels['Port-Channel1'].activePorts) == 2
ping:
description: End-to-end connectivity test
nodes: [ h2, h3 ]
wait_msg: Waiting for STP to enable the ports
# devices on libvirt require more time (i.e., Test succeeded in 51.8 seconds)
wait: 60
plugin: ping('h1')
orphan:
description: Disable one of the links on X1
nodes: [ x1 ]
config:
template: ifdown
variable.state: down
failover:
description: End-to-end connectivity after a LAG member failure
nodes: [ h2, h3 ]
wait_msg: Waiting for ESI-LAG convergence
level: warning
# devices on libvirt require more time (i.e., Test succeeded in 51.8 seconds)
wait: 60
plugin: ping('h1')
recover:
description: Re-enable the link on X1
nodes: [ x1 ]
config:
template: ifdown
variable.state: up