KT_271103
Jul 13, 2016Nimbostratus
Data Groups
What is Data Group and how it is configuration linking with pol member and Irules?
Can explain with 1 configuration example?
What is Data Group and how it is configuration linking with pol member and Irules?
Can explain with 1 configuration example?
A Datagroup is a set of integers, or strings which enable a "Lookup" to occur. I've used an iRule in the past where the logic goes
/url1 - pool1 /url2 - pool2
So in effect, based on the URI string, this would dictate which pool is used.
Think of an iRule as an associative array. Data is stored in there as key/value pairs. And you can lookup the values form they keys using the [class xx] command.
if you checkout the class page on devcentral there's pointers for sample code in there. => iRules class function (version 9 and below had find class and matchless functions but these were deprecated in v10)
Can explain this below command ? What it is mean ?
tmsh modify ltm data-group internal new_dg records add {"string1" {data "value"}}