Forum Discussion
Gary_Bristol_19
Nimbostratus
Oct 12, 2015Irule to External Data Group not pulling up second data field
In using an External Data Group everything seems to work except for the pulling up of the second data area.
when RULE_INIT {
Turn Debug on or off (0=off 1=on)
Turn debug off in prod
...
Kevin_Stewart
Employee
Oct 12, 2015Your code looks reasonable. Are you just not returning a value into $goto? The class lookup command uses an implied "equals" comparison, so you might just not be making an exact match. Try this instead:
set goto [class match -value $match_string starts_with www_ou_edu_redir_class]where the data group is the least specific URL pattern. You can also simplify some of your code by getting rid of a few variables:
set goto [class match -value [string tolower [HTTP::host][HTTP::path]] starts_with www_ou_edu_redir_class]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