Great, I could not find this in the guide. This makes my configuration
possible, I think.


On 17/10/2017 21:28, Jason Lixfeld wrote:
>> On Oct 17, 2017, at 1:58 PM, Sten Carlsen <[email protected]> wrote:
>>
>> Can a file be included into the main configuration in Kea?
> Sure can!  You can even nest includes in includes:
>
> #/usr/local/etc/kea/kea.conf
> {
>       <?include "/usr/local/etc/kea/common/logging.conf"?>
>       <?include "/usr/local/etc/kea/common/control-agent.conf"?>
>       "Dhcp4": {
>               <?include "/usr/local/etc/kea/common/db.conf"?>
>               "interfaces-config": {
>                       "interfaces": ["ens32", "ens34", "ens35", "ens36", 
> "ens37"],
>                       "dhcp-socket-type": "udp"
>               },
>               "control-socket": {
>                       "socket-type": "unix",
>                       "socket-name": "/tmp/kea-dhcp4-ctrl.sock"
>               },
>               "hooks-libraries": [
>                       {
>                       "library": "/usr/local/lib/hooks/libdhcp_flex_id.so",
>                       "parameters":
>                               {
>                               "identifier-expression": 
> "concat(relay4[2].hex,relay4[1].hex)"
>                               }
>                       },
>                       {
>                       "library": "/usr/local/lib/hooks/libdhcp_host_cmds.so"
>                       },
>                       {
>                       "library": "/usr/local/lib/hooks/libdhcp_lease_cmds.so"
>                       }
>               ],
>               "host-reservation-identifiers": [
>                       "flex-id"
>               ],
>               "shared-networks": [
>                       <?include 
> "/usr/local/etc/kea/production/shared-networks.conf"?>
>               ],
>               "option-def": [
>                       <?include 
> "/usr/local/etc/kea/common/custom-option-definition4.conf"?>
>               ],
>               "client-classes": [
>                       <?include 
> "/usr/local/etc/kea/production/client-classes-agent4.conf"?>
>                       <?include 
> "/usr/local/etc/kea/client-classes-vendor4.conf"?>
>               ]
>       }
> }
>
> #/usr/local/etc/kea/production/shared-networks.conf
> <?include "/usr/local/etc/kea/production/rgw01.lab.conf"?>
> <?include "/usr/local/etc/kea/production/perfdhcp.conf”?>
>
>

-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 

_______________________________________________
Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to