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_...
Chris_R_123579
Nimbostratus
Apr 04, 2013Thanks for the response. I made the changes and every time it checks for host_num existance in the LB_SELECTED event, hust_num is 0.
I get the following in my logs on one request to example.com/serv1
Thu Apr 4 16:15:42 EDT 2013 Rule clewdev-new-prefix-redirect : host_num exists: 0
Thu Apr 4 16:15:41 EDT 2013 Rule clewdev-new-prefix-redirect : host_num exists: 0
Thu Apr 4 16:15:41 EDT 2013 Rule clewdev-new-prefix-redirect : host_num exists: 0
Thu Apr 4 16:15:41 EDT 2013 Rule clewdev-new-prefix-redirect : host_num exists: 0
Thu Apr 4 16:15:41 EDT 2013 Rule clewdev-new-prefix-redirect : host_num exists: 0
Thu Apr 4 16:15:41 EDT 2013 Rule clewdev-new-prefix-redirect : host_num exists: 0
Thu Apr 4 16:15:41 EDT 2013 Rule clewdev-new-prefix-redirect : path = /
Thu Apr 4 16:15:41 EDT 2013 Rule clewdev-new-prefix-redirect : uri match found: 2
Like I said, this irule worked flawlessly for 4 or 5 years and then one day I threw in a new iRule that had some chunking/http1.0 changes(which has been removed for over a week) and its been messed up since then.
Thanks again
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