Forum Discussion
Stan_Ward
Altocumulus
Aug 20, 2016How can I set the route domain in an iRule?
I have an iRule that determines the business unit of a customer based on their login. Presently the rule is called by an APM iRule event, and then looks at the response and sets the RD based on it u...
Stanislas_Piro2
Cumulonimbus
Aug 22, 2016Hi,
you can try this irule:
when ACCESS_POLICY_COMPLETED {
if { ([ACCESS::policy result] equals "allow") } {
set ou [ACCESS::session data get "session.ad.last.attr.ou"]
set route_domain [class match -value $ou equals BU_RD_DG]
ACCESS::session data set "session.network.name" $route_domain
}
}
When using APM with irule, it is better to use events ACCESS_POLICY_COMPLETED and ACCESS_POLICY_STARTED instead of irule policy event.
in you case, ACCESS_POLICY_COMPLETED is the best event as it raise once at the end of policy evaluation.
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