Forum Discussion
Juha__Ranta_106
Nimbostratus
Jun 28, 2005How to iterate over DataGroup List elements ?
Hi,
How can I iterate / access elements of a datagroup ?
I have following 'string data group list' called 'my_str_class':
--- /config/bigip.conf ---
...
unRuleY_95363
Jun 29, 2005Historic F5 Account
Thank you for pointing this out. A problem was discovered in accessing a class/DataGroup as a Tcl list.
We have created CR49978 to address the problem and it has been fixed in the release scheduled for later this fall. If you require this to work then you may want to contact support to request a hotfix for the 9.1 release.
BTW, I would suggest you try to use findclass or matchclass for your application as the performance of searching the class using those commands is significantly better than searching a Tcl list (even using lsearch). This is because the internal representation of the class/DataGroup is a very efficient hash structure. Of course, if your class is very small then the performance of the search would not be as relevant.
Also, as a sidenote, once you reference a class/DataGroup as a Tcl list, the internal representation is actually converted into a Tcl list (this is where the bug was) and the performance gained if you had exclusively used findclass or matchclass is lost until the next time you reload the configuration.
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