{% extends 'generic/object.html' %} {% load helpers %} {% load render_table from django_tables2 %} {% block extra_controls %} {% if object.ha_relationship and not object.is_ha_primary %} HA Standby - Configs on Primary {% endif %} {% endblock %} {% block content %} {% if pki_identity_advisories %}
{% for advisory in pki_identity_advisories %} {% endfor %}
{% endif %}
DHCP Server
{% if object.ha_relationship %} {% endif %} {% if enable_stork %} {% endif %} {% if object.ctrl_socket_http_enabled %} {% endif %} {% if object.ctrl_socket_unix_enabled %} {% endif %}
Name {{ object.name }}
Description {{ object.description|placeholder }}
IP Address {% if object.ip_address %} {{ object.ip_address }} {% if object.ip_address.assigned_object %}
Assigned to: {{ object.ip_address.assigned_object.parent_object }} ({{ object.ip_address.assigned_object }}) {% endif %} {% else %} {{ ''|placeholder }} {% endif %}
Status {% badge object.get_status_display bg_color=object.get_status_color %}
Application Service {% if object.service %} {{ object.service.name }} on {{ object.service.parent_object }} {% else %} Not created (IP not assigned to interface) {% endif %}
HA Relationship {% if object.ha_relationship %} {{ object.ha_relationship.name }} {% else %} None {% endif %}
HA Role {% if object.ha_role %} {{ object.get_ha_role_display }} {% else %} — {% endif %}
HA URL {{ object.ha_url|placeholder }}
HA Auto Failover {% if object.ha_auto_failover %} {% else %} — {% endif %}
PKI FQDN {% if pki_record %} {{ object.pki_fqdn }} {% elif object.pki_fqdn %} {{ object.pki_fqdn }} {% if pki_dns_integration %} unbound {% endif %} {% else %} — {% endif %}
Hook Groups {% if object.hook_groups.all %} {% for group in object.hook_groups.all %} {{ group.name }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %}
Stork Agent Group {% if object.stork_agent_group %} {{ object.stork_agent_group.name }} ({{ object.stork_agent_group.get_operating_mode_display }}) {% else %} None {% endif %}
Stork Server {% if object.stork_agent_group and object.stork_agent_group.stork_server %} {{ object.stork_agent_group.stork_server.name }} ({{ object.stork_agent_group.stork_server.url }}) {% else %} — {% endif %}
Control Socket {% if object.ctrl_socket_type %} {{ object.get_ctrl_socket_type_display }} {% else %} Disabled {% endif %}
HTTP Socket {{ object.ctrl_socket_http_address }}:{{ object.ctrl_socket_http_port }}
Unix Socket {{ object.ctrl_socket_unix_path }}
Reverse Proxy
{% if object.ha_proxy_enabled %} {% endif %} {% if enable_stork %} {% endif %}
HA Reverse Proxy  {% if object.ha_proxy_enabled %} {% if object.ha_relationship %} from relationship {% endif %} {% else %} {% endif %}
HA Egress Base Port {{ object.ha_egress_base_port|placeholder }}
Control Socket Proxy {% if object.ctrl_socket_proxy_enabled %} {% else %} {% endif %}
Stork Exporter Proxy  {% if object.stork_proxy_enabled %} {% else %} {% endif %}
Reservation Mode Defaults
Reservations Global {% if object.reservations_global %} {% else %} {% endif %}
Reservations In-Subnet {% if object.reservations_in_subnet %} {% else %} {% endif %}
Reservations Out-of-Pool {% if object.reservations_out_of_pool %} {% else %} {% endif %}
Configuration Summary
Subnets {{ subnet_count }}
Client Classes {{ client_class_count }}
Global Options {{ global_option_count }}
Option Definitions {{ option_def_count }}
Hook Libraries {{ hook_count }}
{% if unreachable_subnets %}
Unreachable Subnet Restrictions
The following subnets use a restricting client class that has "Only in additional list" enabled. KEA will not evaluate these classes globally, and there is no higher scope that can trigger their evaluation. No client will ever match, making these subnets permanently unreachable.
{% for subnet in unreachable_subnets %} {% endfor %}
Subnet Restricting Class
{{ subnet }} {{ subnet.client_class.name }}
{% endif %} {% if unreachable_pools %}
Unreachable Pool Restrictions
The following pools use a restricting client class that has "Only in additional list" enabled but is not listed in the parent subnet's evaluate-additional-classes. KEA will never evaluate the class before pool selection, making these pools permanently unreachable. Add the class to the subnet's evaluate-additional-classes to fix this.
{% for pool in unreachable_pools %} {% endfor %}
Pool Parent Subnet Restricting Class
{{ pool }} {{ pool.subnet }} {{ pool.client_class.name }}
{% endif %} {% if unused_only_in_additional_list_classes %}
Unused Client Classes
There are client classes with "Only in additional list" enabled but are not used in any subnet's evaluate-additional-classes. These classes will be defined in the KEA configuration but never evaluated. Consider assigning them to subnets via Prefix DHCP Config or removing the "Only in additional list" flag.
{% endif %} {% if unconditional_global_classes %}
Unconditional Global Classes
The following client classes have no test expression and will match ALL clients globally. If this is not intended, consider adding a test expression or enabling "Only in additional list" and assigning to specific subnets.
{% endif %} {% if not object.is_ha_primary and object.ha_relationship %}
HA Standby Information
This server is part of an HA relationship as a standby/backup. DHCP configurations (subnets, client classes, and global options) are managed on the primary server and automatically synced during KEA config generation.
{% endif %} {% if object.is_ha_primary %}
Lease Handling
Valid Lifetime {{ object.valid_lifetime }} seconds
Max Valid Lifetime {{ object.max_valid_lifetime }} seconds
Renew Timer (T1) {% if object.renew_timer is not None %}{{ object.renew_timer }} seconds {% else %}Not sent (client chooses){% endif %}
Rebind Timer (T2) {% if object.rebind_timer is not None %}{{ object.rebind_timer }} seconds {% else %}Not sent (client chooses){% endif %}
Decline Probation Period  {% if object.decline_probation_period is not None %} {{ object.decline_probation_period }} seconds {% else %} 86400 seconds (KEA default) {% endif %}
{% if enable_ddns %}
DDNS
D2 Daemon {% with eff=object.effective_d2_daemon %} {% if eff %} {{ eff.name }} {% if object.ha_relationship and object.ha_relationship.d2_daemon_id == eff.id %} inherited from HA relationship {% endif %} {% else %} None {% endif %} {% endwith %}
Updates Enabled {% with src=object.ha_relationship %} {% if src and src.d2_daemon_id %} {% if object.ddns_enable_updates %} {% else %} {% endif %} inherited from HA relationship {% else %} {% if object.ddns_enable_updates %} {% else %} {% endif %} {% endif %} {% endwith %}
DDNS Policy {% with eff=object.effective_ddns_policy %} {% if eff %} {{ eff.name }} {% if object.ha_relationship.ddns_policy_id %} inherited from HA relationship {% endif %} {% else %} None {% endif %} {% endwith %}
Sender {% if object.ddns_sender_ip or object.ddns_sender_port %} {{ object.ddns_sender_ip|default:"—" }}{% if object.ddns_sender_port %}:{{ object.ddns_sender_port }}{% endif %} {% else %} — {% endif %}
{% endif %}
Global Option Data
{% if object.option_data.all %} {% for opt in object.option_data.all %} {% endfor %}
Name Data (ASCII)
{{ opt.name }} {{ opt.ascii_data|truncatechars:40 }}
{% else %} No global options configured {% endif %}
Global Client Classes
{% if object.client_classes.all %} {% for cc in object.client_classes.all %} {% endfor %}
Name Test Expression Only in Additional List
{{ cc.name }} {% if cc.only_in_additional_list and cc in unused_only_in_additional_list_classes %} {% endif %} {% if cc in unconditional_global_classes %} {% endif %} {{ cc.test_expression|truncatechars:50 }} {% if cc.only_in_additional_list %} {% else %} — {% endif %}
{% else %} No client classes configured {% endif %}
{% endif %}
{% endblock %}