{% extends 'generic/object.html' %} {% load helpers %} {% load plugins %} {% block extra_controls %} {% if object.is_standard %} Standard Option (Read-Only) {% endif %} {% endblock %} {% block buttons %} {% if not object.is_standard %} {{ block.super }} {% endif %} {% endblock %} {% block content %} {% if object.is_standard %}
This is a standard DHCP option defined in RFC specifications. Standard options are read-only and cannot be modified or deleted.
{% endif %}
Option Definition
{% if object.encapsulate %} {% endif %} {% if object.record_types %} {% endif %}
Name {{ object.name }}
Code {{ object.code }}
Type {{ object.get_option_type_display }}
Option Space {% if object.vendor_option_space %} {{ object.vendor_option_space.name }} {% else %} {{ object.get_option_space_display }} {% endif %}
Is Array {% if object.is_array %}Yes{% else %}No{% endif %}
Standard Option {% if object.is_standard %}Yes (RFC){% else %}No (Custom){% endif %}
Encapsulates {{ object.encapsulate }}
Record Types {{ object.record_types }}
Description {{ object.description|placeholder }}
{% include 'inc/panels/tags.html' %} {% plugin_left_page object %}
KEA Configuration
{% if object.is_standard %}

Standard DHCP options are built into KEA and do not need option-def entries. You can use this option directly in option-data by name or code.

{% else %}

This option definition will generate the following KEA option-def entry:

{
    "space": "{{ object.space_name }}",
    "name": "{{ object.name }}",
    "code": {{ object.code }},
    "type": "{{ object.option_type }}"{% if object.is_array %},
    "array": true{% endif %}{% if object.encapsulate %},
    "encapsulate": "{{ object.encapsulate }}"{% endif %}{% if object.record_types %},
    "record-types": "{{ object.record_types }}"{% endif %}

}
{% endif %}
{% include 'inc/panels/custom_fields.html' %} {% plugin_right_page object %}
Option Data Using This Definition
{% if object.option_data_instances.exists %} {% for data in object.option_data_instances.all %} {% endfor %}
Name Data Always Send Description
{{ data.name }} {{ data.data|truncatechars:50 }} {% if data.always_send %}Yes{% else %}No{% endif %} {{ data.description|placeholder }}
{% else %}

No option data instances using this definition.

{% endif %}
{% plugin_full_width_page object %}
{% endblock %}