2021-07-16 09:31:05 -05:00
|
|
|
{# 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 %}
|
|
|
|
{% for dhcpv6_server in VLAN[vlan_name]['dhcpv6_servers'] %}
|
|
|
|
{% if dhcpv6_server | ipv6 %}
|
|
|
|
{% set _dummy = relay_for_ipv6.update({'flag': True}) %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if relay_for_ipv6.flag %}
|
|
|
|
{% set _dummy = relay_for_ipv6.update({'flag': False}) %}
|
2021-09-22 18:05:03 -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
|
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|