Forum Discussion

Andy_Litzinger's avatar
Dec 07, 2010

Smart way to convert a PoolMemberDefinitionSequenceSequence to a IPPortDefinitionSequenceSequence

Hi,

 

I want to dump out (and eventually read in and set) the enabled state of each of my GTM pools pool members. Its easy to get a list of the pools and pool members, but the PoolMember.get_enabled_state requires input parameters of the pools (simple) and a Common.IPPortDefinitionSequenceSequence. I'm having trouble figuring out the best way to programmatically get an IPPortDefinitionSequenceSequnce to pass in.

 

 

 

I have a PoolMemberDefinition named poolmembers loaded as follows:

 

 

 

wideips = wipobj.get_list()

 

pools = poolobj.get_list()

 

poolmembers = poolobj.get_member(pools)

 

 

 

 

I want to get the enabled state of each of the poolmembers. I should be able to loop through the poolmembers object and strip out each poolmember address and port and save it to another object (which would then be of type IPPortDefinition), but is that the best way?

 

 

 

thanks,

 

andy

 

  • Sweet, glad you're working. Fwiw, yesterday it was outside my mental grasp too! When I looked at it with fresh eyes today it was pretty obvious where I had gone off track. Lesson learned: when you're bleary-eyed don't try to debug. Anyhow, when you get it all tidied up and working the way you need it to, this would be a great addition to code share.

     

     

    -Matt