Mode: Configuration Mode


units is informational only and describes the type of object or attribute being configured.

If the object/attribute type is not limited by ranged, the unit is displayed in the help message, unless the help message is shorter than or equal to 80-char long.

If the object/attribute type is limited by ranged, the unit and the range are displayed in the help message, if the whole line is shorter than or equal to 80-char long. If the help message, including the range and the unit, is longer than 80 characters, the display will attempt to display the unit and not the range, to fit within the 80-character limit.

If the help message exceeds 80 characters when the unit is displayed, the units will not be included in the help message.


        object newbie {
            help "Newbie section";

            attribute test-unit {
                help "Test units";
                type ranged uint 3 .. 10;
                units 1test_test_test_test_test_test_unit;
                max-elements MAX_NUM_IP;


        user@router# # set newbie test-unit ?
        Possible completions:
          <test-unit>          Test units (3..10 1test_test_test_test_test_test_unit)
        user@router# set newbie test-unit 5

        user@router# commit 
        commit complete

        user@router# show      
        version "8.1I0 [user]";
        newbie {
            test-unit 5;


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:13 2010 for DDL Reference Guide by doxygen 1.4.5