{
    "Dhcp4": {
        "allocator": "iterative",
        "authoritative": false,
        "boot-file-name": "/dev/null",
        "client-classes": [
            {
                "boot-file-name": "/tmp/bootfile.efi",
                "name": "phones_server1",
                "next-server": "10.2.3.4",
                "option-data": [],
                "option-def": [],
                "server-hostname": "",
                "test": "member('HA_server1')",
                "valid-lifetime": 6000,
                "min-valid-lifetime": 4000,
                "max-valid-lifetime": 8000
            },
            {
                "boot-file-name": "",
                "name": "phones_server2",
                "next-server": "0.0.0.0",
                "option-data": [],
                "option-def": [],
                "server-hostname": "",
                "test": "member('HA_server2')"
            },
            {
                "name": "late",
                "only-if-required": true,
                "test": "member('ALL')"
            },
            {
                "name": "my-template-class",
                "template-test": "substring(option[61].hex, 0, all)"
            }
        ],
        "compatibility": {
            "ignore-rai-link-selection": false,
            "lenient-option-parsing": true
        },
        "control-socket": {
            "socket-name": "/tmp/kea4-ctrl-socket",
            "socket-type": "unix"
        },
        "ddns-generated-prefix": "myhost",
        "ddns-override-client-update": false,
        "ddns-override-no-update": false,
        "ddns-qualifying-suffix": "",
        "ddns-replace-client-name": "never",
        "ddns-send-updates": true,
        "ddns-update-on-renew": true,
        "ddns-use-conflict-resolution": true,
        "ddns-conflict-resolution-mode": "check-with-dhcid",
        "decline-probation-period": 86400,
        "dhcp-ddns": {
            "enable-updates": false,
            "max-queue-size": 1024,
            "ncr-format": "JSON",
            "ncr-protocol": "UDP",
            "sender-ip": "0.0.0.0",
            "sender-port": 0,
            "server-ip": "127.0.0.1",
            "server-port": 53001,
            "generated-prefix": "myhost",
            "hostname-char-replacement": "x",
            "hostname-char-set": "[^A-Za-z0-9.-]",
            "override-client-update": false,
            "override-no-update": false,
            "qualifying-suffix": "",
            "replace-client-name": "never"
        },
        "dhcp4o6-port": 6767,
        "echo-client-id": true,
        "expired-leases-processing": {
            "flush-reclaimed-timer-wait-time": 25,
            "hold-reclaimed-time": 3600,
            "max-reclaim-leases": 100,
            "max-reclaim-time": 250,
            "reclaim-timer-wait-time": 10,
            "unwarned-reclaim-cycles": 5
        },
        "hooks-libraries": [
            {
                "library": "/opt/lib/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": { }
            }
        ],
        "hosts-databases": [
            {
                "name": "keatest",
                "host": "localhost",
                "password": "keatest",
                "port": 3306,
                "type": "mysql",
                "user": "keatest",
                "readonly": false,
                "trust-anchor": "my-ca",
                "cert-file": "my-cert",
                "key-file": "my-key",
                "cipher-list": "AES"
            },
            {
                "name": "keatest",
                "host": "localhost",
                "password": "keatest",
                "port": 5432,
                "type": "postgresql",
                "user": "keatest",
                "tcp-user-timeout": 100
            },
            {
                "name": "keatest",
                "password": "keatest",
                "port": 9042,
                "type": "mysql",
                "user": "keatest",
                "reconnect-wait-time": 3000,
                "max-reconnect-tries": 3,
                "on-fail": "stop-retry-exit",
                "connect-timeout": 100,
                "read-timeout": 120,
                "write-timeout": 180
            }
        ],
        "host-reservation-identifiers": [
            "hw-address",
            "duid",
            "circuit-id",
            "client-id",
            "flex-id"
        ],
        "interfaces-config": {
            "dhcp-socket-type": "udp",
            "interfaces": [
                "eth0"
            ],
            "outbound-interface": "same-as-inbound",
            "re-detect": true,
            "service-sockets-require-all": true,
            "service-sockets-max-retries": 5,
            "service-sockets-retry-wait-time": 5000
        },
        "early-global-reservations-lookup": true,
        "ip-reservations-unique": true,
        "reservations-lookup-first": true,
        "lease-database": {
            "lfc-interval": 3600,
            "max-row-errors": 100,
            "name": "/tmp/kea-dhcp4.csv",
            "persist": true,
            "type": "memfile"
        },
        "match-client-id": false,
        "next-server": "192.0.2.123",
        "parked-packet-limit": 128,
        "option-data": [
            {
                "always-send": false,
                "code": 6,
                "csv-format": true,
                "data": "192.0.3.1, 192.0.3.2",
                "name": "domain-name-servers",
                "space": "dhcp4"
            }
        ],
        "option-def": [
            {
                "array": false,
                "code": 6,
                "encapsulate": "",
                "name": "my-option",
                "record-types": "uint8, uint16",
                "space": "my-space",
                "type": "record"
            }
        ],
        "rebind-timer": 40,
        "renew-timer": 30,
        "store-extended-info": true,
        "statistic-default-sample-count": 0,
        "statistic-default-sample-age": 60,
        "multi-threading": {
            "enable-multi-threading": false,
            "thread-pool-size": 0,
            "packet-queue-size": 0
        },
        "sanity-checks": {
            "lease-checks": "warn",
            "extended-info-checks": "fix"
        },
        "shared-networks": [
            {
                "allocator": "random",
                "authoritative": false,
                "boot-file-name": "/dev/null",
                "client-class": "",
                "ddns-generated-prefix": "myhost",
                "ddns-override-client-update": false,
                "ddns-override-no-update": false,
                "ddns-qualifying-suffix": "",
                "ddns-replace-client-name": "never",
                "ddns-send-updates": true,
                "ddns-update-on-renew": true,
                "ddns-use-conflict-resolution": true,
                "ddns-conflict-resolution-mode": "check-with-dhcid",
                "ddns-ttl-percent": 0.65,
                "hostname-char-replacement": "x",
                "hostname-char-set": "[^A-Za-z0-9.-]",
                "interface": "eth0",
                "match-client-id": true,
                "name": "my-secret-network",
                "next-server": "192.0.2.123",
                "option-data": [
                    {
                        "always-send": false,
                        "code": 3,
                        "csv-format": true,
                        "data": "192.0.3.2",
                        "name": "routers",
                        "space": "dhcp4"
                    }
                ],
                "relay": {
                    "ip-addresses": []
                },
                "rebind-timer": 41,
                "renew-timer": 31,
                "calculate-tee-times": true,
                "t1-percent": 0.5,
                "t2-percent": 0.75,
                "cache-threshold": 0.25,
                "cache-max-age": 1000,
                "reservation-mode": "all",
                "reservations-global": false,
                "reservations-in-subnet": true,
                "reservations-out-of-pool": false,
                "require-client-classes": [ "late" ],
                "store-extended-info": false,
                "server-hostname": "",
                "subnet4": [
                    {
                        "4o6-interface": "",
                        "4o6-interface-id": "",
                        "4o6-subnet": "2001:db8:1:1::/64",
                        "allocator": "iterative",
                        "authoritative": false,
                        "boot-file-name": "",
                        "client-class": "",
                        "ddns-generated-prefix": "myhost",
                        "ddns-override-client-update": false,
                        "ddns-override-no-update": false,
                        "ddns-qualifying-suffix": "",
                        "ddns-replace-client-name": "never",
                        "ddns-send-updates": true,
                        "ddns-update-on-renew": true,
                        "ddns-use-conflict-resolution": true,
                        "ddns-conflict-resolution-mode": "check-with-dhcid",
                        "ddns-ttl-percent": 0.65,
                        "hostname-char-replacement": "x",
                        "hostname-char-set": "[^A-Za-z0-9.-]",
                        "id": 1,
                        "interface": "eth0",
                        "match-client-id": true,
                        "next-server": "0.0.0.0",
                        "store-extended-info": true,
                        "option-data": [
                            {
                                "always-send": false,
                                "code": 3,
                                "csv-format": true,
                                "data": "192.0.3.1",
                                "name": "routers",
                                "space": "dhcp4"
                            }
                        ],
                        "pools": [
                            {
                                "client-class": "phones_server1",
                                "option-data": [
                                    {
                                        "always-send": false,
                                        "code": 3,
                                        "csv-format": true,
                                        "data": "192.0.3.10",
                                        "name": "routers",
                                        "space": "dhcp4"
                                    }
                                ],
                                "pool": "192.1.0.1 - 192.1.0.200",
                                "pool-id": 7,
                                "require-client-classes": [ "late" ]
                            },
                            {
                                "client-class": "phones_server2",
                                "option-data": [],
                                "pool": "192.3.0.1 - 192.3.0.200",
                                "require-client-classes": []
                            }
                        ],
                        "rebind-timer": 40,
                        "relay": {
                            "ip-addresses": [
                                "192.168.56.1"
                            ]
                        },
                        "renew-timer": 30,
                        "reservation-mode": "all",
                        "reservations-global": false,
                        "reservations-in-subnet": true,
                        "reservations-out-of-pool": false,
                        "calculate-tee-times": true,
                        "t1-percent": 0.5,
                        "t2-percent": 0.75,
                        "cache-threshold": 0.25,
                        "cache-max-age": 1000,
                        "reservations": [
                            {
                                "circuit-id": "01:11:22:33:44:55:66",
                                "ip-address": "192.0.2.204",
                                "hostname": "foo.example.org",
                                "option-data": [
                                    {
                                        "name": "vivso-suboptions",
                                        "data": "4491"
                                    }
                                ]
                            }
                        ],
                        "require-client-classes": [ "late" ],
                        "server-hostname": "",
                        "subnet": "192.0.0.0/8",
                        "valid-lifetime": 6000,
                        "min-valid-lifetime": 4000,
                        "max-valid-lifetime": 8000
                    }
                ],
                "valid-lifetime": 6001,
                "min-valid-lifetime": 4001,
                "max-valid-lifetime": 8001
            }
        ],
        "server-hostname": "",
        "subnet4": [],
        "valid-lifetime": 6000,
        "min-valid-lifetime": 4000,
        "max-valid-lifetime": 8000,
        "reservations": [],
        "config-control": {
            "config-databases": [
                {
                    "name": "config",
                    "type": "mysql"
                }
            ],
            "config-fetch-wait-time": 30
        },
        "server-tag": "my DHCPv4 server",
        "dhcp-queue-control": {
            "enable-queue": true,
            "queue-type": "kea-ring4",
            "capacity": 64
        },
        "reservation-mode": "all",
        "reservations-global": false,
        "reservations-in-subnet": true,
        "reservations-out-of-pool": false,
        "calculate-tee-times": true,
        "t1-percent": 0.5,
        "t2-percent": 0.75,
        "cache-threshold": 0.25,
        "cache-max-age": 1000,
        "hostname-char-replacement": "x",
        "hostname-char-set": "[^A-Za-z0-9.-]",
        "loggers": [
            {
                "debuglevel": 99,
                "name": "kea-dhcp4",
                "output_options": [
                    {
                        "flush": true,
                        "maxsize": 10240000,
                        "maxver": 1,
                        "output": "stdout",
                        "pattern": "%D{%Y-%m-%d %H:%M:%S.%q} %-5p [%c/%i] %m\n"
                    }
                ],
                "severity": "INFO"
            }
        ],
        "user-context": { }
    }
}
