action acceptable

Mode: Operational Mode


The action acceptable function is invoked for 2 different purposes:

Return codes:

Action can be used to hide parts of the operational command or keep the user from being able to execute them.

If possible, reusing existing functions is recommended. Available functions can be found in .../src/junos/lib/ddl/junos-actions.

Example 1:


    command request {

        command system {

            command zeroize {
                help "Erase all data, including configuration and log files";
                hidden from-xml;
                require wheel;
                action acceptable mgd mgd_is_fips;
                action execute mgd mgd_zeroize;
                argument self {
                    help "Zeroize just this Routing Engine";
                    hidden internal;
                    type toggle;


router is not a FIPS router

        user@router> show version
        Hostname: frouter
        Model: t320
        JUNOS Software Release [8.1R1]
        user@router> request system zero?
        No valid completions

frouter is a FIPS router
        user@frouter> show version
        Hostname: frouter
        Model: t320
        JUNOS Software Release [8.1R1] (FIPS edition)
        user@frouter> request system zero?
        Possible completions:
          zeroize       Erase all data, including configuration and log files

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