{# SPDX-FileCopyrightText: 2026 Marcin Zieba #} {# SPDX-License-Identifier: Apache-2.0 #} {# The drift card body that htmx loads into #dhcp-import-drift on the DHCP Plugin page. #} {% load helpers %} {% include "netbox_kea/inc/dhcp_plugin_drift_header.html" %} {% if drift_refusal %}
{% else %}

A live read of Kea, compared with the DHCP Import Mappings. Missing: Kea has the object, and NetBox has no imported row for it. Stale: NetBox has an imported row whose Kea object is gone, so the next run removes it. Not seen: Kea was not read in full for that row, so it cannot be stale. A DHCP Option is not seen only when the read of its own entries or of its object is not complete. Unknown: Kea could not be read, or its configuration could not be parsed, so the state of each imported row is not known. An object that the installed DHCP plugin cannot hold, such as a Shared Network or a DHCP Option without its Option Definition, has no imported row, so it shows as missing.

{% for drift in families %}
DHCPv{{ drift.family }}
{% if drift.notice %} {% include "netbox_kea/inc/notice_alert.html" with notice=drift.notice %} {% elif drift.unparsable %} {% endif %}
{% if drift.kinds %}
{% for kind in drift.kinds %} {% endfor %}
Kind In step Missing Stale Not seen Observation
{{ kind.label }} {{ kind.in_step }} {{ kind.missing }} {{ kind.stale }} {{ kind.unseen }} {% if kind.incomplete %} Incomplete {{ kind.incomplete }} {% else %} Complete {% endif %}
{% endif %} {% if drift.objects %}
{% for obj in drift.objects %} {% endfor %} {% if drift.hidden %} {% endif %}
Kind Kea path State Imported row
{{ obj.label }} {{ obj.path }} {{ obj.badge.0 }} {% if obj.target %}{{ obj.name }}{% else %}{{ obj.target|placeholder }}{% endif %}{% if obj.assigned %} on {{ obj.assigned|linkify }}{% endif %}
{{ drift.hidden }} more object{{ drift.hidden|pluralize }} {{ drift.hidden|pluralize:"is,are" }} not shown.
{% elif drift.kinds %}

Kea and the imported rows agree.

{% endif %} {% empty %}

No DHCP versions enabled on this server.

{% endfor %} {% endif %}