Brocade Virtual ADX Graphical User Interface Guide (Supporting ADX v03.1.00) User Manual
Page 273

Brocade Virtual ADX Graphical User Interface Guide
261
53-1003242-01
Overview
B
Example 2
In this example, the iteration of IP addresses is done differently through “autoIncrement” with the
following variables:
The following repeater is for the real server creation:
<variables>
<variable>
<variableName>RS_COUNT</variableName>
<dataType>integerNonZero</dataType>
<defaultValue>4</defaultValue>
</variable>
<variable>
<variableName>RS_PREFIX</variableName>
<dataType>string</dataType>
<defaultValue>rs</defaultValue>
<!--
used with a string, autoIncrement will append suffix
numbers to each item in a repeater -->
<autoIncrement>true</autoIncrement>
</variable>
<variable>
<variableName>RS_FIRST_IP</variableName>
<dataType>ipAddress</dataType>
<defaultValue>20.1.1.100</defaultValue>
<!--
used with an ipAddress, autoIncrement will increment the
ip address for each item in a repeater -->
<!--
validation logic will throw an error if there aren't
enough ip addresses in the subnet to do this -->
<autoIncrement>true</autoIncrement>
</variable>
<variable>
<variableName>RS_FIRST_SERVER_ID</variableName>
<dataType>integerNonZero</dataType>
<defaultValue>1024</defaultValue>
<!--
used with an integer or integerNonZero, autoIncrement will
increment the number for each item in a repeater -->
<autoIncrement>true</autoIncrement>
</variable>
</variables>
<reals>
<repeater count="RS_COUNT">
<real>
<name variable="RS_PREFIX"/>
<ip variable="RS_FIRST_IP"/>
<realPorts>
<realPort>
<port>http</port>
<serverId variable="RS_FIRST_SERVER_ID"/>
</realPort>
</realPorts>
</real>
</repeater>
</reals>