summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-relay/dhcrelay6.conf.tmpl
blob: 1652165926f031657a0dcbe49cd5ea549b0a6c96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
### Autogenerated by dhcpv6_relay.py ###

{# upstream_interface is mandatory so it's always present #}
{% set upstream = namespace(value='')  %}
{% for interface, config in upstream_interface.items() %}
{%   for address in config.address %}
{%     set upstream.value = upstream.value + '-u ' + address + '%' + interface + ' ' %}
{%   endfor %}
{% endfor %}
{# listen_interface is mandatory so it's always present #}
{% set listen = namespace(value='')  %}
{% for interface, config in listen_interface.items() %}
{%   set listen.value = listen.value + '-l ' + config.address + '%' + interface + ' ' %}
{% endfor %}

OPTIONS="{{ listen.value }} {{ upstream.value }} -c {{ max_hop_count }} {{ '-I' if use_interface_id_option is defined }}"