2021-10-15 17:36:38 -05:00
|
|
|
[group:dhcp-relay]
|
2021-07-16 09:31:05 -05:00
|
|
|
programs=
|
|
|
|
{%- set add_preceding_comma = { 'flag': False } %}
|
2021-10-14 00:30:19 -05:00
|
|
|
{% for vlan_name in vlan_list %}
|
|
|
|
{% if VLAN and vlan_name in VLAN and VLAN[vlan_name]['dhcp_servers'] %}
|
2021-07-16 09:31:05 -05:00
|
|
|
{% if add_preceding_comma.flag %},{% endif %}
|
|
|
|
{% set _dummy = add_preceding_comma.update({'flag': True}) %}
|
2021-10-15 17:36:38 -05:00
|
|
|
isc-dhcpv4-relay-{{ vlan_name }}
|
2021-07-16 09:31:05 -05:00
|
|
|
{%- endif %}
|
|
|
|
{# Append DHCPv6 agents #}
|
2021-10-27 15:44:38 -05:00
|
|
|
{% if DHCP_RELAY and vlan_name in DHCP_RELAY and 'dhcpv6_servers' in DHCP_RELAY[vlan_name] %}
|
2021-07-16 09:31:05 -05:00
|
|
|
{% if add_preceding_comma.flag %},{% endif %}
|
|
|
|
{% set _dummy = add_preceding_comma.update({'flag': True}) %}
|
2021-10-15 17:36:38 -05:00
|
|
|
dhcp6relay
|
2021-07-16 09:31:05 -05:00
|
|
|
{%- endif %}
|
|
|
|
{% endfor %}
|