Forum Discussion

goyogi's avatar
goyogi
Icon for Nimbostratus rankNimbostratus
Nov 13, 2009

adding irules to VIP in a certain order

From the CLI I want to add an irule to VIPs that already have irules.

 

 

Using the command:

 

b virtual [VIP] rule [irule] add

 

it will add the irule to the VIP

 

 

But the rule is added after the current irule. Is there a way to add it before all other irules associated with the VIP?

 

 

The reason is we have a maintenance window and I have to apply an maintenance irule to 80+ VIPs and it would be easy to just drop the command in CLI.

 

 

We are running different versions but the most important LTM is running 9.3.0

 

 

2 Replies

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    I'm not sure whether there is a simple way to do insert the new rule first in the rule list. But you can use priority to ensure your maintenance rule runs before any other. You can check the priority wiki page (Click here) for details.

     

     

    Aaron