Skip to content

Commit

Permalink
Updating documentation and a small bug in ethernet interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Jan 17, 2025
1 parent 3052044 commit eb01803
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
#}
{# doc - dhcp server #}
{% set ethernet_interfaces_dhcp_server = [] %}
{% set port_channel_interfaces_dhcp_server = [] %}
{% for ethernet_interface in ethernet_interfaces | arista.avd.natural_sort('name') %}
{% if ethernet_interface.dhcp_server_ipv4 is arista.avd.defined(true) or ethernet_interface.dhcp_server_ipv4 is arista.avd.defined(true) %}
{% if ethernet_interface.dhcp_server_ipv4 is arista.avd.defined(true) or ethernet_interface.dhcp_server_ipv6 is arista.avd.defined(true) %}
{% do ethernet_interfaces_dhcp_server.append(ethernet_interface) %}
{% endif %}
{% endfor %}
{% if (ethernet_interfaces_dhcp_server | length > 0 or dhcp_servers is arista.avd.defined) %}
{% for port_channel_interface in port_channel_interfaces | arista.avd.natural_sort('name') %}
{% if port_channel_interface.dhcp_server_ipv4 is arista.avd.defined(true) or port_channel_interfaces.dhcp_server_ipv6 is arista.avd.defined(true) %}
{% do port_channel_interfaces_dhcp_server.append(port_channel_interface) %}
{% endif %}
{% endfor %}
{% if (ethernet_interfaces_dhcp_server | length > 0 or port_channel_interfaces_dhcp_server | length > 0 or dhcp_servers is arista.avd.defined) %}

## DHCP Server
{% if dhcp_servers is arista.avd.defined %}
Expand Down

0 comments on commit eb01803

Please sign in to comment.