Forum Discussion
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
- Jim_43682NimbostratusI reworked my memberEnabledState obj:
- Mark_Worrell_98Historic F5 AccountThe memberEnabledState argument is a sequence sequence.
- Jim_43682Nimbostratus>>>gtmPoolMemberObj.GlobalLB.PoolMember.set_enabled_state([gtm_pool], [[memberEnabledState]])
- Jim_43682NimbostratusFound answer here. https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/4/aft/1176415/showtab/groupforums/Default.aspx
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