Rapid iRule Removal via Tmsh Script
Published May 14, 2010
Version 1.0Was this article helpful?
Thanks for the quick answer.
I did some troubleshooting on this but I'm not much of developer so I might be missing something very basic for you.
All the logging I did was through the PUTS command so I can see it right in the screen after the script execution.
Added many logs as flags to understand where the flow was going through. Logged the variables $rules and $rulename before the IF. Even logged the complete function [lsearch -exact $rules $rulename] to know the value the function returns. It always returns a -1.
These are the values of the parameters before the IF and LSEARCH execution:
$rules: {rules /Common/_sys_https_redirect}
$rulname: /Common/_sys_https_redirect
Do you see any reason of why the LSEARCH function will not find the string within the rules? Note that I have also tried removing the -exact option to the LSEARCH.
Thanks!
Ariel