Forum Discussion
stan_peachey_86
Cirrus
Nov 13, 2015findclass to class iRule help request
We had a v9.x iRule that called an internal datagroup (xxx_direct) via findclass and logged connections. I'm mostly concerned about proper use of class command to call datagroup. We are upgrading to...
Kevin_Davies_40
Nacreous
Nov 13, 2015In v9 there were string data groups but no key value pair as there is in v10. Take the $::xxx_direct data group, create it with the same name xxx_direct but seperate each string on the first space into key and value pairs. Before the space is the key. The rest after the space is the value. Then your comand will be
set direct [class match -value $host equals xxx_direct]
Another command you could update would be the two for setting host_org and collapse them into this.
set host_org [string tolower [getfield [HTTP::header "Host"] "." 1]]
stan_peachey_86
Cirrus
Nov 16, 2015Thanks! We will start testing in the newer code soon. Why does original set host_org change from 0 "." to "." 1 in your example?
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