2021-07-16 09:31:05 -05:00
|
|
|
{# Append DHCPv6 agents #}
|
2021-10-14 00:30:19 -05:00
|
|
|
{# Create a program entry for each DHCPv6 relay agent instance #}
|
|
|
|
{% for vlan_name in vlan_list %}
|
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] %}
|
|
|
|
{% for dhcpv6_server in DHCP_RELAY[vlan_name]['dhcpv6_servers'] %}
|
2021-07-16 09:31:05 -05:00
|
|
|
{% if dhcpv6_server | ipv6 %}
|
|
|
|
{% set _dummy = relay_for_ipv6.update({'flag': True}) %}
|
|
|
|
{% endif %}
|
2021-10-15 17:36:38 -05:00
|
|
|
{% endfor %}
|
2021-07-16 09:31:05 -05:00
|
|
|
{% if relay_for_ipv6.flag %}
|
|
|
|
{% set _dummy = relay_for_ipv6.update({'flag': False}) %}
|
2021-10-15 17:36:38 -05:00
|
|
|
[program:dhcp6relay]
|
|
|
|
command=/usr/sbin/dhcp6relay
|
2021-07-16 09:31:05 -05:00
|
|
|
|
|
|
|
priority=3
|
|
|
|
autostart=false
|
|
|
|
autorestart=false
|
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
|
|
|
|
2021-10-15 17:36:38 -05:00
|
|
|
{% endif %}
|
2021-07-16 09:31:05 -05:00
|
|
|
{% endif %}
|
2021-10-14 00:30:19 -05:00
|
|
|
{% endfor %}
|