Forum Discussion
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...
andy_12_5042
Dec 30, 2010Nimbostratus
if I use a python interactive session and look at params, I can see what it is expecting:
>>> s.set_ssl_option.params
[(profile_names, u'Common.StringSequence'), (options, u'LocalLB.ProfileSSLOptionSequence')]
So one would think that this would work , however it does not)
def set_ssl_option(self,option):
self.option=option
option_s=s.typefactory.create('LocalLB.ProfileSSLOptionSequence')
option_s.default_flag = 0
option_s.values=[self.option]
option_s_seq=[option_s]
s.set_ssl_option(profile_names=[self.name],options=[option_s])
This is what the sequence looks like:
>>> option_s
(LocalLB.ProfileSSLOptionSequence){
_arrayType = ""
_offset = ""
_id = ""
_href=""
values[] =
"SSL_OPTION_EPHEMERAL_RSA",
default_flag = 0
}
but when I go to look at the options on my profile after trying to set, I get:
[(LocalLB.ProfileSSLOption){
values[] = empty
default_flag = False
}]
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