<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFCC">
    <p>Great, I could not find this in the guide. This makes my
      configuration possible, I think.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 17/10/2017 21:28, Jason Lixfeld
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:A05785DA-9CA2-49EB-8C36-64BD407CFE42@lixfeld.ca">
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">On Oct 17, 2017, at 1:58 PM, Sten Carlsen <a class="moz-txt-link-rfc2396E" href="mailto:stenc@s-carlsen.dk"><stenc@s-carlsen.dk></a> wrote:

Can a file be included into the main configuration in Kea?
</pre>
      </blockquote>
      <pre wrap="">
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”?>


</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 
</pre>
  </body>
</html>