Forum Discussion

Celindro_95934's avatar
Celindro_95934
Icon for Nimbostratus rankNimbostratus
Mar 06, 2007

persisting in an Irule

Hi,

 

Looking at the persist option in Irules am I reading it wrong where I can specifiy a persistence profile. I've created a cookie based persistence profile and tried using it, but the irule editor states I can only use the other standard options such as cookie, none, source_addr.

 

 

persist

 

 

this would be great, since mirroring persistence would be handled by the profile, as I'm reading it seems that we currently can't mirror persistence in an irule.

 

 

-Vince
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    When you say that the iRule Editor is stating that you can't use your own profile name...what is it saying, exactly? Are you running a syntax check and getting an error?

     

     

    You should be able to use the command as listed above.

     

     

    Colin
  • so here is the irule I'm trying out.

     

     

    when HTTP_REQUEST {

     

     

    set myUri [HTTP::uri]

     

     

    If the URI has horde/imp ie after authentication, then persist on horde cookie value

     

    if { $myUri contains "horde" or "imp"} {

     

    persist test

     

    } else {

     

    persist none

     

    }

     

    }

     

     

     

    using bigpipe profile persist I get the following,

     

     

    other info cut

     

     

     

    PROFILE test PERSISTENCE parent: cookie

     

    | mode: cookie mode: hash name: Horde

     

     

     

    and I'm doing this through the irule editor in the webgui.

     

     

    I get the following when hitting update.

     

     

    line 7: [invalid option "test" must be: cookie none source_addr simple dest_addr sticky msrdp ssl uie universal hash add lookup delete] [test]