yammy1688_99834
Mar 30, 2011Nimbostratus
class variable pairs possible?
when CLIENT_ACCEPTED {
if {[IP::addr [IP::client_addr] equals "10.64.40.0/24"] } {
node 10.64.40.2
} elseif {[IP::addr [IP::client_addr] equals "10.64.41.0/24"] } {
node 10.64.41.2
}
}
etc...
Is it possible to use class with a pair of matched variables? I'm going to have quite a number of these statements and would prefer to keep the irule as small as possible.
Thanks,
-Ken