wsanders_233261
Jan 09, 2018Nimbostratus
"event disable all" does not stop further ltm rule processing
I have been let to believe from documentation and community answers that "event disable all" i supposed to stop further ltm rule processing in a virtual. But have the following code that still results in a "err tmm[12160]: 01220001:3: TCL error: /Common/my-net-access-only-RULE - Operation not supported. Multiple redirect/respond invocations not allowed". Here:
ltm virtual /Common/some-virtual {
...
rules {
/Common/my-net-access-only-RULE
/Common/some-other-RULE-that-might-redirect
/Common/some-other-RULE-that-might-redirect
...
ltm rule my-net-access-only-RULE {
when HTTP_REQUEST {
if { not [class match [IP::client_addr] equals my-net-CLASS ] } {
log local0. "===== D R O P P E D : ====================="
log local0.debug "IP::client_addr: [IP::client_addr]"
HTTP::respond 403 content {403 Forbidden}
event disable all
}
}
}
Is there a reliable way to not process subsequent ltm rules after an "exception" is raised, other than consolidating all the rules of kludgily passing some global flag?