flag strict-order

Mode: Configuration Mode

Description:

With flag strict-order, the configuration knobs are listed in the same order as in the ddl input file; with flag autosort, the configuration knobs are presented as a sorted list when help messages are displayed, regardless of the attribute types.

This flag is applied to the parent object (object or choice or type enum uint) where the children need to be sorted.

Example:

        object newbie {
            help "Newbie settings";

            object network-speed {
                help "Setting the newbie computer network connection speed";
                flag strict-order;
                type enum uint {
                    choice "10Mbps" {
                        help "10BaseT connection";
                    }
                    choice "100Mbps" {
                        help "Fast Ethernet connection";
                    }
                    choice "1Gbps" {
                        help "Gigabit Ethernet connection";
                    }
                }
            }
        }

Display:

        user@router#  set example newbie ?
        Possible completions:
          <[Enter]>            Execute this command
        + apply-groups         Groups from which to inherit configuration data
        + apply-groups-except  Don't inherit configuration data from these groups
          network-speed        Setting the newbie computer network connection speed
          |                    Pipe through a command
        [edit]
        user@router# set example newbie network-speed ?
        Possible completions:
          10Mbps               10BaseT connection
          100Mbps              Fast Ethernet connection
          1Gbps                Gigabit Ethernet connection
        [edit]

Topics for further reading:

See also:
flag_autosort

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