David_Larsen
Dec 03, 2012Employee
iRule 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 {}
}
}
}