Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix L2 leaves uplinks when MLAG is not desired #544

Merged
merged 2 commits into from
Dec 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ interface Ethernet2

| Interface | Description | Type | Mode | VLANs | Native VLAN | Trunk Group | LACP Fallback Timeout | LACP Fallback Mode | MLAG ID | EVPN ESI |
| --------- | ----------- | ---- | ---- | ----- | ----------- | ------------| --------------------- | ------------------ | ------- | -------- |
| Port-Channel1 | DC1-LEAF2A_Po7 | switched | access | 110-111,120-121,130-131,160-161 | - | - | - | - | 1 | - |
| Port-Channel1 | DC1-LEAF2A_Po7 | switched | access | 110-111,120-121,130-131,160-161 | - | - | - | - | - | - |

### Port-Channel Interfaces Device Configuration

Expand All @@ -413,7 +413,6 @@ interface Port-Channel1
description DC1-LEAF2A_Po7
switchport trunk allowed vlan 110-111,120-121,130-131,160-161
switchport mode trunk
mlag 1
```

## Loopback Interfaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ interface Port-Channel1
description DC1-LEAF2A_Po7
switchport trunk allowed vlan 110-111,120-121,130-131,160-161
switchport mode trunk
mlag 1
!
interface Ethernet1
description DC1-LEAF2A_Ethernet7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ port_channel_interfaces:
description: DC1-LEAF2A_Po7
vlans: 110-111,120-121,130-131,160-161
mode: trunk
mlag: 1
ethernet_interfaces:
Ethernet1:
peer: DC1-LEAF2A
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,13 @@ l2leaf:
platform: vEOS-LAB
parent_l3leafs: [ DC1-SVC3A, DC1-SVC3B ]
uplink_interfaces: [ Ethernet1, Ethernet2 ]
mlag: true
mlag_interfaces: [ Ethernet3, Ethernet4 ]
spanning_tree_mode: mstp
spanning_tree_priority: 16384
node_groups:
DC1_L2LEAF1:
mlag: false
parent_l3leafs: [ DC1-LEAF2A, DC1-LEAF2B ]
filter:
tenants: [ Tenant_A ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
description: {{ parent_l3leafs[loop.index0]}}_{{ 'Po' + l3leaf.channel_group_id }}
vlans: {{ leaf.vlans | arista.avd.list_compress }}
mode: trunk
{% if leaf.mlag == true %}
mlag: {{ channel_group_id }}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}