irule : use variable for datagroup name

Should this wrok ?

set class_name "data_class_01"
set matched_value [class match -value $key eq $class_name]

Just tested on 11.4 and works there. Are you seeing an issue?

If you put the second “set” statement on a new line.