The No Webserver Required Network Calculator rule from the CodeShare loads okay on a 10.1 GUI, and doesn’t show any problems in the desktop iRule editor; but when parsed via < b load >, results in:
012e0008:3: The requested command (}) is invalid
Removing the last trailing } doesn’t work in this case as it often does, and results in:
This rule is pretty large an beyond my peabrain’s ability to find the problem in it as published. Maybe there is possibly an escaping issue or somesuch..?
I expect this is a parsing error as the code wrapped in curly braces should force it be interpreted literally. The fact that the iRule loads initially supports the idea that the code is valid, but the parser is choking on it.
With such a long rule, it’s a little difficult to spot what syntax might be causing the problem. I’d suggest breaking the iRule into smaller parts and use ‘b verify load’ to test. You should be able to narrow down the issue to one or more syntax formats. Even if the iRule doesn’t function with the smaller pieces, it will help isolate the issue.