Forum Discussion
stucky101_88485
Nimbostratus
Feb 26, 2013Cannot add 3rd irule to vip due to priority error even if priorities are different
Gurus
I posted this on the pycontrol group already but it's probably more of an icontrol so I'm posting it here again.
https://devcentral.f5.com/community/group/aft/2166035/asg/4
For t...
stucky101_88485
Nimbostratus
Mar 02, 2013Joe
I have some news (good news !)
I realized that pycontrol is already out the window and it's on to bigsuds. I must say bigsuds is an improvement ! I like it. I was able to work out the syntax to add an irule in bigsuds without any helper function:
lb.LocalLB.VirtualServer.add_rule(['/Common/test'], [[{'rule_name':'/Common/api_maintenance', 'priority': 1}]])
The API could use some more clarity here to be honest - I pieced this together and it took longer than it should have but that aside...
However, the same problem persists. Then just for giggles I changed the priority to 2 and guess what ? It works !
It also works with other numbers but as soon as you try 1 again it bails when there are already 2 rules bound.
Bug in the API ?
Not sure I care too much since 2 does the trick just fine assuming nobody created a normal rule with P1.
Wanted to share that...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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