Forum Discussion
Bret_McGinnis_1
Nimbostratus
Sep 20, 2005TCL runtime errors
Hi, is there a way to capture and process iRule TCL runtime errors. On a few occasions I have created and tested an iRule and in our lab and it works fine. When I implement the iRule on a production B...
Bret_McGinnis_1
Nimbostratus
Sep 28, 2005Sorry to go radio silent for so long but writting iRules is not my day job.
Anyway, where were we ... Oh yes, I was working on two problems.
The mod 12 calculation works fine up until the number is larger than 9 digits. After 9 it fails the integer check. -strict has no effect.
For using catch to catch runtime errors works well until I added a "return" command within the catch. The return works but the check for != 0 always fails and I get a syslog message with no text. I tried using "return 0" (syslog message is "0". "return -code 0" also gets a syslog message with no text.
What am I doing wrong?
Another question I have is in regards to the [LB::server addr] variable. If is have a value ie an IP address should it pass an If info exist test. Second, if the LB_FAILED is caused by a real pool failure does [LB::server addr] have a null value or does it not exist?
Regards,
Bret
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