Forum Discussion
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