v11: iRules Data Group Updates
Several months ago I wrote up the v10 formatting for internal and external datagroups: iRules Data Group Formatting Rules. In v11, however, there is a change to the format of the internal data group ...
Updated Oct 02, 2023
Version 3.0JRahm
Admin
Joined January 20, 2005
Belanger__Yves
Nov 21, 2012Altostratus
I use this in version 10.
when HTTP_REQUEST {
set redirecthost [class search -value $::ListeShwebredir equals [string tolower [HTTP::host]]]
if { $redirecthost ne "" } {
HTTP::redirect "$redirecthost"
log local0. "DEBUG-REDIR [HTTP::host][HTTP::uri] redirection vers : $redirecthost"
unset redirecthost
return
}
}
But, it doesn't work in version 11. We received this error message :
Nov 21 08:20:59 tmm err tmm[7850]: 01220001:3: TCL error: /Common/Shwebredir-iRule - can't read "::ListeShwebredir": no such variable while executing "class search -value $::ListeShwebredir equals [string tolower [HTTP::host]]"
Does any body know a solution for it?
Yves