Forum Discussion
LillyM_9417
Oct 06, 2011Altostratus
Version 11
In version 11, there is another properties which name is " Initial Retransmission Timeout Base
Multiplier for SYN Retransmission".
Is there anyone knows what is the exact function/meaning o...
getting closer but this is probably not the best way to go about it:
I can do something like this to create multiple IPPortDefinition and then wrap into another instance with sequence and call create pool
l=[ p.typefactory.create('Common.IPPortDefinition') for count in xrange(2)]
ip=[1'1.1.1.','2.2.2.2']
for x,y in zip(l,ip):
x.address=y
x.port=80
mem_seq=p.typefactory.create('Common.IPPortDefinition')
mem_seq.item=[l]
mem_seq.item
pool="test"
lb_methods="LB_METHOD_DYNAMIC_RATIO "
pool=p.create(pool_names=[pool],lb_methods=[lb_methods],members=[mem_seq])
I know this is very ugly but the only purpose was to understand if I could create multiple instances and then create a pool with multiple members in a single web call using the create method. I can use this method to work with any call regardless of how many members there are or whatever. In the web call I will have to be able to feed in ips as a list and maybe do some work to clean it up. I think the biggest issue is my lack of experience with object orientation..... Once I clean everything up and get it to work via an http call to my web service, I will post back...
If anyone has a better way please post away as I am probably re-inventing the wheel here ...........