flag nokeyword

Mode: Configuration Mode

Description:

The nokeyword flag eliminates the need for the user to type in the associated argument or attribute name in the input syntax. This flag is used when the argument or attribute is apparent by context. Using flag identifer requires flag nokeyword to be specified as well.

It is recommended at each level, there should only be one attribute that has the flag nokeyword set, and only when the attribute should almost always be defined and when the keyword is redundant.

Example:

        object newbie {
            help "Newbie settings";
            flag oneliner-plus;

            attribute realname {
                flag nokeyword;
                help "Real name";
                type string;
            }
            attribute ext {
                help "Extension";
                type string;
            }
        }

Display:

        user@router# set example newbie ?
        Possible completions:
          <[Enter]>            Execute this command
          <realname>           Real name
        + apply-groups         Groups from which to inherit configuration data
        + apply-groups-except  Don't inherit configuration data from these groups
          ext                  Extension
          |                    Pipe through a command
        [edit]
        user@router# set example newbie DDL_user
        
        [edit]
        user@router# show example 
        newbie {
            DDL_user;
        }

        [edit]
        user@router# set example newbie ext x00000

        [edit]
        user@router# show example
        newbie {
            DDL_user;
            ext x00000;
        }

        [edit]

Topics for further reading:

See also:
flag identifier

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