Forum Discussion

frank_30469's avatar
frank_30469
Icon for Nimbostratus rankNimbostratus
May 29, 2013

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

  • 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_1284's avatar
    bwolmarans_1284
    Historic 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