Radim_Bosticka_
Jan 23, 2009Nimbostratus
Server disabling structure
Hi,
I have problems to use function set_session_enabled_state from PoolMember class.
Everywhere is description some object structure as described:
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=254
Object is called LocalLBPoolMemberMemberMonitorState. After creating of it in description is information about creating of subobject called CommonIPPortDefinition.
Everything is in Java. Problem is, that creating of second object is not working for me and by mistake I guess it is problem in Jython itself. Is there some command which could return whole one object with subobjects? Then problem I guess is in code name "member" which does problem to Jython.
I have tried to create array like this:
oServer = [['10.192.2.196','80'],'STATE_DISABLED=0'];
Sadly got information that is not possible to convert it:
TypeError: set_session_enabled_state(): 2nd arg can't be coerced to iControl.LocalLBPoolMemberMemberSessionState[][]
Is possible to create some array instead of object which could be passed to function without problem?
Thanks