Skip to content

Commit

Permalink
Fix(eos_cli_config_gen): Port-channel can use LACP fallback configura…
Browse files Browse the repository at this point in the history
…tion on physical interface (#1335)
  • Loading branch information
xaviramon authored Dec 3, 2021
1 parent bd8f730 commit 0c40b5d
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ interface Management1
| Ethernet10/1 | LAG Member | *access | *110 | *- | *- | 101 |
| Ethernet10/2 | LAG Member | *trunk | *110-112 | *- | *- | 102 |
| Ethernet10/3 | LAG Member | *trunk | *110-112 | *- | *- | 103 |
| Ethernet10/4 | LAG Member LACP fallback | *trunk | *112 | *- | *- | 104 |
| Ethernet15 | DC1-AGG03_Ethernet1 | *trunk | *110,201 | *- | *- | 15 |
| Ethernet16 | DC1-AGG04_Ethernet1 | *trunk | *110,201 | *- | *- | 16 |
| Ethernet50 | SRV-POD03_Eth1 | *trunk | *110,201 | *- | *- | 5 |
Expand Down Expand Up @@ -124,6 +125,14 @@ interface Ethernet10/3
description LAG Member
channel-group 103 mode active
!
interface Ethernet10/4
description LAG Member LACP fallback
channel-group 104 mode active
switchport
switchport trunk allowed vlan 100
switchport mode trunk
spanning-tree portfast
!
interface Ethernet15
description DC1-AGG03_Ethernet1
channel-group 15 mode active
Expand Down Expand Up @@ -166,6 +175,7 @@ interface Ethernet50
| Port-Channel101 | PVLAN Promiscuous Access - only one secondary | switched | access | 110 | - | - | - | - | - | - |
| Port-Channel102 | PVLAN Promiscuous Trunk - vlan translation out | switched | trunk | 110-112 | - | - | - | - | - | - |
| Port-Channel103 | PVLAN Secondary Trunk | switched | trunk | 110-112 | - | - | - | - | - | - |
| Port-Channel104 | LACP fallback individual | switched | trunk | 112 | - | - | 300 | individual | - | - |

#### Private VLAN

Expand Down Expand Up @@ -336,6 +346,14 @@ interface Port-Channel103
switchport trunk allowed vlan 110-112
switchport mode trunk
switchport trunk private-vlan secondary
!
interface Port-Channel104
description LACP fallback individual
switchport
switchport trunk allowed vlan 112
switchport mode trunk
port-channel lacp fallback timeout 300
port-channel lacp fallback individual
```

# Routing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,14 @@ interface Port-Channel103
switchport mode trunk
switchport trunk private-vlan secondary
!
interface Port-Channel104
description LACP fallback individual
switchport
switchport trunk allowed vlan 112
switchport mode trunk
port-channel lacp fallback timeout 300
port-channel lacp fallback individual
!
interface Ethernet3
description MLAG_PEER_DC1-LEAF1B_Ethernet3
channel-group 3 mode active
Expand Down Expand Up @@ -174,6 +182,14 @@ interface Ethernet10/3
description LAG Member
channel-group 103 mode active
!
interface Ethernet10/4
description LAG Member LACP fallback
channel-group 104 mode active
switchport
switchport trunk allowed vlan 100
switchport mode trunk
spanning-tree portfast
!
interface Ethernet15
description DC1-AGG03_Ethernet1
channel-group 15 mode active
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ port_channel_interfaces:
vlans: 110-112
trunk_private_vlan_secondary: true

Port-Channel104:
description: LACP fallback individual
mode: trunk
vlans: 112
lacp_fallback_timeout: 300
lacp_fallback_mode: individual

# Children interfaces
ethernet_interfaces:
Ethernet5:
Expand Down Expand Up @@ -260,3 +267,12 @@ ethernet_interfaces:
channel_group:
id: 103
mode: active

Ethernet10/4:
description: LAG Member LACP fallback
channel_group:
id: 104
mode: active
mode: trunk
vlans: 100
spanning_tree_portfast: edge
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ interface {{ ethernet_interface }}
{% if ethernet_interfaces[ethernet_interface].lacp_timer.multiplier is arista.avd.defined %}
lacp timer multiplier {{ ethernet_interfaces[ethernet_interface].lacp_timer.multiplier }}
{% endif %}
{% if port_channel_interfaces['Port-Channel' ~ ethernet_interfaces[ethernet_interface].channel_group.id].lacp_fallback_mode is arista.avd.defined("individual") %}
{% set print_ethernet = true %}
{% endif %}
{% else %}
{% set print_ethernet = true %}
{% endif %}
{% if print_ethernet is arista.avd.defined(true) %}
{% if ethernet_interfaces[ethernet_interface].mtu is arista.avd.defined %}
mtu {{ ethernet_interfaces[ethernet_interface].mtu }}
{% endif %}
Expand Down

0 comments on commit 0c40b5d

Please sign in to comment.