I’m trying to do something that should be rather simple but I’m beginning to wonder whether I’m looking in the wrong place.
I have used 2 data group lists successfully of type string. Both of them simply contain a list of strings with no values and I iterate over them to compare some stuff to live traffic.
However, there is the option of also creating key:value pairs so I thought I could use this as a simple hash.
I created a class called “base” thinking I could add a few key:value pairs there that I can extract later.
Now I should be able to extract the value of key “domain” in an iRule and use it for example for redirects from short hostname to fqdn. It’s basically like a global TCL var but aren’t data group lists the way to go ?
It appears you have to run an operator against the key such as “equal” or “starts_with” when all I wanna do is look up its value and return it.
If this is not designed for that then what is the key:value option there for ?