Forum Discussion

3 Replies

  • 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.

     

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    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"}}