{
    "Dhcp4": {
        "store-extended-info": true,
        "interfaces-config": {
            "interfaces": [
                "eth0/192.168.2.1"
            ]
        },
        "control-socket": {
            "socket-type": "unix",
            "socket-name": "/tmp/kea4-ctrl-socket"
        },
        "lease-database": {
            "type": "memfile",
            "name": "/tmp/kea-dhcp4.csv",
            "lfc-interval": 7200,
            "persist": true
        },
        "multi-threading": {
            "enable-multi-threading": true,
            "thread-pool-size": 0,
            "packet-queue-size": 0 
        },
        "hooks-libraries": [
            {
                "library": "/usr/lib64/kea/hooks/libdhcp_lease_cmds.so",
                "parameters": {}
            },
            {
                "library": "/usr/lib64/kea/hooks/libdhcp_ha.so",
                "parameters": {
                    "high-availability": [
                        {
                            "this-server-name": "server1",
                            "mode": "load-balancing",
                            "heartbeat-delay": 2000,
                            "max-response-delay": 4000,
                            "max-ack-delay": 1000,
                            "max-unacked-clients": 0,
                            "delayed-updates-limit": 100,
                            "peers": [
                                {
                                    "name": "server1",
                                    "url": "http://192.168.2.1:8000/",
                                    "role": "primary",
                                    "auto-failover": true
                                },
                                {
                                    "name": "server2",
                                    "url": "http://192.168.2.2:8000/",
                                    "role": "secondary",
                                    "auto-failover": true
                                }
                            ],
                            "multi-threading": {
                                "enable-multi-threading": true,
                                "http-dedicated-listener": true,
                                "http-listener-threads": 0,
                                "http-client-threads": 0
                            }
                        }
                    ]
                }
            }
        ],
        "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
        },
        "valid-lifetime": 300,
        "host-reservation-identifiers": [
            "hw-address"
        ],
        "reservations-out-of-pool": false,
        "subnet4": [
            {
                "id": 1,
                "subnet": "192.168.1.0/24",
                "pools": [
                    {
                        "pool": "192.168.1.4 - 192.168.1.127",
                        "client-class": "HA_server1"
                    },
                    {
                        "pool": "192.168.1.128/25",
                        "client-class": "HA_server2"

                    }
                ],
                "option-data": [
                    {
                        "name": "routers",
                        "data": "192.168.1.1"
                    }
                ],
            },
        ],
    }
}
