Forum Discussion
John
Apr 19, 2011Altostratus
Issue with classes with only one item and [class get datagroupname[
Ok, I'm having an issue with an irule using the [class get ]. If my class is defined with only one item, the class get command will return two items. Is it counting a null value as an item? Tried o...
hooleylist
Apr 19, 2011Cirrostratus
Hi John,
Post 10.1, the value is always implied even if it's not set. You can use -name to get the name or -value to get the value. To get the first element name of a datagroup, you can use class element -name. Likewise to get the first value: class element -value.
http://devcentral.f5.com/wiki/default.aspx/iRules/class
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