Forum Discussion
HTTP::class select doesn't work anymore after upgrade to v11.2.1
Hello,
I recently upgraded a cluster from v10.2.3 to 11.2.1.HF6.
This all went well. Except, that for 2 Virtual Servers, an iRule is used to redirect traffic to an HTTP class depending on the uri.
This all worked before (version 10.2.3)
The only thing I could do to allow the traffic is redirect it to a pool instead of the HTTP class itself.
If I used the HTTP class, I get the following message in the ltm log file:
May 29 08:39:02 appliance err tmm3[7860]: 01220001:3: TCL error:rewrite_Header - Illegal argument (line 12) invoked from within "HTTP::class select CLASS_test
I already looked in the F5 knowledgebase, but everyting that is mentioned there is already configured correctly.
Does anyone have any idea on how to solve this?
Tnx
3 Replies
- Mike_Maher
Nimbostratus
Can you post the iRule
- frank_30469
Nimbostratus
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/uap/prod/" } {
set original_uri [HTTP::uri]
set modified_uri [string range $original_uri 10 end]
set new_uri /uap/$modified_uri
HTTP::header replace Host "xyz.xyz.xy"
HTTP::uri $new_uri
pool POOL_test
HTTP::class select CLASS_test
}
} - bwolmarans_1284Historic F5 Account
Irule Use class in favor of matchclass, findclass (deprecated) v9.4.4 – v10 Use of $::datagroup_name demotes virtual server from running on all TMMs In v11, this syntax will result in TCL runtime error https://devcentral.f5.com/wiki/iRules.matchclass.ashx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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