Forum Discussion
Feb 11, 2009
The add_* methods are for internal data groups only, external classes are a different beast. There only API's for external classes are to manage the creation of them. These were really meant for larger lists that are managed off device and would be uploaded in-whole by another process.
If you are dead-set on an external data group, you'll have to use the ConfigSync.download_file() method to download the data group to your client workstation and the upload_file() method to upload the new changes.
Once you have modified the values of the external data group and would like to notify the iRules engine to re-read it, you can use the Class.set_external_class_file_mode() method to switch the file mode. Switch it to a different mode than it is and then back again to the original value. This will trigger the iRules engine to re-read the class file.
If you want granular control of entries, and your lists are not very long, you might want to look at using internal classes.
Hope this helps...
-Joe