object

Mode: Configuration Mode

Description:

The object hierarchy definition is structure of the hierarchical database and the attributes are the actual variables with value (leafs of the tree).

Defines a parent entity that can have one or more children. A child can be another object or an attribute. An object definition that is a 'setof' defines a container of like objects. The object definition that is a 'setof' is the definition of the container and the elements of that container all in one definition.

A clear indicator of an object in the cli is '>' in the help message (an attribute does not have any preceding characters in the help message).

Example:

   object juniper-config {
        
       object newbie {
           help "Newbie section";
  
            attribute uid {
                help "User id";
                type ranged int 16 .. 511;
            }
        }
        
   }

Display:

   user@router# set newbi?                                      
   Possible completions:                                
   > newbie               Newbie section                
   [edit]                                               
   user\@router# set newbie ?                   
   Possible completions:                                
     <[Enter]>            Execute this command  
   + apply-groups         Groups from which to inherit configuration data
   + apply-groups-except  Don't inherit configuration data from these groups
     uid                  User ID (16..512)
     |                    Pipe through a command
   [edit]
   user@router# set newbie uid 101
 
   [edit]
   user@router# commit 
   commit complete
 
   [edit]
   user@router# show 
   version "8.1I0 [user]";
   newbie {
       uid 101;
   }
 
   [edit]

See also:
attribute

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