Forum Discussion
ccraddock_33000
Feb 27, 2019Nimbostratus
iRule assistance
Dear Dev Central,
I have some specific requirements for an iRule but am not exactly sure how to make it all work in one iRule or if I should use 2 iRules evaluated sequentially. The iRules are as f...
Feb 27, 2019
It's a matter of personal preference, but I like to consolidate iRules into one as much as possible.
You can use the return statement to prevent further logic from being executed under the same event within the same iRule
Does the following help?
when HTTP_REQUEST {
if { [HTTP::path] starts_with "/resources/" } {
pool pool_atldevngn
return
}
if { !( [class match [HTTP::uri] contains api_string] ) } {
discard
log local0. "connection DISCARDED from [IP::client_addr]"
return
}
pool pool_atlapipool1
}
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