iRules Style Guide
This article (formatted here in collaboration with and from the notes of F5er Jim_Deucker) features an opinionated way to write iRules, which is an extension to the Tcl language. Tcl has its own st...
Updated May 20, 2024
Version 4.0JRahm
Admin
Joined January 20, 2005
Jim_Deucker
Employee
Joined September 02, 2019
JRahm
Admin
Joined January 20, 2005
Kai_Wilke
Jan 10, 2023MVP
Spotted another glitch in the final iRule:
foreach { f } { ${e} } {
# always braces around the lists
}
If $e is holding your list, then just pass the variable without any quotes or curlys to the loop. Otherwise the loop would just receive the string "${e}" but not the content of it...
Cheers, Kai 😉