Forum Discussion
chungyu_16122
Mar 17, 2011Altostratus
Create an External class file
Hi all
I am using an iRule to move traffic to different pools based on data group strings. Initially for testing used the GUI data group interface to create the class file.
But for...
The_Bhattman
Mar 17, 2011Nimbostratus
Hi chungyu,
A couple of things.
Is your ADC on v9 or v10?
How are you seperating the external file entries? Are you using := or ";" or "," etc. If you are then did you make sure you defined that in the datagroup you defined in the GUI?
Have you tried changing your code to the following
v9.x
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] contains $Drupal} {
pool CCS_Drupal
} else {
pool CSS_Webnode
}
}
or
v10
when HTTP_REQUEST {
if { [class match [HTTP::uri] contains Drupal] } {
pool CCS_Drupal
} else {
pool CSS_Webnode
}
}
I hope this helps
Bhattman
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