Forum Discussion
Jim_43682
Nimbostratus
Mar 30, 2012pycontrol 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 pas...
Jim_43682
Nimbostratus
Mar 30, 2012I reworked my memberEnabledState obj:
>>> memberEnabledState
(GlobalLB.PoolMember.MemberEnabledState){
member =
(Common.IPPortDefinition){
address = "167.69.x.x"
port = "443"
}
state =
(Common.EnabledState){
value = 1
}
}
so now it is correctly defined
however when I try to run it..
gtmPoolMemberObj = b.BIGIP(hostname=host,username=user,password=pass,fromurl=True,wsdls=['GlobalLB.PoolMember'])
gtmPoolMemberObj.GlobalLB.PoolMember.set_enabled_state([gtm_pool], memberEnabledState)
I get:
suds.TypeNotFound: Type not found: 'member'
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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