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...
Dec 09, 2010
i don't really understand the shortcuts you've taken with the for loops here:
pmemseq.item = [x.members for x in [y for y in data_list]]
member_status = poolmemobj.get_enabled_state(pool_names = [x.pool for x in data_list], members = [pmemseq])
what would each of these look like expanded? whats a good python reference keyword i can search on to see these explained?
it looks like the reverse of nested for loops, which is what i was working on except i couldn't figure out how to create a sequence of IPPortDefinition i could then assign via the '.item' method(?)
so for example, would [x.members for x in [y for y in data_list]] expand similar to:
for y in data_list:
for x in y
??
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