// This Kea DHCPv4 configuration is used in the system tests to
// verify that the configuration review mechanism finds specific
// issues in it. The following issues are present and should
// result in alarms:
//
// - stat_cmds hooks library is not loaded,
// - ...
{

"Dhcp4": {
    "interfaces-config": {
        "interfaces": [ "eth1" ]
    },
    "control-socket": {
        "socket-type": "unix",
        "socket-name": "/tmp/kea4-ctrl-socket"
    },
    "lease-database": {
        "type": "memfile",
        "lfc-interval": 3600
    },
    "expired-leases-processing": {
        "reclaim-timer-wait-time": 10,
        "flush-reclaimed-timer-wait-time": 25,
        "hold-reclaimed-time": 3600,
        "max-reclaim-leases": 100,
        "max-reclaim-time": 250,
        "unwarned-reclaim-cycles": 5
    },

    "renew-timer": 90,
    "rebind-timer": 120,
    "valid-lifetime": 180,

    "subnet4": [
        {
            "id": 1,
            "subnet": "192.0.2.0/24",
            "pools": [ { "pool": "192.0.2.1 - 192.0.2.50" },
                       { "pool": "192.0.2.51 - 192.0.2.100" },
                       { "pool": "192.0.2.101 - 192.0.2.150" },
                       { "pool": "192.0.2.151 - 192.0.2.200" } ],
            "relay": {
              "ip-addresses": [ "172.100.0.200" ]
            }
        },
        // Overlapping subnets to test the overlapping checker
        // Subnets with the same prefix
        {
            "id": 2,
            "subnet": "192.42.1.0/24",
            "pools": [ { "pool": "192.42.1.1 - 192.42.1.10 " } ]
        },
        // Non-canonical form
        {
            "id": 3,
            "subnet": "192.42.1.1/24",
            "pools": [ { "pool": "192.42.1.11 - 192.42.1.20 " } ]
        },
        // Subnets with containing prefixes
        {
            "id": 4,
            "subnet": "10.0.0.0/16",
            "pools": [ { "pool": "10.0.0.1 - 10.0.0.10 " } ]
        },
        {
            "id": 5,
            "subnet": "10.0.5.0/24",
            "pools": [ { "pool": "10.0.5.1 - 10.0.5.10 " } ]
        },
        // Subnet whose all dynamic IP addresses are reserved.
        {
            "id": 6,
            "subnet": "10.0.6.0/24",
            "pools": [ { "pool": "10.0.6.1 - 10.0.6.2" }],
            "reservations": [
                {
                    "ip-address": "10.0.6.1",
                    "hw-address": "01:02:03:04:05:06"
                },
                {
                    "ip-address": "10.0.6.2",
                    "hw-address": "01:02:03:04:05:07"
                }
            ]
        },
        // Zero subnet.
        {
            "id": 7,
            "subnet": "0.0.0.0/0"
        }
    ],

    "loggers": [
    {
        "name": "kea-dhcp4",
        "output_options": [
            {
                "output": "stdout",
                "pattern": "%-5p %m\n"
            },
            {
                "output": "/tmp/kea-dhcp4.log"
            }
        ],
        "severity": "DEBUG",
        "debuglevel": 0
    }
  ]
}
}
