Forum Discussion

Krishna_251070's avatar
Krishna_251070
Icon for Nimbostratus rankNimbostratus
Oct 17, 2017

Bigsuds: How to use set_member_monitor_state?

Hi Experts,

Can anyone please guide me what is the right syntax to use 'set_member_monitor_state' in bigsuds?

>>> nodes=[[{'port':80, 'address': 'TEST'}]]                 
>>> state=[['STATE_DISABLED']]                               
>>> pool=['Test']                                                 
>>> 
>>> 
>>> 
>>> 
>>> b.LocalLB.Pool.set_member_monitor_state(pool,nodes,state)
Traceback (most recent call last):
  File "", line 1, in 
  File "bigsuds.py", line 416, in wrapped_method
    result = method(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/suds/client.py", line 542, in __call__
    return client.invoke(args, kwargs)
  File "/usr/local/lib/python2.6/site-packages/suds/client.py", line 602, in invoke
    result = self.send(soapenv)
  File "/usr/local/lib/python2.6/site-packages/suds/client.py", line 649, in send
    result = self.failed(binding, e)
  File "/usr/local/lib/python2.6/site-packages/suds/client.py", line 702, in failed
    r, p = binding.get_fault(reply)
  File "/usr/local/lib/python2.6/site-packages/suds/bindings/binding.py", line 265, in get_fault
    raise WebFault(p, faultroot)
bigsuds.ServerError: Server raised fault: 'Exception caught in LocalLB::urn:iControl:LocalLB/Pool::set_member_monitor_state()
Exception: Common::OperationFailed
        primary_error_code   : 16908342 (0x01020036)
        secondary_error_code : 0
        error_string         : 01020036:3: The requested Pool Member (/Internal/Test /Internal/TEST 80) was not found.'
>>>