Forum Discussion
David_Larsen
Employee
Dec 03, 2012iRule syntax on glob
I am getting an error message when syncing my 9.3.1 bigip's on the following irule. The interesting thing is it is coming up clean in iRule editor. Any help is appreciated:
when HTTP_REQUEST {
if { [matchclass [IP::client_addr] equals $::espn_internet_nats]} {
switch -glob [string tolower [HTTP::host]] {
"employeeforum.espn.com" {HTTP::redirect http://espnapps.corp.disney.com/employeeforum/ }
"townhall.espn.com" {HTTP::redirect http://espnapps.corp.disney.com/townhall/video.jsp }
default {}
}
}
}
2 Replies
- nitass
Employee
is this relevant?
sol7988: The iRule parser may fail to correctly parse and load an iRule when using the bigpipe load command
http://support.f5.com/kb/en-us/solutions/public/7000/900/sol7988.html - David_Larsen
Employee
That did the trick. Thanks, I don't think I would have ever found that one.
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