Forum Discussion
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...