Forum Discussion
Nat_Thirasuttakorn
Employee
Nov 15, 2004adding/deleting class member by iRule
is it possible to add/delete class member by iRule
- unRuleY_95363Historic F5 AccountCurrently classes are merely implemented as Tcl lists. So, you can manipulate the class members using the standard Tcl list commands.
- Brian_Gupta_115
Nimbostratus
Is there a way to save these changes to the class, or does it do so automatically? - unRuleY_95363Historic F5 AccountNo, there is currently not a way to save the class.
- Loc_Pham_101863Historic F5 AccountiControl, Bigpipe, and GUI already have support for classes, including the ability for adding/deleting/finding/listing class and class members. They just don't have visibility to class members that are added to a class from within an iRule, but that's due to the fact that an iRule not being able to save the class.
- Brian_Gupta_115
Nimbostratus
Has this functionality been added yet? Thanks, Brian - unRuleY_95363Historic F5 AccountNope...
- Brian_Gupta_115
Nimbostratus
One thing I am testing -- it seems that I can log the contents of a class... Unfortunately the formatting isn't that useful... Is there a good doc or discussion thread on how to format the output to /var/log/ltm? - unRuleY_95363Historic F5 AccountWell, this would be cool... I'm not sure about the approach though. Here are the problems:
- unRuleY_95363Historic F5 AccountYou currently can modify a class/datagroup from an iRule. You will need to use either the session table or a Tcl array (this one is not a good option though as you need to be sure have logic to remove entries from the array otherwise it will grow forever).
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