require-names

Mode: Configuration Mode

Description:

In JUNOS, permission are required to view/configure various parts of the object hierarchy. Example, to configure anything under 'protocols' you need to have protocol-control permission. The list of permission is currently hard coded.

In the ddl file, the new permission must be declared by the require-names statement.

Example:

...src/junos/lib/ddl/input/exampled.cnf.dd:

        In the ddl file, the new permission must be declared by the
        require-names statement.  For the exampled case, we do the following.

             require-names example; 

        So that we can use the strings in a require statement downstream.
   
             object example {
                 require example;
                 ...
             }

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