Forum Discussion
tidenz_92110
Nimbostratus
Jun 16, 2010irule data class reference issues 9.4.x to 10.1
Hi Guys,
We recently have migrated to v10.1 from 9.4.7 and we have broken our existing irule. The part that is braking is parsing the data class into an array for processing.
when...
hoolio
Cirrostratus
Jun 16, 2010I have also made a few changes as the set data [findstr $item "|" 1 "\n"] also inserted a {} bracket.
You can use lindex to get the first list element instead of stripping the {}'s:
set data [lindex [findstr $item "|" 1 "\n"] 0]
The CMP compatibility page lists some suggestions for accessing classes in recent LTM versions:
http://devcentral.f5.com/Wiki/default.aspx/iRules/cmpcompatibility
The class command provides additional info on new ways to search datagroups:
http://devcentral.f5.com/Wiki/default.aspx/iRules/class
I'm not aware of any performance benefit of using an external file as a source for a datagroup. Either way the datagroup contents are read from disk to memory upon config load.
Aaron
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