summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/config_ipv6_pool.j2
blob: 093887f7ec470099b1c42a81d497494ed054fad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% if client_ipv6_pool is defined and client_ipv6_pool is not none %}
[ipv6-nd]
AdvAutonomousFlag=1

{%   if client_ipv6_pool.prefix is defined and client_ipv6_pool.prefix is not none %}
[ipv6-pool]
{%     for prefix, options in client_ipv6_pool.prefix.items() %}
{{ prefix }},{{ '64 ' if options.mask is not defined else options.mask }}
{%     endfor %}
{%     if client_ipv6_pool.delegate is defined and client_ipv6_pool.delegate is not none %}
{%       for prefix, options in client_ipv6_pool.delegate.items() %}
delegate={{ prefix }},{{ options.delegation_prefix }}
{%       endfor %}
{%     endif %}
{%   endif %}
{%   if client_ipv6_pool.delegate is defined and client_ipv6_pool.delegate is not none %}
[ipv6-dhcp]
verbose=1
{%   endif %}
{% endif %}