action expand

Mode: Configuration Mode

Description:

The action expand statement invokes commands during command completion (when users enter '?', Space, or Tab) in the CLI. It inserts choices into the completion mechanism.

Example:

        object newbie {
            help "Newbie settings";

            attribute user-class {
                help "Setting newbie login class setting";
                action expand mgd ddl_expand_builtin_classes;
                type string;
            }
        }

Display:

        user@router# set example newbie ?
        Possible completions:
          <[Enter]>            Execute this command
          user-class           Setting newbie login class setting
          |                    Pipe through a command
        [edit]
        user@router# set example newbie user-class ?
        Possible completions:
          operator             permissions [ clear network reset trace view ]
          read-only            permissions [ view ]
          super-user           permissions [ all ]
          unauthorized         permissions [ none ]
        [edit]
        user@router# set example newbie user-class operator

        [edit]
        user@router# show example
        newbie {
            user-class operator;
        }

        [edit]

Topics for further reading:

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