Forum Discussion

Alscion_68122's avatar
Alscion_68122
Icon for Nimbostratus rankNimbostratus
Sep 30, 2014

Replacing HTTP::class select after 11.4

Hi,

 

I've an irule in v12.2.1 to trig an ASM policy depending on the URI called on my Virtual Server.

 

To trig the appropriate policy we used HTTP::class select . This HTTP Class iRule events have been deprecated with v11.4...

 

I checked askF5 for an equivalent but there is no: HTTP::class select : No equivalent.

 

I checked POLICY:: or ASM:: commands but didn't understand how to trig my ASM policy.

 

Can have some help please?

 

Thx.

 

3 Replies

  • shaggy's avatar
    shaggy
    Icon for Nimbostratus rankNimbostratus

    Depending on what you're doing in the iRule, the Local Traffic Policies are ridiculously customizable, so you may be able to achieve the desired iRule logic in an LTM policy without an iRule.

    SOL14381 has the following example as a replacement for HTTP::class select:

    when HTTP_REQUEST {
     if {[llength [POLICY::names matched]] > 0} {
         …
     }
     }
    
  • Hi Alscion,

     

    I have tested the same thing with Local Traffic >> policies and succeeded.

     

    Please go through the below link for details.

     

    http://support.f5.com/kb/en-us/solutions/public/15000/000/sol15085.html

     

    regards,

     

    Mohammed Shiraz Mukram