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
By the way: since the enabled_state.member object is just a Common.IPPortSequence you can assign it to be another object of that type. That means you can query the enabled state of your pool members, then assign them:
e.g.
current_state = pool.get_member(['pc_test_pool'])
enabled_state.member = current_state[0][0].member
pm.set_enabled_state(pool_names = ['pc_test_pool'],states = [enabled_state_seq])
In other words, we're dealing with plain old python attributes, which is nice!
-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