action parse

Mode: Operational Mode

Description:

action parse is mostly used in Configuration Mode. The only place that is needed in the Operational Mode is when users execute "show configuration" in the Operational Mode. It passes the arguments to the Configuration Mode so that it supports the same capabilities as in the Configuration Mode.

Example:

...src/junos/lib/ddl/input/ui.cmd.dd

        command show {

            ...

            command configuration {
                help "Show current configuration";
                require view;
                action parse mgd ddl_show_database_parse;
                action execute mgd ddl_show_database_noop;
            }

        }

Display:

        user@router> show configuration
        version "8.2I0 [user]"; ## last changed: 2006-12-04 19:13:21 PST
        example {
            newbie {
                constant-text hello;
            }
        }

        user@router> show configuration example
        newbie {
            constant-text hello;
        }
        user@router>

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