Technical Documentation

Expanding Interface Range Member and Member Range Statements

All member and member-range statements in an interface range definition are expanded to generate the final list of interface names for the specified interface range.

Example: Expanding Interface Range Member and Member Range Statements

[edit]interfaces {interface-range foo {member-range ge-0/0/0 to ge-4/0/20;member ge-10/1/1;member ge-5/[0-5]/*;/*Common config is added part of the interface-range definition*/mtu 256;hold-time up 10;ether-options {flow-control;speed {100m;}802.3ad primary;}}}

For the member-range statement, all possible interfaces between start-range and end-range are considered in expanding the members. For example, the following member-range statement:


member-range ge-0/0/0 to ge-4/0/20

expands to:

      [ge-0/0/0, ge-0/0/1 ... ge-0/0/max_ports
       ge-0/1/0  ge-0/1/1 ... ge-0/1/max_ports
       ge-0/2/0  ge-0/2/1 ... ge-0/2/max_ports
                           .
                           .
       ge-0/MAX_PICS/0 ... ge-0/max_pics/max_ports
       ge-1/0/0  ge-1/0/1 ... ge-1/0/max_ports
                           .
       ge-1/MAX_PICS/0 ... ge-1/max_pics/max_ports
                           .
                           .
       ge-4/0/0 ge-4/0/1  ... ge-4/0/max_ports]

The following member statement:


ge-5/[0-5]/*

expands to:

      ge-5/0/0 ... ge-5/0/max_ports
      ge-5/1/0 ... ge-5/0/max_ports
          .
           .
      ge-5/5/0 ... ge-5/5/max_ports

The following member statement:


ge-5/1/[2,3,6,10]

expands to:

      ge-5/1/2
      ge-5/1/3
      ge-5/1/6
      ge-5/1/10

Published: 2010-04-20