<div dir="ltr"><div dir="ltr">I have not used kea, but if it has an "include" directive similar to dhcpd, then I would recommend using that in one of several ways:</div><div dir="ltr">(this is what I do at U of Michigan)<br><div><br></div><div>--- interface in top level, main config in separate file:</div><div>"interfaces-config": {<br>"interfaces": [<br>"xxxxx"<br>],<br>"dhcp-socket-type": "udp"<br>},<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>include "main.config"</div><div><br></div><div>--- main config in top file, interfaces in separate file, where the interfaces.config file is different on the test server.</div><div>include "interface.config"</div><div>subnet ....</div><div>subnet ....</div><div><br></div><div>--- or include both as separate files:</div><div>include "interface.config"<br></div><div>include "main.config"<br></div><div><br>-- <br>Bob Harold</div><div><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 27, 2021 at 9:30 AM Veronique Lefebure <<a href="mailto:veronique.lefebure@cern.ch">veronique.lefebure@cern.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">We want to be able to validate the configuration file without <br>
touching/accessing the production servers, for example for <br>
developing/testing/validating changes in the software that generates the <br>
configuration file.<br>
<br>
On 27/08/2021 15:12, perl-list wrote:<br>
> Is it not possible to, instead, check the conf file on host2 where it will live?<br>
><br>
> ----- Original Message -----<br>
>> From: "Veronique Lefebure" <<a href="mailto:veronique.lefebure@cern.ch" target="_blank">veronique.lefebure@cern.ch</a>><br>
>> To: "kea-users" <<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a>><br>
>> Sent: Friday, August 27, 2021 5:39:15 AM<br>
>> Subject: [Kea-users] kea-dhcp4 -t file: check the configuration file syntax and exit but fails because of interface<br>
>> Hi,<br>
>> Before deploying a new kea configuration file on our DHCP server, we<br>
>> want to validate it.<br>
>> The configuration file "kea-dhcp4.conf" is generated on host1 where we<br>
>> want to validate it by running<br>
>> kea-dhcp4 -t kea-dhcp4.conf<br>
>> And once validation has passed, we plan to deploy "kea-dhcp4.conf" ho<br>
>> the KEA server running on host2.<br>
>> The problem we have is that validation fails with the following error:<br>
>> Error encountered: Failed to select interface: interface 'xxxxx' doesn't<br>
>> exist in the system (kea-dhcp4.conf:225:9) (kea-dhcp4.conf:224:7)<br>
>> coming from<br>
>> "interfaces-config": {<br>
>> "interfaces": [<br>
>> "xxxxx"<br>
>> ],<br>
>> "dhcp-socket-type": "udp"<br>
>> },<br>
>> Interface 'xxxxx' may exist on host2 but not on host1.<br>
>> Is anyone encountering the same problem ?<br>
>> Is there a work-around ?<br>
>> Thanks,<br>
>> Veronique<br><br>
</blockquote></div></div>