flag remove-empty

Mode: Configuration Mode

Description:

The remove-empty flag specifies that if the objects contains no defined attributes or child objects, the object should be removed from the configuration hierachy. Defining this flag ensures that empty objects and partial configurations cannot be entered.

<[Enter]> is not an option in the help message for the object.

Example:

        object newbie {
            help "Newbie settings";
            flag remove-empty;

            attribute mcast-addr {
                help "Test mcast address";
                flag multicast-only;
                type ipv4addr;
            }
        }

Display:

        user@router# set example newbie ?
        Possible completions:
        + apply-groups         Groups from which to inherit configuration data
        + apply-groups-except  Don't inherit configuration data from these groups
          mcast-addr           Test mcast address
        [edit]
        user@router# set example newbie            
                                        ^
        missing argument.

        [edit]
        user@router# set example newbie mcast-addr 224.0.0.2 

        [edit]
        user@router# show example 
        newbie {
            mcast-addr 224.0.0.2;
        }

        [edit]
        user@router# delete example newbie mcast-addr 

        [edit]
        user@router# show example

        [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