type <user-defined>

Mode: Configuration Mode


DDL allows the use of any object definition to be used as a DDL type. The benefit is reusability - when a complex configuration hierarchy needs to be replicated in multiple locations within the configuration, using a DDL object as a type eliminates the need to replicate DDL codes.

Example 1:

        object juniper-user-type {
            flag setof list;

            attribute name {
                help "User name";
                flag identifier nokeyword;
                xml-name user-name;
                type ranged string 1 .. 127;
            attribute uid {
                help "User ID";
                type ranged uint 1 .. 1023;

        object juniper-config {
            object system {
                attribute newbie {
                    help "Newbie settings";
                    type juniper-user-type;

Display 1:

        user@router# set system newbie ?
        Possible completions:
          <name>        User name

        user@router# set system newbie fred ?
        Possible completions:
          uid           User ID

        user@router# set system newbie fred uid 5

        user@router# show
        system {
            newbie fred {
                uid 5;


See also:

Reference (to programmers guide/style guide):

2007-2008 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are trademarks of Juniper Networks, Inc.
Generated on Sun May 30 20:23:13 2010 for DDL Reference Guide by doxygen 1.4.5