xml-name

Mode: Configuration Mode

Description:

The xml-name statement specifies the xml-tag of the attribute. By default, the xml-name is the same as the name of the object or attribute.

Please note that if an attribute is named 'name', compilation of the input ddl file will fail unless the xml-name needs to be specified with a different xml-name.

Example:

        object newbie {
            help "Newbie settings";

            attribute name {
                help "Name";
                xml-name "newbie-name";
                type string;
            }
            attribute ext {
                help "Extension";
                type uint;
            }
        }

Display:

        user@router# set example newbie ?
        Possible completions:
          <[Enter]>            Execute this command
          ext                  Extension
          name                 Name
          |                    Pipe through a command
        [edit]
        user@router# set example newbie name anonymous 

        [edit]
        user@router# set example newbie ext 50000  

        [edit]
        user@router# commit
        commit complete

        [edit]
        user@router# show example
        newbie {
            name anonymous;
            ext 50000;
        }

        [edit]
        user@router# show example | display xml 
        <rpc-reply xmlns:junos="http://xml.juniper.net/junos/8.2I0/junos">
            <configuration junos:changed-seconds="1162423628" junos:changed-localtime="2006-11-01 15:27:08 PST">
                    <example>
                        <newbie>
                            <newbie-name>anonymous</newbie-name>
                            <ext>50000</ext>
                        </newbie>
                    </example>
            </configuration>
            <cli>
                <banner>[edit]</banner>
            </cli>
        </rpc-reply>

        [edit]

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