Forum Discussion
Isaac_38899
Feb 12, 2012Nimbostratus
adding iRules
Hi all
I am writing a script to add an existing iRule to a virtual, which is fine using LocalLBVirtualServer.add_rule
The existing iRules dont have a priority specifically set and the rule I am adding has a priority set to 900, when I add the rule I need to specify a priority value or an error is thrown, I have set this to 4 in my script which works, the existing 4 rules return 0,1,2 and 3 as priorities when I run LocalLBVirtualServer.get_rule so the rule that I am adding is at the bottom of the list.
is there any way that I can force the rule that I am adding to the top of the list of iRules?
2 Replies
Sort By
- Priority for an iRule or iRule event can be set from 1 to 1000. I suggest using greater gaps between the priority you're setting so you can adjust them more easily down the road. ie, instead of setting a priority of 1, 2, 3, use 100, 200, 300. You could then change 200 to 50 for an iRule's priority to move it up the list.
- Hi,
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