summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-client/ipv6.tmpl
blob: 8957516e20a285053c373234dd3e37af2cad0936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# generated by dhcp.py
# man https://www.unix.com/man-page/debian/5/dhcp6c.conf/

interface {{ ifname }} {
    request domain-name-servers;
    request domain-name;
{%  if dhcpv6_prm_only %}
    information-only;
{%  endif %}
{%  if not dhcpv6_temporary %}
    send ia-na 1; # non-temporary address
{%  endif %}
{%  if dhcpv6_pd_interfaces %}
    send ia-pd 2; # prefix delegation
{%  endif %}
};

{%  if not dhcpv6_temporary %}
id-assoc na 1 {
    # Identity association NA
};
{%  endif %}

{%  if dhcpv6_pd_interfaces %}
id-assoc pd 2 {
{%  for intf in dhcpv6_pd_interfaces %}
    prefix-interface {{ intf.ifname }} {
{%    if intf.sla_id %}
        sla-id {{ intf.sla_id }};
{%    endif %}
{%    if intf.sla_len %}
        sla-len {{ intf.sla_len }};
{%    endif %}
{%    if intf.if_id %}
        ifid {{ intf.if_id  }};
{%    endif %}
    };
{%  endfor %}
};
{%  endif %}