flag identifier

Mode: Configuration Mode

Description:

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.

Example:

        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;
                }
            }
        }

Display:

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

        [edit]
        user@router# set example newbie 9 desc aloha   

        [edit]
        user@router# show example 
        newbie 5 {
            desc hola;
        }
        newbie 9 {
            desc aloha;
        }

        [edit]

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