Forum Discussion
jayanthi_41101
Aug 31, 2011Nimbostratus
Multiple 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?
- hooleylistCirrostratusCan 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_41101Nimbostratusirule 1
- jayanthi_41101Nimbostratusirule 1
- hooleylistCirrostratusI 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_41101NimbostratusThanks Aaron.
- hooleylistCirrostratusIf 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.
- PuliNimbostratusHi Aaron,
- What_Lies_Bene1CirrostratusYes there are, lowest wins;
priority 100 when HTTP_XXX {
- Michael_YatesNimbostratusHi Puli,
- PuliNimbostratusthanks, 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