Forum Discussion
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.Pool.get_member_object_status(pool_names=[pool], members=pool_members)
I get this error:
[[(Common.AddressPort){
address = "/test-failover/10.81.192.178"
port = 80
}]]
No handlers could be found for logger "suds.client"
Server raised fault: 'Could not find element by name: address'
LocalLB.Pool.get_member_v2 returns a sequence of sequence AddressPort. Similarly, the members parameter of LocalLB.Pool.get_member_object_status is supposed to take a sequence of sequence AddressPort as a parameter. You can see that the structure looks good from my debug print statement. Any idea where it would be complaining about not being able to find the address element in the AddressPort data structure? This should be a no-brainer: I should be able to pass the output of get_member_v2 right into get_member_object_status...
- mhite_60883CirrocumulusHere is debug off the LB:
- The signature for the method is:
ObjectStatus [] [] get_member_object_status( in String [] pool_names, in Common__AddressPort [] [] members );
- mhite_60883CirrocumulusHmmm. My method call is just passing what was returned by get_member_v2, which is supposed to be a AddressPortSeqSeq.
- mhite_60883CirrocumulusHow would one populate an AddressPortSequenceSequence manually?
- mhite_60883CirrocumulusHoly heck I figured it out. I'm in my own private typefactory hell, don't mind me.
- mhite_60883CirrocumulusHoly heck I figured it out. I'm in my own private typefactory hell, don't mind me.
- L4L7_53191NimbostratusMhite: glad you got it figured out. That item [] array is an annoyance for SequenceSequence objects, but is the way Suds wants you to do it. Thanks for posting your findings, hopefully it'll help.
- L4L7_53191NimbostratusMhite: glad you got it figured out. That item [] array is an annoyance for SequenceSequence objects, but is the way Suds wants you to do it. Thanks for posting your findings, hopefully it'll help.
- mhite_60883CirrocumulusYeah, it really makes my head want to implode. Kind of sucks getting stuck on creating the data structure... :( But it is what it is...
Recent Discussions
Related Content
* 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