[Kea-users] Subclass and include files
Jason Lixfeld
jason-kea at lixfeld.ca
Tue Oct 17 19:28:58 UTC 2017
> On Oct 17, 2017, at 1:58 PM, Sten Carlsen <stenc at s-carlsen.dk> 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”?>
More information about the Kea-users
mailing list