flag homogeneous

Mode: Configuration Mode

Description:

The homogeneous flag, when used in conjunction with sets of objects, groups objects into a single set of braces under the object keyword.

Guidelines:

  1. Use 'flag homogeneous' when every item in this list is the same, the name of the list is not spelled out before each list item, to make the list more compact.
  2. Use 'flag homogeneous' when the list is at the top level of the configuration.
  3. Do not use when each list item is complex
    1. the extra level hierarchy is hard to read
    2. users can become disoriented about the type of the objects when scrolling in a list with many items

Example:

        object newbie { 
            help "Newbie section";

            object phone-number {
                help "Newbie reachable phone numbers";
                flag homogeneous;
                flag setof list;

                attribute number {
                    flag identifier nokeyword;
                    help "Telephone number";
                    type string;
                }
            }
        }

Display:

        user@router# set example newbie phone-number ?
        Possible completions:
          <number>      Telephone number
        [edit]
        user@router# set example newbie phone-number x10000

        [edit]
        user@router# set example newbie phone-number 408-555-1212

        [edit]
        user@router# show example
        newbie {
            phone-number {
                x10000;
                408-555-1212;
            }
        }

        [edit]
        user@router# set example newbie phone-number ?
        Possible completions:
          <number>          Telephone number
          x10000            Telephone number
          408-555-1212      Telephone number
        [edit]

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