type ipaddr-or-interface

                  type ipaddr-or-interface
                  type ipv4addr-or-interface
                  type ipv6addr-or-interface

Mode: Configuration Mode

Description:

ipaddr-or-interface:

The ipaddr-or-interface type takes either a four-field dotted-decimal IPv4 address or a logical interface name (ifl such as ge-0/0/0.0). If a physical interface name (ifd) is entered, it will be expanded and interpreted as the first logical unit (.0).

ipv4addr-or-interface

This is the same as ipaddr-or-interface. It takes either a four-field dotted-decimal IPv4 address or a logical interface name (such as ge-0/0/0.0). If a physical interface name (ifd) is entered, it will be expanded and interpreted as the first logical unit (.0).

ipv6addr-or-interface

This is the same as ipaddr-or-interface. It takes either a colon-delimited IPv6 address or a logical interface name (such as ge-0/0/0.0). If a physical interface name (ifd) is entered, it will be expanded and interpreted as the first logical unit (.0).

Example:

        object newbie {
            help "Newbie DDL tester";

            attribute test-address {
                help "Test ipv4addr-or-interface type";
                type ipv4addr-or-interface;
            }
        }

Display:

        user@router# set example newbie test-address ?
        Possible completions:
          <test-address>       Test ipv4addr-or-interface type
        [edit]
        user@router# set example newbie test-address 192.168.101.33
        
        [edit]
        user@router# show example
        newbie {
            test-address 192.168.101.33;
        }

        [edit]
        user@router# commit check
        configuration check succeeds

        [edit]
        user@router# set example newbie test-address ge-0/0/0.3

        [edit]
        user@router# show example
        newbie {
            test-address ge-0/0/0.3;
        }

        [edit]
        user@router# commit check
        configuration check succeeds

        [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