Forum Discussion
Apr 08, 2008
Great - Hopefully you are using the iControl Assembly for .Net!
As for your question regarding the pool, the easiest solution is to use the set_default_pool_name() method in the LocalLB.VirtualServer interface. this is equivalent to setting the default pool for the Virtual in the GUI.
From what I can tell from your post, there is no reason to enable/disable individual pool members if you have two pools defined. The reason to do that would be if you have one pool and want to shift pool members in/out of rotation. But, if you have two pools, the easiest approach is just changing the default pool on the virtual.
As for set_fallback_lb_method(), I don't know what that method is. There is set_fallback_persistence_method() in the VirtualServer interface, but it doesn't look like that's what you were going for.
Stick with the set_default_pool_name() and that should work for you.
-Joe