@if (topLevel) {
} @else {
Suboption level {{ nestLevel }}
} @if (optionDef) { @if (optionDef.array) { @if (optionDef.optionType === 'record') {
This option carries the records of the following fields:
    @for (record of optionDef.recordTypes; track record) {
  • {{ record }}
  • }
These records can be repeated, forming an array of records. By default, the option has only one record, but additional records can be defined as necessary by adding suitable option fields.
} @else {
This option can comprise an array of the {{ optionDef.optionType }} option fields. By default, it has only one option field, but more fields of the same type can be added as needed.
} } @if (!optionDef.array) { @if (optionDef.optionType === 'empty') {
This option carries no option fields (is empty).
} @else if (optionDef.optionType === 'record') {
This option carries a single record of the following fields:
    @for (record of optionDef.recordTypes; track record) {
  • {{ record }}
  • }
} @else {
This option comprises a single {{ optionDef.optionType }} option field.
} } @if (optionDef.encapsulate.length > 0) {
It encapsulates the suboptions with the following codes: {{ getStandardDhcpOptionDefCodes().join(', ') || '(none)' }}.
} @else {
It carries no suboptions.
}
}
@if (topLevel) {
}
@if (optionFields.length !== 0) {
@for (fieldControl of $any(optionFields.controls); track fieldControl; let i = $index) {
@switch (fieldControl.data.fieldType) { @case (FieldType.Binary) { } @case (FieldType.String) { } @case (FieldType.Bool) {
} @case (FieldType.Uint8) { } @case (FieldType.Uint16) { } @case (FieldType.Uint32) { } @case (FieldType.Int8) { } @case (FieldType.Int16) { } @case (FieldType.Int32) { } @case (FieldType.IPv4Address) { } @case (FieldType.IPv6Address) { } @case (FieldType.IPv6Prefix) {
} @case (FieldType.Psid) {
} @case (FieldType.Fqdn) {
} }
@if (fieldControl.data.fieldType === FieldType.Binary) {

The option value can be specified as a string of hexadecimal digits. The following formats are accepted:

  • Capital letters, e.g. 1F:1E:AB:CE
  • Lowercase letters, e.g. 8f:6a:bc:78
  • Space as a separator, e.g. 87 68 af b8
  • Colon as a separator (see above)
  • No separator, e.g. 05F74FA6

The specified value must have an even number of hexadecimal digits, with a leading zero when necessary.

}
}
} @else {
}
@if (suboptions.length > 0) { }