summaryrefslogtreecommitdiff
path: root/data/templates/dhcp-server/kea-dhcp6.conf.j2
blob: 3ce4e63700e2343f270cd0c91c10f0ac92e6398b (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
42
43
44
45
46
47
48
{
    "Dhcp6": {
        "interfaces-config": {
            "interfaces": [ "*" ],
            "service-sockets-max-retries": 5,
            "service-sockets-retry-wait-time": 5000
        },
        "control-socket": {
            "socket-type": "unix",
            "socket-name": "/run/kea/dhcp6-ctrl-socket"
        },
        "lease-database": {
            "type": "memfile",
            "persist": true,
            "name": "{{ lease_file }}"
        },
        "hooks-libraries": [
            {
                "library": "/usr/lib/{{ machine }}-linux-gnu/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            }
        ],
        "option-data": [
{% if global_parameters.name_server is vyos_defined %}
            {
                "name": "dns-servers",
                "code": 23,
                "space": "dhcp6",
                "csv-format": true,
                "data": "{{ global_parameters.name_server | join(", ") }}"
            }{{ ',' if preference is vyos_defined else '' }}
{% endif %}
{% if preference is vyos_defined %}
            {
                "name": "preference",
                "code": 7,
                "space": "dhcp6",
                "csv-format": true,
                "data": "{{ preference }}"
            }
{% endif %}
        ],
{% if shared_network_name is vyos_defined %}
        "shared-networks": {{ shared_network_name | kea6_shared_network_json }}
{% endif %}

    }
}