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

Feat(eos_cli_config_gen): Add min-links in port-channel-interfaces #4790

Merged
merged 7 commits into from
Dec 12, 2024
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 @@ -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:
laxmikantchintakindi marked this conversation as resolved.
Show resolved Hide resolved
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
Loading