path-reference

Mode: Configuration Mode

Description:

The path-reference statement is a convenient feature. It is used for auto-completion when an attribute refers to a 'setof list' item in another section of the configuration. For example, ssl service may depend on a certificate in the list of certificates already installed on the router.

It is not a pre-requisite for the referred item to exist before the user configures the attribute but the referred item won't be an available choice until it is configured.

Usually, path-reference is accompanied with a must statement for the same item it refers to. JUNOS should not allow using a referred setting that is not defined.

Example:

        object newbie {
            help "Newbie settings";

            attribute bgp-group-name {
                help "Newbie bgp group";
                type string;
                path-reference "protocols bgp group";
            }
        }

Example:

        user@router# set example newbie bgp-group-name ?
        Possible completions:
          <bgp-group-name>     Newbie bgp group
        [edit]
        user@router# set protocols bgp group int type internal 

        [edit]
        user@router# set protocols bgp group ext type external    

        [edit]
        user@router# show protocols 
        bgp {
            group int {
                type internal;
            }
            group ext {
                type external;
            }
        }

        [edit]
        user@router# set example newbie bgp-group-name ?
        Possible completions:
          <bgp-group-name>     Newbie bgp group
          ext                  
          int                  
        [edit]

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