option (nrcmd)					                option (nrcmd)


NAME
    option - Configures option definitions

SYNOPSIS
    option <id> <option-setname> create <option-name> <type> [<attribute>=<value>] 
    option <name | id> <option-setname> delete
    option <name | id> <option-setname> set <attribute>=<value> [<attribute>=<value>...]
    option <name | id> <option-setname> get <attribute>
    option <name | id> <option-setname> [show]
    option <name | id> <option-setname> unset <attribute>

    option <name | id> <option-setname> enable <attribute>
    option <name | id> <option-setname> disable <attribute>

    option <option-setname> list
    option <option-setname> listnames
    option <option-setname> show

    option listtypes

DESCRIPTION
    The option command configures option definitions.

    Use reserved names as follows:

       dhcp-config and dhcp6-config to view currently configured
       option sets for DHCPv4 and DHCPv6 respectively.

       dhcp-custom and dhcp6-custom to view/add/modify/delete 
       custom option definitions.

    NOTE: you may also use dhcp-config and dhcp6-config to
    add/modify/delete custom option definitions. These names
    are used to operate on the respective custom set.

    Changes to the custom sets are merged with the built-in
    option definitions to form the config sets.

    Modifications to the custom sets are not visible in
    the config sets until after a SAVE is performed.

    You cannot use the reserved names when creating or deleting
    an option set. The custom sets are created when the first
    custom option definition is created.

    Use the listtypes command to view the list of option types
    available for use in creating custom option definitions.

EXAMPLES

STATUS

SEE ALSO

PROPERTIES
  Attributes:

    base-type[3] (AT_ATTRTYPE, Optional, default: <none>)
        The 32 bit type id for the basic type of this attribute.

    desc[5] (AT_STRING, Optional, default: <none>)
        The description of the attribute (such as this one).

    flags[4] (AT_FLAGSINT(), Optional, default: <none>)
        The general set of flags describing this attribute.  These flags
        cover a wide range of behavior, including: textual representation,
        persistence, and requirements.

    id[2] (AT_INT, Optional, default: <none>)
        The 16 bit id of this attribute.  This is the
        value that is stored in the object instance and is
        used along with the class id for looking up the attribute
        description in a schema.

    name[1] (AT_STRING, Optional, default: <none>)
        The name of this attribute.

    repeat[21] (AT_ENUMINT(), Optional, default: <none>)
        The repeat count for this type.  Used when this is describing
        an option definition. The high bit is reserved to indicate
        enumerated flags. If the high bit is clear, the value is
        interpreted as a numeric count.
        A value of zero is the same as a value of one, as it is not
        meaningful to set a repeat of exactly zero. Use the 'zero or
        more' enumerated flag instead.
        The following enumerated values are currently supported:
         0x80000000   - zero or more values
         0x80000001   - one or more values
         0x80000003   - an even number of values (2 or more)

