F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

JA_35135's avatar
JA_35135
Icon for Nimbostratus rankNimbostratus
Jan 02, 2014

need help with iRule after migrated to ver 11

one of my iRule showing below error after migrating from ver 10.2.4 to ver 11, below is the error, please help

 

can't read "static::C_RETURN": no such variable while executing "set respAction $static::C_RETURN"

 

2 Replies

  • Hi,

     

    Remember that in version 11, the iRules syntax changed (Folders).

     

    So check the rule and verifies that the objects are associated with the correct folder.

     

    Ex.: when HTTP_REQUEST { if { [[HTTP::header User-Agent] contains “MSIE”] } { pool /Common/IE_pool } elseif { [[HTTP::header User-Agent] contains “Mozilla”] } { pool /Common/MZ_pool } else /Common/other_pool

     

    }

     

  • While it might be entirely possible that folder designation could be the issue if using multiple partitions, that wouldn't or shouldn't be the case if using the common partition. How are you setting this global variable? Can you post your iRule?