Forum Discussion
jayanthi_41101
Nimbostratus
Aug 31, 2011Multiple irules that have same events
I have 2 irules that have 2 datagroups and redirects to different pool but handles the same events HTTP_REQUEST and HTTP_RESPONSE.
Will all the requests go through both irules even if the data matches with only one of the datagroup?
Is it the first match that will happen or will both irules be passed through irrespective of whether it matches or not?
- hoolio
Cirrostratus
Can you post anonymized copies of the iRules for a more definitive answer? In general, all events will be run from all of the iRules enabled on a virtual server. - jayanthi_41101
Nimbostratus
irule 1 - jayanthi_41101
Nimbostratus
irule 1 - hoolio
Cirrostratus
I guess the important question is what do you want the behavior to be?virtual http_vs { snat automap pool http_pool destination 10.1.0.15:80 ip protocol 6 rules { rule1 rule2 } profiles { http {} tcp {} } }
- jayanthi_41101
Nimbostratus
Thanks Aaron. - hoolio
Cirrostratus
If you want to avoid tramping between the variables in different iRules you could name them uniquely. You don't have to combine the iRules if you don't want to. - Puli
Nimbostratus
Hi Aaron, - What_Lies_Bene1
Cirrostratus
Yes there are, lowest wins;priority 100 when HTTP_XXX {
- Michael_Yates
Nimbostratus
Hi Puli, - Puli
Nimbostratus
thanks, this is what i currently have.
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