Forum Discussion
merlinet_60432
Aug 11, 2011Nimbostratus
pycontrol, remove_wideip_pool() problem
Hello,
I'm using pycontrol v2 to control GTM WideIP. I'm trying to remove WIDEIP POOL with remove_wideip_pool()
When I run the python script, below error has been occured.
...
merlinet_60432
Aug 14, 2011Nimbostratus
Point of the problem is how to assign GlobalLB.WideIP.WideIPPool to GlobalLB.WideIP.WideIPPoolSequence. right?
I correct my script as your suggestion. like
new_seq = glb.wip_obj.typefactory.create('GlobalLB.WideIP.WideIPPoolSequence')
new_set = glb.wip_obj.typefactory.create('GlobalLB.WideIP.WideIPPool')
new_set.pool_name = "real_www.domain.com"
new_set.order = long(0)
new_set.ratio = long(1)
new_seq.item = [new_set]
try:
glb.wip_obj.remove_wideip_pool(wide_ips = [wideip], wideip_pools = [new_seq])
except Exception, e:
print e
great! it works for me.
Very thanks
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