Forum Discussion
Philip_King_719
Nimbostratus
Feb 26, 2014Using irule to set persistence profile
We are running LTM v11.2.1 on 4200 devices.
I currently have a source address persistence profile set for all traffic going through one of my virtual servers. I have been asked to find a way to ...
Hadrien_34878
Nimbostratus
Oct 08, 2014I 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...
Hadrien_34878
Nimbostratus
Oct 09, 2014I'm not sure if this exactly fits. I'll try exposing some samples to illustrate :
ltm persistence source-addr toto {
app-service none
defaults-from source_addr
timeout 900
}
ltm virtual A {
[...]
persist {
persist_PFCI_WHEAT_srcaddr {
default yes
}
}
pool toto
[...]
}
ltm virtual B {
[...]
rules {
toto
}
[...]
}
ltm rule toto {
when CLIENT_ACCEPTED {
if { blabla } {
persist source_addr 255.255.255.255 900
pool toto
}
[...]
}
}
The syntax for source address persitence in irule is : persist srcaddr [mask ] []
My wish here would be to write something like this in irule : persist toto
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects