andy_12_5042
Dec 29, 2010Nimbostratus
set ssl options in a client ssl profile
I have been trying to get this right but am missing something. The function will set the options check box but does not set the value? I had simialr issue with another function so I know it is because I am not giving the parameter correctly or something is wrong with the way I am defining values as another sequence. However, looking at the icontrol sdk, the options appear to be another list within a list. I have tried this lots of ways and just cant seem to get it right. Anyone have an idea what I am doing wrong? (I don't get any errors returned)
def set_ssl_option(self,option):
"""
"""
self.option=option
option_s=s.typefactory.create('LocalLB.ProfileSSLOptionSequence')
option_s.default_flag = 0
option_s.values=s.typefactory.create('LocalLB.SSLOptionSequence')
option_s.values.values=[self.option]
option_s_seq=[option_s]
s.set_ssl_option(profile_names=[self.name],options=[option_s])
s.set_ssl_option('SSL_OPTION_NETSCAPE_REUSE_CIPHER_CHANGE_BUG')
I got lucky on the last similar problem and figured it out by getting into the SDK. This one is not turning out so quickly. I am new to pycontrol/icontrol so maybe it is something simple that I am missing.
Thanks for any help
Andy