2021-09-22 18:05:03 -05:00
|
|
|
[group:dhcp-relay]
|
2021-07-16 09:31:05 -05:00
|
|
|
programs=
|
|
|
|
{%- set add_preceding_comma = { 'flag': False } %}
|
|
|
|
{% for vlan_name in VLAN_INTERFACE %}
|
|
|
|
{# Append DHCPv4 agents #}
|
|
|
|
{% if VLAN and vlan_name in VLAN and 'dhcp_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcp_servers']|length > 0 %}
|
|
|
|
{% if add_preceding_comma.flag %},{% endif %}
|
|
|
|
{% set _dummy = add_preceding_comma.update({'flag': True}) %}
|
|
|
|
isc-dhcpv4-relay-{{ vlan_name }}
|
|
|
|
{%- endif %}
|
|
|
|
{# Append DHCPv6 agents #}
|
|
|
|
{% if VLAN and vlan_name in VLAN and 'dhcpv6_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcpv6_servers']|length > 0 %}
|
|
|
|
{% if add_preceding_comma.flag %},{% endif %}
|
|
|
|
{% set _dummy = add_preceding_comma.update({'flag': True}) %}
|
2021-09-22 18:05:03 -05:00
|
|
|
dhcp6relay
|
2021-07-16 09:31:05 -05:00
|
|
|
{%- endif %}
|
|
|
|
{% endfor %}
|