Jim_43682
Mar 30, 2012Nimbostratus
pycontrol GlobalLB.PoolMember.set_enabled_state()
Hello All,
I am trying to write a pycontrol statement that will enable/disable a pool member in a gtm pool.
I'm getting stuck on the MemberEnabledState parameter that i need to pass. I've tried so far:
import pycontrol.pycontrol as pc
memberEnabledState = {}
memberEnabledState['member'] = (Common.IPPortDefinition){
address = "167.69.74.38"
port = 443
}
memberEnabledState['state'] = 'STATE_ENABLED'
pc.BIGIP(hostname=gtm,username=soapUser,password=soapPasswd,fromurl=True,wsdls=content).GlobalLB.Pool.set_enabled_state([gtm_pool],memberEnabledState)
Thanks in advanced,
Jim