2021-09-30 03:33:02 -05:00
|
|
|
{# Append DHCPv6 agents #}
|
2022-08-24 21:53:11 -05:00
|
|
|
{% for vlan_name in VLAN_INTERFACE %}
|
|
|
|
{% if DHCP_RELAY and vlan_name in DHCP_RELAY and DHCP_RELAY[vlan_name]['dhcpv6_servers']|length > 0 %}
|
|
|
|
{% for dhcpv6_server in DHCP_RELAY[vlan_name]['dhcpv6_servers'] %}
|
2021-09-30 03:33:02 -05:00
|
|
|
{% if dhcpv6_server | ipv6 %}
|
|
|
|
{% set _dummy = relay_for_ipv6.update({'flag': True}) %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2022-08-24 21:53:11 -05:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2021-09-30 03:33:02 -05:00
|
|
|
{% if relay_for_ipv6.flag %}
|
|
|
|
{% set _dummy = relay_for_ipv6.update({'flag': False}) %}
|
2021-10-01 21:55:03 -05:00
|
|
|
[program:dhcp6relay]
|
|
|
|
command=/usr/sbin/dhcp6relay
|
2022-10-21 12:33:10 -05:00
|
|
|
{#- Dual ToR Option #}
|
|
|
|
{% if 'subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR' %} -d{% endif %}
|
|
|
|
|
2021-09-30 03:33:02 -05:00
|
|
|
priority=3
|
|
|
|
autostart=false
|
|
|
|
autorestart=false
|
|
|
|
stdout_logfile=syslog
|
|
|
|
stderr_logfile=syslog
|
|
|
|
dependent_startup=true
|
|
|
|
dependent_startup_wait_for=start:exited
|
|
|
|
|
|
|
|
{% endif %}
|