Forum Discussion
ML_108504
May 11, 2012Nimbostratus
Most efficient way to re-prioritize a virtual server's iRules?
Hi folks,
I'm writing a powershell script to add and remove a maintenance page redirect iRule to the top of a given virtual server's iRule list (TMOS versions 9.4.x and 10.x). Any given virtual se...
ML_108504
May 12, 2012Nimbostratus
Thanks for the reply watkins!
iRules added via the GUI (at least in version 9) don't have a default priority of 500, from what I can see, so I can't count on that. When I create a new test VS, with no iRules, and add a single iRule to the VS using the GUI, the priority is 0. If I add a second iRule below the first one, the priority is 1.
Are we talking about different priorities specified in different places? If I assume that the priority values returned by .get_rule (0 for the pageA iRule and 1 for the pageB iRule, as per my code block above) are actually some kind of different priority value than that default priority of 500 that is persumed defined in the iRule itself, then are you saying that I can add my maint iRule to the bottom of the list (i.e. priority 2 according to .get_rule output above), but as long as I have priority 100 in my maint iRule (and all other iRules are assumed to be the default of 500) then my main iRule will fire w/higher priority?
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