{% 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 %}
| 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 }} |
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.
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 %}
| Name | Data | Always Send | Description |
|---|---|---|---|
| {{ data.name }} | {{ data.data|truncatechars:50 }} |
{% if data.always_send %}Yes{% else %}No{% endif %} | {{ data.description|placeholder }} |
No option data instances using this definition.
{% endif %}