contains-node

Mode: Configuration Mode

Description:

'contains-node' copies all charisteristics of the reference node, including the name of the reference node.

Compared to 'contains' which only copies all children nodes and not any charateristics of the reference node, for example, help message, flags, etc..

This feature is useful when a feature needs to be supported under logical-systems and routing-instances. It allows a whole stanza of configuration in the master instance to be available under the logical-system or routing-instance context.

Example:

        object oldie {
            help "Old object";
            flag oneliner;

            attribute word {
                help "An arbitrary string";
                type string;
            }
        }

        object juniper-config {
            object newbie {
                help "Newbie section";
                flag remove-empty;

                contains-node oldie;
            }
        }

Display:

        user@router# set ?
        Possible completions"
        oldie           Old object

        [edit]
        user@router# set oldie ?
        Possible completions:
        word            An arbitrary string 

        [edit]
        user@router# set oldie word beginning

        [edit]
        user@router# commit 
        commit complete

        [edit]
        user@router# show      
        version "9.1I0 [user]";
        oldie word beginning;

        [edit]

See also:
contains.cfg

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