Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add min-links in port-channel-interfaces (a…
Browse files Browse the repository at this point in the history
…ristanetworks#4790)

Co-authored-by: laxmikantchintakindi <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Guillaume Mulocher <[email protected]>
  • Loading branch information
4 people authored Dec 12, 2024
1 parent 03a4f11 commit 0d60a0e
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5256,6 +5256,7 @@ interface Port-Channel104
switchport trunk allowed vlan 112
switchport mode trunk
switchport
port-channel min-links 3
port-channel lacp fallback individual
port-channel lacp fallback timeout 300
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,7 @@ interface Port-Channel104
switchport trunk allowed vlan 112
switchport mode trunk
switchport
port-channel min-links 3
port-channel lacp fallback individual
port-channel lacp fallback timeout 300
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ port_channel_interfaces:
allowed_vlan: 112
lacp_fallback_timeout: 300
lacp_fallback_mode: individual
min_links: 3

- name: Port-Channel105
switchport:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ interface {{ port_channel_interface.name }}
{% if port_channel_interface.mac_access_group_out is arista.avd.defined %}
mac access-group {{ port_channel_interface.mac_access_group_out }} out
{% endif %}
{% if port_channel_interface.min_links is arista.avd.defined %}
port-channel min-links {{ port_channel_interface.min_links }}
{% endif %}
{% if port_channel_interface.lacp_fallback_mode is arista.avd.defined %}
port-channel lacp fallback {{ port_channel_interface.lacp_fallback_mode }}
{% endif %}
Expand Down
12 changes: 12 additions & 0 deletions python-avd/pyavd/_eos_cli_config_gen/schema/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,15 @@ keys:
- str
min: 0
max: 300
min_links:
type: int
convert_types:
- str
min: 0
max: 120
description: |-
Minimum number of ports required up before bringing up a port-channel.
Maximum in `min_links` is hardware dependent.
lacp_fallback_mode:
type: str
valid_values:
Expand Down

0 comments on commit 0d60a0e

Please sign in to comment.