Forum Discussion
stucky101_88485
Mar 03, 2013Nimbostratus
Joe
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...