Jeff_Richards_4
Mar 15, 2005Nimbostratus
iRules matchclass
I'm having trouble getting an iRule to work with matchclass. This is the rule I'm trying to use:
when HTTP_REQUEST {
if { [matchclass [HTTP::host] equals $::CorpWebHostNames] } {
use pool CorpWeb
}
else {
use pool ProdWeb
}
}
And I keep getting this error:
01070151:3: Rule [test] error:
line 5: [undefined procedure: else] [else
{
use pool ProdWeb
}]
I've verified that the CorpWeb and ProdWeb pools exist. Can anyone see what's wrong with my rule? Thanks.