[Kea-users] KEA API config-test

Jason Keltz jas at yorku.ca
Tue Apr 2 14:07:55 UTC 2024


Hi.

I'm trying to use Kea API config-test, and it's not working as expected.

cat kea-dhcp4.conf | kea-shell --host 127.0.0.1 --port 8000 --service dhcp4 config-test

returns:

"Failed to run: HTTP Error 400: Bad Request"

But I can use the other API commands so I now kea-ctrl-agent is running okay.

I even took a tiny config fragment instead of my bigger config file, and tested with that:

{
    "Dhcp4": {
        "interfaces-config": {
            "interfaces": ["eth0"]
        },
        "subnet4": [
            {
                "subnet": "192.168.0.0/24",
                "pools": [ { "pool": "192.168.0.2 - 192.168.0.254" } ]
            }
        ]
    }
}

... same result.

Any thoughts?

ALSO – a secondary question  - my actual config file (not the test one) uses "include" directives.  Kea API isn't going to have access to that.  How can I get Kea to expand these so I can pass into config-test to test a new configuration before reloading?

Jason.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240402/33b000d3/attachment.htm>


More information about the Kea-users mailing list