Forum Discussion
SteveMP
Nimbostratus
Mar 28, 2019TCL errors on iRule
I have an iRule that looks at the source IP, tries to match the IP address to one in a data group list, and if it matches it sends it to a specific pool. This works in one region, but I copy and pas...
Kai_Wilke
MVP
Mar 28, 2019Hi Steve,
i have an idea how to figure out whats going wrong...
when HTTP_REQUEST {
if { [catch {
Lets try this...
if { [string tolower [HTTP::uri]] contains "/ews/" } then {
if { [class match [IP::client_addr] equals "O365_Exchange_Online_IPv4" ] } then {
pool /Common/AP_EXT_O365_Exchange_Online_Direct
} elseif { [class match [IP::client_addr] equals "O365_Exchange_Online_IPv4" ] != [class match [getfield [IP::client_addr] "%" 1] equals "O365_Exchange_Online_IPv4" ] } then {
log local0.debug "Reminder to myself the other region uses Route Domain suffixes..."
}
}
}] } then {
Something strange is going on and has crashed TCL
log local0.debug "Extended Error: [subst "\$::errorInfo"]"
}
}
Cheers, Kai
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
