Forum Discussion

jonathan_voigt_'s avatar
jonathan_voigt_
Icon for Nimbostratus rankNimbostratus
Jul 08, 2013

class match changes in 11.3 from 10.2?

I have an iRule that doesn't get fired for some reason in 11.3 HF5, it works fine in 10.2.3;

 

 

snippet below;

 

 

if {[class match $uri starts_with Our_WebApps ]}{

 

log "application routing"

 

}

 

 

any ideas?

 

8 Replies

  • set uri [HTTP::uri]

     

     

    Our_WebApps datagroup;

     

     

    ltm data-group internal /Common/Our_WebApps {

     

    records {

     

    /app1 { }

     

    /apps2 {}

     

    }

     

    type string

     

    }

     

    seems adding -index seems to make it fire now...

     

     

    e.g.

     

    if {[class match -index $uri starts_with Our_WebApps ]}{

     

     

    thx

     

  • Good that it works, but the -index option just changes the return value from a Boolean to the matched index value. Did you need the value or just a yes/no that it exists in the data group?
  • An chance the requested URI isn't the same case?

    
    when HTTP_REQUEST {
    if { [class match [string tolower [HTTP::uri]] starts_with Our_WebApps] } {
    log "mobility.telus.com application routing"
    }
    }
    
  • We figured it out, was related to another data group which was incorrectly defined.

     

     

    So there are no changes in the way class match operates based on what I posted at the beginning.

     

     

    thanks!