{# SPDX-FileCopyrightText: 2026 Marcin Zieba #} {# SPDX-License-Identifier: Apache-2.0 #} {% extends "netbox_kea/server_workspace.html" %} {% load helpers %} {% load render_table from django_tables2 %} {% block content %} {% include "netbox_kea/inc/sync_nav.html" %}
{% if integration_refusal %} {% elif mapping_unavailable %} {% else %}
Sync to DHCP plugin

Import this server's live Kea configuration into the NetBox DHCP plugin. This includes subnets, pools, reservations, supported settings, client classes, and DHCP options. The import reads Kea without changing it. You can run the import more than once.

1 Shared Network grouping

Kea shared-networks import as the DHCP plugin's Shared Networks, with no Prefix. While the DHCP plugin requires a Prefix, each Shared Network is unsupported and its member Subnets import on the DHCP Server. A Subnet that already belongs to a Shared Network keeps it when a run does not write that Shared Network.

2 Direct-interface mapping

A direct-interface selector has a partial representation. When it resolves to a NetBox device or virtual-machine interface, DHCPServerInterface can represent that server attachment. It does not preserve Shared Network identity, membership, relay selection, inherited settings or options, or allocation behavior. NetBox Kea remains the authority for those facts.

3 DHCP option mapping

DHCP options are imported at supported scopes when the import can resolve a matching standard or custom Option Definition. Unsupported options are skipped and reported.

{% if sync_refusal %} {% include "netbox_kea/inc/sync_refused.html" with reason=sync_refusal label="Sync to DHCP plugin now" icon="mdi-database-import-outline" button_class="btn btn-sm btn-primary" %} {% else %}
{% csrf_token %}
{% endif %}
Latest run
{% if latest_run %}

{{ latest_run.get_trigger_display }} run, started {{ latest_run.started|isodatetime }}, finished {{ latest_run.finished|isodatetime }}. NetBox keeps the {{ latest_run.RETAINED_RUNS }} latest runs of each Server.

{% for label in run_outcomes %}{% endfor %} {% for row in run_count_rows %} {% for count in row.counts %}{% endfor %} {% empty %} {% endfor %}
Family Kind{{ label }}
DHCPv{{ row.family }} {{ row.kind }}{{ count }}
This run recorded no Kea facts.
Entries
{% render_table run_entry_table %}
{% else %}

No DHCP Import has run for this Server yet.

{% endif %}
{% url 'plugins:netbox_kea:server_dhcp_plugin_drift' object.pk as drift_url %}
{% include "netbox_kea/inc/dhcp_plugin_drift_header.html" %}

Reading Kea…

{% endif %}
{% endblock %}