[kea-dev] kea-dhcp4 -t kea.json too strong on interface checking

Gregor Kling gregor.kling at its.thm.de
Mon Aug 18 11:01:55 UTC 2025


Hello Chad,

Thanks for the response.

I can work around that.


gg

On 8/17/25 4:44 AM, Chad Catlett wrote:
>
> On 8/16/25 05:32, Gregor Kling wrote:
>> Hello,
>>
>> Say, you want to generate the config files for the dhcp servers on a 
>> specific machine
>>
>> and test that them there.
>>
>> Now as one can imagine the interface names are possibly not the ones 
>> that are
>>
>> on the target machines.
>>
>> So, it would be nice if one could lift the strictness on same checks, 
>> for example
>>
>> the test on the existence of the concrete interface.
>>
>> I don't know yet if there are other form of too strict checks - i 
>> will find out.
>>
>> gg
>>
> gg,
>
> My suggestion would be have the machine that generates the 
> configuration use something like json patch to set the 
> interfaces-config.interfaces to an acceptable value just for the 
> testing procedure.
>
> It has been a few years since I've looked at the configuration parsing 
> code, but I don't expect it to have some way to relax the checks. It 
> doesn't just check the validity of the syntax, it also checks that the 
> config is valid for the machine executing the config checks.
>
> Chad
>
-- 
Gregor Kling

Abteilung ITS, Sachgebiet ITS-N
Technische Hochschule Mittelhessen
University of Applied Sciences
Tel: 0641/309-1292
E-Mail: gregor.kling at its.thm.de



More information about the kea-dev mailing list