Bigsuds - How to enable / disable certain pool members?
Hello all, this is my first post here, to quickly introduce myself - I'm Aled, I work in London (GB) for an online gaming company. I'm currently getting an automated deployment system in place for Continuous Intergration and the part I'm struggling with is automating the BigIP loadbalancer pools which brings me to my question:
Here's what I'm trying to achieve, for an automated web deployment I need to disable half the pool members for a given Loadbalanced Pool, and then re-enable them post deployment. Then disable the other half of the pool members and re-enable them post deployment too.
So I need a way to disable pool members and to specify which pool members to disable and vice versa.
Ive been reading a lot about Bigsuds and I'm very impressed by this and the whole iControl system. I've played around with this within python and can access the BigIP appliance and display pools etc., but I cant figure out the code I need to do the above.
I was hoping it would be something like this...
b.LocalLB.PoolMember.set_session_enabled_state(pool_names = ['poolnamehere'], members = ['10.10.10.10:80', '10.10.10.11:80'], session_states = ['STATE_ENABLED'], [1])
This doesnt work, Ive got the syntax wrong and its probably not as simple as that.
Can anyone help please? Let me know if you need more info etc..
Thanks Aled