flag cells

Mode: Configuration Mode

Description:

Flag cells is only related to ATM cell settings. Each atm cell is 48-byte long (384 bits).

With flag cells, the CLI understand inputs in 2 formats

  1. regular integers
  2. regular integers with suffix 'c'

When the suffix 'c' is used, it indicates the number of cells. This number is multiplied by 384 and stored in the database in terms of bits.

Since users do not have to enter values that are multiples of 384, show configuration shows this number that is stored (instead of the number of cells).

Example:

        object newbie {
            help "Newbie settings";

            attribute queue {
                flag cells;
                help "Length of queue size";
                type uint;
            }
        }

Display:

        user@router# set example newbie atm-queue ?
        Possible completions:
          <atm-queue>          Length of queue size
        [edit]
        user@router# set example newbie atm-queue 5c 

        [edit]
        user@router# show example
        newbie {
            atm-queue 1920;
        }
        [edit]
        user@router# set example newbie atm-queue 768   

        [edit]
        user@router# show example                        
        newbie {
            atm-queue 768;
        }

        [edit]
        user@router# set example newbie atm-queue 111

        [edit]
        user@router# show example
        newbie {
            atm-queue 111;
        }
        [edit]

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