Forum Discussion

Antonio_Varni's avatar
Antonio_Varni
Icon for Nimbostratus rankNimbostratus
Apr 17, 2014

snat pool persistence irule help

https://devcentral.f5.com/wiki/irules.snat_pool_persistence.ashx

 

works great until the F5 is rebooted. Then all SNAT breaks with tons of logs: Apr 17 11:35:35 bip2 err tmm2[9515]: 01220001:3: TCL error: /Common/snat-external - can't read "static::array_size": no such variable while executing "expr {[crc32 [IP::client_addr]] % $static::array_size}"

 

fix was to panic, try to calm down, and then add or remove a comment in the irule to force static::array_size to be recalculated.

 

Would this be expected behavior? Would there be a fix for the irule to do this automatically?

 

1 Reply

  • We have some errors with iRules as well after a system reboot. It seems that things don't load in the proper order or something, I haven't quite figured it out. Once the device is fully booted though, a configuration reload should fix the issue. Just do a 'tmsh load sys config' from CLI and see if that fixes your issue.