Kevin_Randolph1
Jan 24, 2013Nimbostratus
problem with locallb.monitor.set_template_user_defined_string_property()
I am using Python trying to call LocalLB.Monitor.set_template_user_defined_string_property() to set a user defined string:
def _shared_updates_template_user_defined_string_property(self, template_name, attr, val):
udsv = self.monitor.typefactory.create('LocalLB.Monitor.UserDefinedStringValue')
udsv.name = attr
udsv.value = val
self.monitor.set_template_user_defined_string_property([template_name], [udsv])
The (truncated) traceback:
NotFoundError: Server raised fault: 'Exception caught in LocalLB::urn:iControl:LocalLB/Monitor::set_template_user_defined_string_property()
Exception: Common::OperationFailed
primary_error_code : 16908342 (0x01020036)
secondary_error_code : 0
error_string : 01020036:3: The requested monitor parameter (test_monitor_name 1 template_user_defined_string_property.user_string_1=) was not found.'
I can understand such a message when trying to get the user defined string, but not setting it.
Does the name of the user defined string need to begin with some specifc string?
I am able to successfully use the get_ and set_template_string_property() methods.
Thanks,
Kevin