flag positional

Mode: Configuration Mode

Description:

Users are allowed to specify attributes in any order. The positional flag specifies that all child entities must be displayed in the specified order, and all of those entities are mandatory.

This flag is only useful when more than 1 attribute has the nokeyword flag specified.

Example:

        object newbie {
            help "Newbie settings";
            flag positional;

            attribute time {
                type time;
                flag nokeyword;
                help "Time is the first parameter";
            }
            attribute location {
                type string;
                flag nokeyword;
                help "Location comes after time";
            }
        }

Display:

        user@router# set example newbie ?
        Possible completions:
          <[Enter]>            Execute this command
          <location>           Location comes after time
          <time>               Time is the first parameter
        + apply-groups         Groups from which to inherit configuration data
        + apply-groups-except  Don't inherit configuration data from these groups
          |                    Pipe through a command
        [edit]
        user@router# set example newbie 2006-01-01
        
        [edit]
        user@router# show example 
        newbie {
            "2006-1-1.00:00:00 -0800";
        }

        [edit]
        user@router# set example newbie 2006-01-01 ?  
        Possible completions:
          <[Enter]>            Execute this command
          <location>           Location comes after time
        + apply-groups         Groups from which to inherit configuration data
        + apply-groups-except  Don't inherit configuration data from these groups
          |                    Pipe through a command
        [edit]
        user@router# set example newbie 2006-01-01 office
        
        [edit]
        user@router# show example
        newbie {
            "2006-1-1.00:00:00 -0800";
            office;
        }

        [edit]

Topics for further reading:

See also:
flag nokeyword

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