Forum Discussion
Steve_Knapp
Altostratus
Apr 28, 2014Help with "persist source_addr" command not working in Irule
I have an iRule that selects a pool member based on data within the 1st HTTP_REQUEST in a session and I need to persist on source IP address. I have a source IP persist profile set on the virtual se...
nitass
Employee
Apr 29, 2014have you seen persistence record? i do not see it when specifying pool member in irule.
e.g.
config
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.24.10:80
ip-protocol tcp
mask 255.255.255.255
pool foo
profiles {
http { }
tcp { }
}
rules {
qux
}
source 0.0.0.0/0
source-address-translation {
type automap
}
vs-index 9
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm pool foo
ltm pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
}
}
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
pool foo member 200.200.200.101
log local0. "pool foo member 200.200.200.101"
persist source_addr
log local0. "persist source_addr"
}
}
irule is executed but no persistence record is created
[root@ve11a:Active:In Sync] config tail -f /var/log/ltm
Apr 28 21:08:40 ve11a info tmm[13022]: Rule /Common/qux : pool foo member 200.200.200.101
Apr 28 21:08:40 ve11a info tmm[13022]: Rule /Common/qux : persist source_addr
Apr 28 21:08:40 ve11a info tmm[13022]: Rule /Common/qux : pool foo member 200.200.200.101
Apr 28 21:08:40 ve11a info tmm[13022]: Rule /Common/qux : persist source_addr
[root@ve11a:Active:In Sync] config tmsh
root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) show ltm persistence persist-records
Sys::Persistent Connections
Total records returned: 0
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