Forum Discussion
Hadrien_34878
Nimbostratus
I have a few irules invoked by different virtual servers. Sometimes the persistence will be set at vs level, and sometimes it will be set in the irule with the same non-standadrd settings. Unfortunately, there doesn't seem to be a way to call a persistence profile object from within an irule :-( If it was possible, I wouldn't have to edit the irules in case of a settings change...
mikeshimkus_111
Oct 08, 2014Historic F5 Account
IIRC, if the persistence profile is assigned to the virtual server and you call that persistence method from an iRule, it should use the settings of the attached profile. You can attach multiple profiles (not fallback profiles) but you need to do it from the tmsh command line. Something like this:
modify ltm virtual my_vip persist replace-all-with { cookie { default no } source_addr { default no } universal { default yes} }