Forum Discussion
Cindy_Berry_103
Aug 14, 2012Nimbostratus
How to create a Datagroup with Multiple values
I would like to create an external datagroup that contains multiple values for one key. I have seen the following format posted several different locations.... External Class Format: clas...
hooleylist
Aug 14, 2012Cirrostratus
Hi Cindy,
You can do this almost exactly as you have it listed--just combine the two values into one string:
"/ug/atl" := “http,/a7391/events/live/20110403/regions.php?region=atl",
You can then use the class command to get the value:
Get the combined value for $find in the $datagroup
set value [class lookup $find $datagroup]
if {$value ne }{
Use scan to separate the two values
scan $value {%[^,],%s} value1 value2
log local0. "Parsed $value1 and $value2"
}
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