flag identifier

Mode: Configuration Mode


When multiple instances of an object can be configured and the value of the attribute is used to identify the different instances, flag identifier is used to enable this setting.

There are a few constraints to use this setting:

1. the object has to be set with 'flag setof list' 2. immediately following the 'setof list' object requires an attribute with 'flag identifier nokeyword' specified. This attribute contains the instance-value which will be used as the identifier of the different instances. 3. there can be other attributes defined under the same object, and they will be present after the instance-value is specified.


        object newbie {
            help "Newbie settings";

            object number {
                help "Newbie number";
                flag setof list;

                attribute instance-number {
                    help "Newbie number instance";
                    flag identifier nokeyword;
                    type uint;
                attribute desc {
                    help "Description";
                    type string;


        user@router# set example newbie ?
        Possible completions:
          <number>             Newbie number
        user@router# set example newbie 5 ?      
        Possible completions:
          <[Enter]>            Execute this command
          desc                 Description
          |                    Pipe through a command
        user@router# set example newbie 5 desc hola 

        user@router# set example newbie 9 desc aloha   

        user@router# show example 
        newbie 5 {
            desc hola;
        newbie 9 {
            desc aloha;


Topics for further reading:

See also:
flag_nokeyword flag_setof_list

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:12 2010 for DDL Reference Guide by doxygen 1.4.5