Forum Discussion

ancanada_4516's avatar
ancanada_4516
Historic F5 Account
Mar 01, 2007

v9 irule to v4 conversion

Hi,

 

 

We did de irule below in v9, but we have to deploy it also in v4 boxes. I this that universal persistance is not supported in v.4. Can you advice to re-create it in v.4?

 

 

Thanks,

 

 

AC

 

 

when CLIENT_ACCEPTED {

 

TCP::collect

 

}

 

when CLIENT_DATA {

 

set num [expr int(rand()*1000)]

 

set str "[TCP::payload ]"

 

if { $str contains "AAA" } {

 

set num [ findstr "$str" "AAA:" 7 \n ]

 

}

 

persist uie $num 300

 

TCP::release

 

}

 

1 Reply

  • Martin_Machacek's avatar
    Martin_Machacek
    Historic F5 Account
    Antonio,

     

     

    it is unfortunately not possible to re-create the rule in v4. The missing functionality is the random number generation. Otherwise universal persistence is available in v4 in a limited form (compared to v9), for example you cannot use conditionals (if .. then) in persistence expressions. Please refer to the BIG-IP Reference Guide for details.