
Rules
BIG-IP® Reference Guide 4-55
Using the one of operator instead, you can cause BIG-IP to load balance all
incoming AOL connections to the pool aol_pool, if the value of the
client_addr variable is a member of the class AOL. Figure 4.26 shows this
type of rule. In this case, the one of operator indicates that the variable
client_addr is actually a list of values (that is, a class).
Figure 4.26 A rule based on the one of operator
Note that an expression such as client_addr equals one of aol is true if the
expression is true with at least one specific value in the class.
For another example of a rule using the one of operator, see Additional rule
examples, on page 4-65.
Class types
The one of operator for rules supports three specific types of classes. They
are:
• Strings - The following command creates a string class:
b class my_class { \".gif\" }
Note: This example shows the use of escape characters for the quotation
marks.
Figure 4.27 shows the resulting string type of class.
Figure 4.27 An example of a string type of class
• Numerics - The following command creates a numeric type of class:
b class my_protos { 27 38 93 }
rule my_rule {
if (client_addr equals one of aol) {
use (aol_pool)
}
else {
use (all_pool)
}
}
class images {
".gif"
}
Comentarios a estos manuales