Forum Discussion

Mat_58707's avatar
Mat_58707
Icon for Nimbostratus rankNimbostratus
Mar 06, 2012

External String with iControl SDK

Hi there

 

 

I am using iControl SDK v10.2.0 but I cannot manage to write external strings.

 

 

 

For creating internal string I used methods:

 

m_interfaces.getLocalLBClass().create_string_class(m_StringClass);

 

m_interfaces.getLocalLBClass().set_string_class_member_data_value(m_StringClass, membersValues);

 

 

It works fine.

 

Then I tried to create external string.

 

 

1) First I created an external class, which works fine. But I had to create an empty file manualy before:

 

 

LocalLBClassMetaInformation[] localLBClassMetaInformations = new LocalLBClassMetaInformation[1];

 

localLBClassMetaInformations[0] = new LocalLBClassMetaInformation();

 

localLBClassMetaInformations[0].setClass_name("myClass");

 

localLBClassMetaInformations[0].setClass_type(LocalLBClassClassType.CLASS_TYPE_STRING);

 

localLBClassMetaInformations[0].setFile_name("myList.bigip");

 

localLBClassMetaInformations[0].setFile_mode(LocalLBClassFileModeType.FILE_MODE_TYPE_READ_WRITE);

 

localLBClassMetaInformations[0].setFile_format(LocalLBClassFileFormatType.FILE_FORMAT_CSV);

 

 

m_interfaces.getLocalLBClass().create_external_class(localLBClassMetaInformations);

 

 

2) Then I tried to use those methods but without any success, strings are not written anywhere:

 

 

m_interfaces.getLocalLBClass().set_string_class_member_data_value

 

m_interfaces.getLocalLBClass().add_string_class_member

 

 

Any idea please ??

 

I'm a little bit stuck now...
  • Hi Mat,

     

     

    I'm not sure what the issue is, but you can get more relevant eyes on your question if you post in the iControl forum:

     

     

    https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/51/aff/1/showtab/groupforums/Default.aspx

     

     

    Aaron