Forum Discussion

Steve_Brockman_'s avatar
Steve_Brockman_
Icon for Nimbostratus rankNimbostratus
Oct 25, 2005

config load failure when iRule contains regsub

Has anyone seen this or know of a work-around?

When we have the following line in our iRule, the "b load" (or bigstart restart) command fails:

regsub -all {\n} $certStr {} certStr

Something with the brackets causes a syntax error. It also seems to occur when there is more than one occurance this regsub command in the iRule. Just one occurance loads fine.

Thanks!

Steve
  • unRuleY_95363's avatar
    unRuleY_95363
    Historic F5 Account
    Yes, we know about this bug. I believe it has been fixed, but the work around is easy. Simply make sure there is always at least a space between open and close curly braces.
    eg: { }
    not: {}
  • Hi unRuleY, just wanted to clarify that the { } solution will not work in my case as this will insert whitespace that I am trying to remove.

     

     

    Joe, I tried your solution, it works! Thanks.