Forum Discussion
Jeff_Richards_4
Nimbostratus
Mar 15, 2005iRules 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] } { ...
unRuleY_95363
Mar 15, 2005Historic F5 Account
Yeah, this is due to a known problem with whitespace following the '}' close brace on the line preceding the 'else'. We have a CR for this and will get it fixed in the next release. Getting this extra whitespace is a really easy thing to do if you are at all cutting and pasting.
In the meantime, either be extra sure there is no trailing whitespace at the end of your lines or simply put the 'else {' on the same line as in:
when HTTP_REQUEST {
if { [matchclass [HTTP::host] equals $::CorpWebHostNames] } {
use pool CorpWeb
} else {
use pool ProdWeb
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
