flag text-choice

Mode: Configuration Mode

Description:

The text-choice flag indicates a string input in an enumerated choice. Users can input undefined strings or choose one of the predefined choices.

Example:

        object newbie {
            help "Newbie settings";

            attribute newborn {
                help "New born";
                type enum string {
                    choice name {
                        flag nokeyword text-choice;
                        help "User defined name";
                    }
                    choice clyde {
                        help "Suggestion for a boy's name";
                    }
                    choice bonnie {
                        help "Suggestion for a girl's name";
                    }
                }
            }
        }

Display:

        user@router# set example newbie newborn ?
        Possible completions:
          <name>               User defined name
          bonnie               Suggestion for a girl's name
          clyde                Suggestion for a boy's name
        [edit]
        user@router# set example newbie newborn clyde

        [edit]
        user@router# commit 
        commit complete

        [edit]
        user@router# show example 
        newbie {
            newborn clyde;
        }

        [edit]
        user@router# set example newbie newborn felix

        [edit]
        user@router# commit
        commit complete

        [edit]
        user@router# show example
        newbie {
            newborn felix;
        }

        [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