Forum Discussion
jonathan_voigt_
Nimbostratus
Jul 08, 2013class 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
- Kevin_Stewart
Employee
Please tell us about $uri (how it's set) and the "Our_WebApps" data group. - jonathan_voigt_
Nimbostratus
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 - jonathan_voigt_
Nimbostratus
but still doesn't work as expected vs 10.2.3 - Kevin_Stewart
Employee
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? - Kevin_Stewart
Employee
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" } } - jonathan_voigt_
Nimbostratus
they are all the same case.... I'm back to square one.. ;( - Kevin_Stewart
Employee
Can you post the entire iRule? - jonathan_voigt_
Nimbostratus
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!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects