Forum Discussion
mhite_60883
Jan 30, 2012Cirrocumulus
Trouble passing output of LocalLB.Pool.get_member_v2() to members parameter of LocalLB.Pool.get_member_object_status()
Hello,
When I try to run this:
pool_members = b.LocalLB.Pool.get_member_v2(pool_names=[pool])
print pool_members
pool_members_status = b.LocalLB.Po...
mhite_60883
Jan 30, 2012Cirrocumulus
Hmmm. My method call is just passing what was returned by get_member_v2, which is supposed to be a AddressPortSeqSeq.
The [[ ]] around AddressPort would indicate it is a two-dimensional array:
[[(Common.AddressPort){
address = "/test-failover/10.81.192.178"
port = 80
}]]
If I address it by pool_members[0][0].address (in the python interpreter) I am able to address the element.
Just doesn't seem like it is encapsulated in the right typefactory type. It's almost like I need to pull it all apart, iterate through it, and re-typefactory everything using typefactory.create('Common.AddressPortSequence') and stuffing that inside typefactory.create('Common.AddressPortSequenceSequence').
Seems rather laborious though...
...
So I actually went ahead and tested the aforementioned theory and it does seem to be the only way to get the data into the format the get_member_object_status is happy with...
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