Forum Discussion
spirrello_22970
Nimbostratus
Nov 10, 2015Create Empty Pool with iControl in Python
Hi,
I'm trying to build an empty pool before it's populated at a later date. When I try running the following code it keeps complaining about missing the members parameter. From what I've read...
Guillaume_Roman
Cirrus
Nov 16, 2015Hi,
It's a python code issue, my bad.
As you pass the first parameters with keywords args (pool_names= and lb_methods=) you have to pass the third with keywords args too, or the 3 parameters without keywords args.
So the code below should work:
lb_obj.LocalLB.Pool.create(pool_names = [pool_name],
lb_methods = ['LB_METHOD_ROUND_ROBIN'],
members=[[]])or:
lb_obj.LocalLB.Pool.create([pool_name],
['LB_METHOD_ROUND_ROBIN'],
[[]])Regards,
Guillaume
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