Forum Discussion
CMR-NYC_176898
Nimbostratus
Sep 21, 2016APM Datagrouo
I would like to reference a data group which has multiple strings and values, example.
Datagroup1
domain = "mydomain.com
domain1 = "mydomain.com
domain2 = "yourdoamin.com
domain3 = "hisdoma...
Kai_Wilke
MVP
Sep 21, 2016Hi Chris,
to use the class command (or any other iRule specific TCL syntax) within an APM policy evaluation, you have to use an iRule Policy Action within VPE.
VPE iRule Action:
- Name: DomainDataGroupCall
- ID: DomainDataGroupCall
iRule Code:
when ACCESS_POLICY_AGENT_EVENT {
if { [ACCESS::policy agent_id] eq "DomainDataGroupCall" } then {
set orig_domain [ACCESS::session data get "session.logon.last.domain"]
if { [set resolved_domain [class match -value $orig_domain equals DG_APM_DOMAIN_LOOKUP]] ne "" } then {
log local0.debug "Resolved Domain: $resolved_domain"
ACCESS::session data set "session.logon.last.domain" $resolved_domain
}
}
}
Cheers, Kai
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