Forum Discussion

David_Larsen's avatar
David_Larsen
Icon for Employee rankEmployee
Dec 03, 2012

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 {} } } }

2 Replies

  • 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