Forum Discussion
H_36692
Nov 10, 2010Nimbostratus
NOT able to assign a 2nd iRule to a VS=> Error: Rule Priorities for virtual server must be unique
After I added an iRule into a virtual server (via the right click iRule property), I tried to add another iRule to the same virtual server and then got the attached error:
I then tried to ed...
Hi Hua,
iControl enforces a restriction on adding multiple iRules with the same event priority. As the iRule Editor uses iControl to change the LTM config, it's subject to the same restriction. The LTM GUI doesn't have this restriction. I think the logic for this is that the GUI forces you to manually select the order of the iRules, so there's an implicit priority set. You can explicitly set priority for all events in a rule or individual events using the priority command. I like the idea of removing the iControl restriction and just adding the latest rule last. But that might not be a clean solution for every scenario.
The latest version of the iRule editor allows you to load, edit and save the bigip.conf and bigip_base.conf files. You could load the bigip.conf, edit the iRule name (in all locations its referenced) and then save the config. To edit the iRule itself, you'd need to refresh the Editor pane.
Aaron
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