Forum Discussion
Dec 07, 2010
Smart way to convert a PoolMemberDefinitionSequenceSequence to a IPPortDefinitionSequenceSequence
Hi,
I want to dump out (and eventually read in and set) the enabled state of each of my GTM pools pool members. Its easy to get a list of the pools and pool members, but the PoolMember.get_en...
L4L7_53191
Dec 07, 2010Nimbostratus
So something like this?
In [11]: pool_list = pool.get_list()
In [12]: states = pool.get_enabled_state(pool_list)
In [13]: combined = zip(pool_list, states)
In [14]: combined
Out[14]: [(pc_test_pool, STATE_ENABLED)]
followed by:
In[29]: pool.suds.factory.create('Common.EnabledState')
In[30]: pool.set_enabled_state(pool_names = ['pc_test_pool'],states = [enabled_state.STATE_DISABLED])
In [31]: pool.get_enabled_state(plist)
Out[31]: [STATE_DISABLED]
Let me know if that's what you're after...this was done against the GlobalLB.Pool wsdl.
-Matt
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