For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Velina_Yankova_'s avatar
Velina_Yankova_
Icon for Nimbostratus rankNimbostratus
Oct 21, 2015

Execute iRule first

Hello,

 

I have some rules assigned to some VS. Then I want to assign another at a runtime and I want to be sure that when somebody request my VS the new iRule will be executed first.

 

Best regards.

 

4 Replies

  • Hello,

     

    I have different rules, so could you explain me in more details how excatly to do this prioritization?

     

    BR

     

  • By default each event has a priority of 500. If you an iRule or multiple iRules attached to a VIP with the same event more than once, by default they will be evaluated in the order of the rules order in the config. To change this behavior you can add a priority to the events in your rule/s. i.e.

    when HTTP_REQUEST priority 100 {do something}
    The range is 0-1000 for the priority with lower numbers being evaluated first.

    https://devcentral.f5.com/wiki/iRules.priority.ashx