Mode: Configuration Mode


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.


        object newbie {
            help "Newbie settings";

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


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

        user@router# set example newbie ext 50000  

        user@router# commit
        commit complete

        user@router# show example
        newbie {
            name anonymous;
            ext 50000;

        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">


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