Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Add support for configuring for a Port-Chan…
Browse files Browse the repository at this point in the history
…nel interface
  • Loading branch information
Shivani-gslab authored and laxmikantchintakindi committed Jan 17, 2025
1 parent 609668a commit 79f4cca
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5494,6 +5494,7 @@ interface Port-Channel112
switchport
ip address dhcp
dhcp client accept default-route
dhcp server ipv4
port-channel lacp fallback individual
port-channel lacp fallback timeout 5
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2059,6 +2059,7 @@ interface Port-Channel112
switchport
ip address dhcp
dhcp client accept default-route
dhcp server ipv4
port-channel lacp fallback individual
port-channel lacp fallback timeout 5
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ port_channel_interfaces:
lacp_fallback_mode: individual
ip_address: dhcp
dhcp_client_accept_default_route: true
dhcp_server_ipv4: true

- name: Port-Channel113
description: interface_with_mpls_enabled
Expand All @@ -729,6 +730,7 @@ port_channel_interfaces:
ip_address: 172.31.128.9/31
# This won't be rendered because IP address is not DHCP
dhcp_client_accept_default_route: true
dhcp_server_ipv4: false
mpls:
ip: true
ldp:
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 @@ -356,6 +356,9 @@ interface {{ port_channel_interface.name }}
bfd per-link
{% endif %}
{% endif %}
{% if port_channel_interface.dhcp_server_ipv4 is arista.avd.defined(true) %}
dhcp server ipv4
{% endif %}
{% if port_channel_interface.ip_igmp_host_proxy.enabled is arista.avd.defined(true) %}
{% set host_proxy_cli = "ip igmp host-proxy" %}
{{ host_proxy_cli }}
Expand Down
5 changes: 5 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 @@ -814,6 +814,9 @@ keys:
dhcp_client_accept_default_route:
type: bool
description: Install default-route obtained via DHCP.
dhcp_server_ipv4:
type: bool
description: Enable IPv4 DHCP server.
ip_verify_unicast_source_reachable_via:
type: str
valid_values:
Expand Down

0 comments on commit 79f4cca

Please sign in to comment.