Forum Discussion
Chris_R_123579
Nimbostratus
Apr 04, 2013variable getting reset during irule execution
'll try to be as descriptive as I can since I'm not well trained in our F5 load balancers ways. Basically I have an iRule that looks something like this(pseudocode):
when HTTP_REQUEST {
set host_...
Kevin_Stewart
Employee
Apr 04, 2013A global variable would be global to the whole box (ie. everyone), so that wouldn't work. Are you saying that the check for $host_num in the LB_SELECTED event fails? Does it crash the iRule?
Try this to test and please report the results:
when HTTP_REQUEST {
log local0. "here"
set host_num 0
}
when LB_SELECTED {
log local0. "here"
if { [info exists host_num] } {
log local0. "host_num exists"
} else {
log local0. "host_num does not exist"
}
}
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