flag k1000

Mode: Configuration Mode

Description:

With flag k1000, kilo (k), mega (m), and giga (g) represent the power of 10 (SI prefix instead of the default binary prefix system). When values are displayed in configuraiton, the values will be shown with in the shortest possible form with k, m, or g, if applicable.

Example:

        object newbie {
            help "Newbie settings";

            attribute number {
                help "Newbie number";
                flag k1000;
                type uint;
                default 10;
            }
        }

Display:

        user@router# set example newbie number ?
        Possible completions:
          <number>             Newbie number
        [edit]
        user@router# set example newbie number 2000000 

        [edit]
        user@router# commit 
        commit complete

        [edit]
        user@router# show example 
        newbie {
            number 2m;
        }

        [edit]
        user@router# set example newbie number 1100101  

        [edit]
        user@router# show example
        newbie {
            number 1100101;
        }

        [edit]

Topics for further reading:

See also:
flag_kilo

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