Forum Discussion
Stanislas_Piro2
Nov 03, 2017Cumulonimbus
look at this article about Some iRule commands temporarily suspend iRule processing
if you change the value every multiple times an hour, table may be a good solution. if this value is changed less than once an hour, the static value is still the best solution.
you can use array to store this variable
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/changeVariable" } {
set VIPName [string tolower [URI::query [HTTP::uri] VIPName]]
set static::myVar(/Common/${VIPName}) foo
log local0. "Variable name = static::myVar(/Common/${VIPName})"
log local0. "value = $static::myVar(/Common/${VIPName})"
}
}